Software :: Bad Tty & File Descriptor Error While Building RPM On F13

Dec 20, 2010

I have an FC13 x86_64 server and having trouble building RPMs, but I don't think it's specifically an RPM problem. I think it's a tty management or other type of problem.

When spec files have a "%files -f filelist.txt", which contains the list of files for the RPM, it calls the /usr/lib/check-files script, which sorts the files that are supposed to be in the RPM and compares them with the files that are in the built RPM before they are packaged.

The trouble is that the sort fails.

Here's the trace from the check-files script:

The above doesn't show that the output from sort is redirected into those /tmp files. The first sort succeeds because it reads data sent by the "find" in the same shell. The second sort fails because (I think) it cannot read data from stdin for some reason.

What could possibly cause this? I've checked various permissions, libraries, even used strace extensively, all of which is inconclusive.

This is one of my test server boxes, so this problem is something that I've caused, but I have no idea what.

libc controls input and output, correct? Could it somehow be a glibc problem, or a devpts problem? I can run a simple command and pipe it to sort with no problem. It appears to only be related to sub-shells.

I also replaced sort with cat and just tried to redirect stdin in that file to a temporary file, and that also fails.

I've tried running it with selinux disabled and that has no effect.

View 7 Replies


ADVERTISEMENT

General :: Open Local File Error When Creating File Descriptor?

Sep 14, 2009

error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file

int main()
{
/*both named pipes are open*/
rfd=open(IFIO1,0);
wfd=open(IFIO2,1);

[code]....

View 1 Replies View Related

Programming :: Get File Descriptor Of An Already Opened File?

Jul 20, 2011

Is there any method to get the file descriptor of a file which is already opened by some other process?

Or any method to get the File descriptor from the filepath ?

View 2 Replies View Related

Fedora :: Usb 2-1: Device Descriptor Read/64, Error -62

Apr 23, 2010

I tried to get 3d hardware support in my FC12 install. I grabbed the latest appropriate drivers from the nvidia website for my Geforce 6800 XT graphics card. I changed the inittab file to boot to command line, ran the .run file as root and ran into a couple errors doing so.

I then proceeded to use yum (which i do like but this is a bad scenario for me thus far) to update my drivers to the suggested kmod-nvidia drivers that exist out there. Once all of the installation was completed I rebooted and got the following error displayed at the top of my screen after the fedora loading bubble disappeared. The system just seems to hand at this point....

"usb 2-1: device descriptor read/64, error -62"

I did a hard boot on the machine and tried again, this time i pressed the esc key to watch the interactive startup screen and noticed that after "enabling local filesysem quotas: [ OK ]" i get a

***Warning -- SELinux targeted policy relabel is required.
*** Relabeling could take a very long time, depending on file
*** system size and speed of hard drives.

This will continue with asterisks across the screen until eventually it stops and then I am stuck as to what to do from here on out. What could possibly be causing all of this mayhem?I have tried to use the fedora core 12 install cd to launch it into "rescue mode" and from the bash command line proceed with modifying my grub.conf to not use the "newly installed kernel (2.6.32.11-99.fc12.i686)" that was installed with yum during my kmod-nvidia driver installation.

View 1 Replies View Related

Programming :: Pyhon - Get The File Descriptor?

Apr 19, 2011

I create two script file name for "a.py" and "b.py", It's through socket connection.
a.py's file writeing "os.pub(s.fileno,x)"create the file descriptor,but i don't know how to get the descriptor file with "b.py"

View 2 Replies View Related

Programming :: What Does Closing A File Descriptor Mean

Mar 13, 2011

As we know, every process has a table with a file descriptor table, in which each entry contains a file pointer pointing to the corresponding file table which contains a v-node pointer pointing to the v-node table.

When closing a file descriptor, are all these data structure deleted?

View 2 Replies View Related

Fedora :: Error - No Editor Descriptor For Id Org.eclipse.jdt.ui.CompilationUnitEditor

Jan 4, 2010

I recently updated eclipse 3.5.1.-27 I am getting the following error. No editor descriptor for id org.eclipse.jdt.ui.CompilationUnitEditor I am using sun jdk. I reinstalled it and tried to start. Same problem. When I try to open projects its not showing any java related things.

View 2 Replies View Related

CentOS 5 Hardware :: Device Descriptor Read/64, Error -110

Feb 2, 2011

I'm having issues with getting my USB ports to work on my server. USB keyboards, mice, drives, flash drives, card readers, etc. will not work on this server.

dmesg
Linux version 2.6.18-194.32.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 17:53:09 EST 2011
BIOS-provided physical RAM map:

[code]...

View 4 Replies View Related

General :: File Descriptor Redirection And Duplication?

Mar 3, 2010

i've checked the link, and it makes it better. but it doesn't include all the information. i'll continue searching the internet. However i have seen an example of creating a fd:

Code:
exec 5<&1
echo "TEST" >&5
exec 5>&-

as in the page, this was intended to redirect the stdout to the fd 5 and create it, and close it. i have the following questions:- what is exactly the meaning of second command? is it to redirect the command stdout "test" to the fd 5? and how i can see the contents of the fd 5? - in the first command, why the < is used instead if > and what is the difference between the below two commands as in the info bash *Redirection section It will be helpful if anyone could include a graph for file descriptor before and after different command execution.

[Code]...

View 5 Replies View Related

General :: Command For Short File Descriptor?

Jun 25, 2010

the short file descriptor of an ISO file. I have been assigned with a task to match the short file descriptor of an ISO file(to be provided to the customer) to check if thats "Kudgo Support tools" or not.What linux command should I use?

View 6 Replies View Related

General :: Input To Sudo - What Is Its File Descriptor

Aug 5, 2011

Where does input to sudo go? I mean when we give password to sudo prompt where it actually goes? If it goes to a file what is its name or what is its file descriptor?

View 1 Replies View Related

Server :: Can Define Max Limit Of File Descriptor

Jul 7, 2009

We are facing problem of to many file open error because of that application become slow and in tomcat catalina log we get following error frequently Jul 6, 2009 12:27:57 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed

at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)

[code].....

no file limit,file descriptor limit for 300 user of tomcat application server and also oracle database server?

View 11 Replies View Related

Ubuntu Multimedia :: Starting Jack - Bad File Descriptor

Dec 10, 2010

I am having problems starting jack everytime I try to start it either says bad file descriptor a bunch times or it wont connect to server as client sometime. Other times It just say sorry cannot start jack.

View 1 Replies View Related

SUSE :: Get File Descriptor From Major And Minor Number?

Nov 15, 2010

Is it possible to get a file descriptor from the major and minor number. If so, how can this be done? I am trying to see if a port(eg ttyS2) is opened without using the fdopen or open or fopen functions. is there a way to get the file descriptor of file or port that as already been opened, without using the functions I mentioned above. These functions reopens the port. I am trying to avoid that.

View 3 Replies View Related

Ubuntu Servers :: Maximum Of 1024 File Descriptor Limit?

May 4, 2011

I'm running nginx for static files and as a proxy server for a comet IM server on ubuntu Jaunty. On high load I'm hitting a limit of 1024 file descriptors. I've tried increasing this limit but still can't pass 1024. Does "more /proc/sys/fs/file-nr" gives me the global count of used file descriptors? Why do I see a maximum of 1024 open file descriptors in /proc/sys/fs/file-nr if this is the global count for the machine and each user should have at least 1024 allowed file descriptors by default? Is there a way to increase the limit while the server is running?

Some relevant info on my server:
sudo more /proc/sys/fs/file-nr
1024038001
sudo sysctl fs.file-max
fs.file-max = 38001
sudo nano /etc/security/limits.conf
...
* hard nofile 30000
* soft nofile 30000

I also added this to /usr/local/nginx/conf/nginx.conf:
worker_rlimit_nofile 10240;
Uncommented the following line in /etc/pam.d/su:
session required pam_limits.so

View 1 Replies View Related

Programming :: PyGTK: Send Output From A File Descriptor To A Textview?

Jul 22, 2010

Within PyGTK I'm using gobject.spawn_async to launch a bash script. I would like the output of that bash script to be displayed within my application. I have a textview set up to receive the text ...

Here are the commands that launch the program:

Code:
def run_command(command):
global keep_pulsing
keep_pulsing=True
(cpid, cstdin, cstdout, cstderr) = gobject.spawn_async(command,flags=gobject.SPAWN_DO_NOT_REAP_CHILD|gobject.SPAWN_STDERR_TO_DEV_NULL,standard_code....

Here are the two callback functions. But like I say ... I have no idea how to get that data from the 'cstdout' file descriptor into a textbuffer.

Code:
### THE FOLLOWING ARE GLOBALS:
textview = wTree.get_widget('textview1')
textbuffer=textview.get_buffer()
def update_textview_callback(fd, condition):
global keep_pulsing
if keep_pulsing:
progressbar.pulse()
code....

View 3 Replies View Related

Debian Configuration :: USB Errors "usb 1-5: Device Descriptor Read/64, Error -110"

Sep 3, 2010

While I had the case open to swap out a network card I thought I would drop in an old USB card (previously used with no problems on a machine running Debian) however on boot I'm now getting some errors showing up. The card has been sitting around for a while so it could be an issue with the card.

[Code]....

View 2 Replies View Related

CentOS 5 :: Booting 5.4 - Error "EXT3-fs: Can't Read Group Descriptor 3"

Apr 3, 2010

I have been using CentOS 5. for around 3 months. It was all fine and was having a pleasant experience using CentOS. Today when i turned on my computer and booted CentOS i am having the below error: Grub comes up, allows me to select CentOS 5.4 kernel image. and displays RedHat Nash version: and then the below error occurs:

[Code]....

View 9 Replies View Related

Installation :: Binutils Error Building ?

May 18, 2010

I'm trying to port binutils to a new architecture. I have changed and created necessary files for this. The configure commad run succusfuly. but when I tried to run make I find probems. the error msg is:

View 1 Replies View Related

Debian :: Building Live CD And Getting - Error

Jul 30, 2010

I am currently working on Debian based Operating System, and my objective is to make a live CD.

I ve followed the specified steps to buid a live CD, and finally I ve made an .iso file too.

Now,I am facing some issues to execute that .iso on Qemu(Virtual Interface),those are:

1. While builing it into an .iso,I skipped the md5sum step, is that mandatory to be built for making a live CD?

And when I am trying to make an MD5SUM using the following command, Its giving me the following error:

Kindly specify me, where exeactly the error in the command for creating the md5sum?

2. While executing the .iso file in Qemu using the following command :

And the I am able to watch the Operating System booting initialization and then when I select the option as "Install as Live CD" Its giving me the following error:

I request who ever reads this thread, please send me some kind of a response.I'll be thankful to them.

View 1 Replies View Related

General :: Error Building Kernel 2.6.36

Nov 2, 2010

I tried to build linux-2.6.36 but I got this error message

Code:

I looked into gcc-version.sh but the problem is located somewhere else I thought at first one of the files might have been corrupted and I downloaded the archive again.

I must also say that this happened in different versions of slackware (the distro I use): 12.0, 12.1, 12.2, 13.0, 13.1

View 8 Replies View Related

General :: Error While Building A Package

Nov 9, 2009

while building a package i got this error. Package name is python-gnomecanvas and i am working in debian.

I am not able to get it correct.

View 5 Replies View Related

Software :: Error In Building Dspace ?

Mar 17, 2009

I get the following error when i build dspace.

View 1 Replies View Related

Slackware :: Error Building Gtk+-2.22.0 From Source

Jan 5, 2011

I tried building but got errors at the end.

make: *** No targets specified and no makefile found. Stop.

View 2 Replies View Related

Slackware :: Lilypond Error When Building

Oct 1, 2009

I've just tried to compile lilypond using a fresh SlackBuild from slacky.eu site.

I have all deps and I use current Slackware that was gradually upgraded using all current packages since version 12.2. So I call it "version 13".

After a minute or so I got this ugly sentence:

View 6 Replies View Related

Debian :: Building Firefox-3.6 - Ends With Error ?

Mar 19, 2010

I,m trying to build firefox-3.6 from source but it ends with the following error :

Using Debian lenny.

View 5 Replies View Related

Ubuntu :: Conifgure Error While Building Empathy

Jul 13, 2010

I recently wanted to build Empathy 2.31 from a source tarball (after having installed all the dependencies listed on the Empathy website).I got the following error while launching ./autogen.sh:

Code:configure: error: glib-compile-schemas not found.After some googling to try to fix this problem, I've found a thread on these forums. It was saying install libglib2.0-dev an then install (or remove) gnome-shell.I tried every solution I've found but nothing works, still got the error.Does anyone here succeded in compiling Empathy from source please?

View 8 Replies View Related

Ubuntu Installation :: Error While Building Nautilus ?

Mar 29, 2011

Downloaded Nautilus source to patch for transparent background.

Patching went well and fine.

During building I received this:

Code:

View 1 Replies View Related

Red Hat / Fedora :: Boot Error After Building New Kernel

Nov 19, 2009

I am using Centos 5 with an old kernel. I want to build the latest version for atheros 5K wireless drivers. So i downloaded, and compiled with the ".config" which is already in /boot , and made it ready to run.

However, whenever i try to boot with new kernel, after choosing it from the grub menu, i got the following error. I tried many many .config files but the result was the same.

Here is the screen capture of the error;

I'm trying this process for a week without any success...

View 5 Replies View Related

General :: Error While Building A 3-node Cluster ?

Jan 6, 2010

I'm building a 3-node cluster. I have created ocfs filesystems and mounted them on the first two nodes. But while mounting them on the third node , i'm getting this error for 8 of the total luns. all these 8 luns are of 1GB size.

I've unmounted these 8 luns from the other node and tried to mount in the third node ... and then it was working and again the error occurs in the second node. My observation was for some reason these particular luns are not allowing the third node.

mount.ocfs2: Invalid argument while mounting /dev/mapper/voting1 on /voting1. Check 'dmesg' for more information on this error.

dmesg output was :

I'm using RHEL 5.4

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved