Server :: "fork: Resource Temporarily Unavailable" For Certain User?
Jan 4, 2010
I have a machine running on RH with 4G memory and 8G swap.Just now I'm having a problem when loging in with a user - just call it "userX" -.Each time I'm logged in I got a message Code:-bash: fork: ource temporarily unavailableAnd almost everytime I entered any command, it gives me the same warning. In some time (rarely) it will give me proper result, but almost any time it gives me the warning and no result.When I use 'top' command, it shows that I still have 500M free memory and about 8G free swaps. Plus the process for userX is less than 20 processes, and each of them are short processes (less than an hour, mostly just few seconds).As a note this problem only occur on userX, for any other user on the machine everything works just fine.
I installed a while ago two CentOS 5.3 servers. One of them was running Samba and another OpenLDAP. I configured Samba to act as a PDC on the network and everything was working fine. I was already on policies configuration and desktop migrations.
The following problems are Samba server problem, LDAP server is on hold until I figure out the first problem.
Software conf:
Hardware conf:
One day, both servers began crashing, and after a while, it showed the following during the boot on Samba:
After that, ALL CentOS installations had this problem after yum update, epel installation and some smb.conf modifications:
I figured out it might be EPEL (i did installed yum-priorities and tryied updating the base sistem BEFORE epel installations), so I installed the system without EPEL yum repository. After some good and relieving 15 min working, the system crashed AGAIN after yum base update and showed the following on boot time:
And it stops right there.
Maybe some wrong kernel update? the first time it crashed in one way, with running updated system (After the first update, no manual update was done). The sequel problems were all after Kernel update and EPEL. The last one was just after Kernel update. I'll try one last time with NO updates, but i can't run the system like that.
I can't do anything that might one day crash, it's a 6000-7000 user gov environment, but i don't want to install another distro, so if I don't figure it out, they will order me to.
I was just mucking about in xfce, trying out new window buttons in conjunction with the black theme - dusk?? - when POW! - X shut down. Rebooting didn't restore things. Error is along these lines:
xfce4-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. xfwm4: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. [Code]....
Is there a config file I can edit to get away from the window button setting it dislikes, or is reinstalling xfce the only option?
I'm working a program to implement a simple multi-process browser. The browser works by having a ROUTER process as the parent of everything else in the program. There's another process called the CONTROLLER which is part of where the user can input information. To tell the ROUTER to make a new tab in the browser the user activates a function from the CONTROLLER to send the create new tab information to the ROUTER:
I've been running Samba on Gentoo as a PDC for a Windows XP domain for several years. We are using the IdealX smbldap tools to maintain users, we are storing accounts in OpenLDAP, and everything has been just golden for quite a while. However, for various reasons, we are migrating our servers away from Gentoo and onto Ubuntu 10.04 (64-bit). Unfortunately, replicating our Samba PDC/OpenLDAP backend on Ubuntu is kicking our backsides.I've got Samba 3.4.7 running. I've got OpenLDAP running. ldapsearch/ldapmodify/ldapadd all work correctly. However, when I try to mount a Samba share on another Ubuntu machine, I get...:
I have had ubuntu installed for a few months now and have been loving it. Yesterday I wanted to get JDK installed for a found a forum that said how to install it on ubuntu. The installation was not a success (I am not sure why because I am not skilled when it comes to the command line and I didn't understand the error). Later, I tried to install a different application just through the ubuntu software center and it said it was waiting for a different software manager to finish. I didn't understand what was still running because I had all other applications closed that I know of.
Once I restarted the problem was the same. Then I found a bug where people had the same problem with the software manager and they entered this and fixed it: sudo dpkg --configure -a Now whenever I try to apt-get anything I get: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Today when tried to install a software from the terminal...d command dint work. Check this.
calvin@calvin-desktop:~$ sudo apt-get install pidgin [sudo] password for calvin: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? calvin@calvin-desktop:~$
It says that it cannot get lock! I have installed ubuntu along with windows! and drive E: is in windows.
I am running ubuntu 10.04 and am trying to get updates via the update manager but continue to get the following errors: "E: could not get lock /var/cache/apt/archives/lock - open(11:Resource temporarily unavailable) E: Unable to lock the download directory"
I have a few updates that I can install using the Update Manager but when I click the "Install Updates" button I get this pop up window message E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory How to get the updates?
When i connect windows server 2003 from ubuntu these error displayed .When i installing the tsclient, by executing these following command from a Terminal window:
sudo apt-get install tsclient
When i run these command the following error displayed.
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I recently installed Ubuntu 11.04 on an old Sony Vaio laptop. I was following some of the steps here..[url]
The step "Enable Full DVD Playback(Dual Layer DVD Support)" did not finish correctly doh and now I can't use 'sudo apt-get' for anything or the software center or using the 'Update Manager' does not work.
The update manger says it may be caused by an update not finishing correctly which sounds correct as explained above. The apt-get command gives me back the following....'Could not get lock /var/lib/dpkg/lock resource temporarily unavailable' 'unable to lock administration directory /var/lib/dpkg is another process using it?'
I tried the obvious restart but that hasn't worked.
I have pidgin2.5.2. I want to install pidgin2.6.6.How can I do that?E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I just found out that there are some weird files on my harddisk: they have a filename that starts with "._", have a size of 4096 bytes, and contain a string that sais "This resource fork intentionally left blank".Does anyone know what put them there?
I am working with a C++ program consisting of two threads. The first threads receives packets through an UDP unicast connection and stores them in a buffer. The second thread reads the packets from the buffer and sends them through an UDP multicast connection. Both use blocking sockets and share a common buffer and a linked list L1, which are protected by mutexes. The program seemed to work just fine, receiving a packet and sending it almost immediately, but started giving some trouble recently. The synchronization between both thread started failing, and I decided to use a non-blocking socket in the sending thread. As a consequence, sendto() doesn't work in some cases, causing an errno 11 (Resource unavailable).
I wanted to know is there any way to prevent fork bomb on a server or understand who did it and how did it I mean how to track reference of fork bomb and find out how does it occur ?
WARNING No path in service <printername> - Making it unavailable!
I'm runing a CentOS 5.4 server. I have a Windows NT Domain. My CentOS server is in the Domain, Samba works fine (both ways). I haven't needed to print from the CentOS box until now. I have a shared HP LaserJet 2100 printer connected to a workstation and shared. Everyone can use it. I'm not using SELinux
I want to be able to print from the CentOS box to that printer.
I used Webmin to set it up, but no joy so I've searched the entire web for any info to do it manually but I'm stuck.
While Apache is off, then everything is OK, but if I start apache server after some time I get messages "Unable to fork: Cannot allocate memory" when trying to do some commands with ssh(dir,rm,top and so on).
I need to setup a Linux VPN server at work for resources' sharing, I currently have a server running CentOS 5.4, and tried endless tutorials on the web, but to no avail, and can't find where the logs are kept for the VPN server to check where the error is. But all my attempts to try to connect keep failing.
My test messages from one mail server to another are getting sent to my spambucket and the only error in the logs is: warning: numeric domain name in resource data of MX record for [URL]: 74.63.64.42
I need to monitor resource of my server. I have found munin and sysstat, Does munin use systat? or they are different package?because in some documents I have found on net,for installing munin, systat is needed !!for example on RedHat based distor, sysstat package is needed! but on debian is not needed!
For some reason my mail server (Postfix) seems to have stopped delivering mail.
The error in the mail logs is "status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) against all mails.
I have researched to try and find an answer, most information on this problem seems to point to a malfunction in the Anti Virus and Spam Filtering solution.
I have checked that Amavisd and Clamd are both operating and have restarted Postfix but all to no avail, squirrelmail is not working either.. ie not even producing a login page.
I have not changed anything in the config and am just wondering if anyone has experienced similar and could point me in the right direction of a solution.
I have configured heartbeat and pacemaker with 2 nodes, all resources work well, all resources stars when some of them is down, when the host is down, pacemaker moves all resources to the other one, my configuration:
[code]...
i have the directive " resource-stickiness="INFINITY", when node1 is down, the node2 starts all resources and prevent failback again though the node1 is up, back i need move all resources to the first one when I certainly sure the node1 is runnig, is there some directive to tell pacemaker that move back again the to node1 automatically? i mean, is posibble to move back resources to node1 when It has passed certain time, maybe 1 hour or something?
i am trying to use the Messaging and VOIP client that manages multiple accounts in the bar on top of the screen in the unity desktop. i am trying to connect to irc freenode but when i try to add the account i get an error message that says... "Disconnected this resource is already connected to the server."
I have a little problem with my RHEL5.5 IA64. I mounted a Windows directory with 'mount -t cifs'. After a little while someone else mounted the same windows directory in the same mountpoint. The output from 'mount -v' shows me that the same directory is mounted twice in the same mountpoints. I cannot unmount it, not even with the force option. The error is "Device or resource busy". There are no open files in the shared directory and no one using the directory or subdirectories.
I have a question that i want to make a normal user to execute the commands which the root user is able to execute, say if i have a user named siru and when i logged in using siru i cannot run commands like tracert,nmap@loccalhost and all but i can run when i have logged into root account so my question is how to make siru to run the command tracert,nmap@localhost.I have even edited the .bash_profile of siru's home directory from
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then
Apache is run as www as is all the files/folders. People are uploading via FTP, scp, so the problem is if I chmod so everyone can read, then rsync as a user it works until new files are added which then my ; if rsync fails with a permission denied. Now I can add a chmod in the script so everyone can read, but since www can already read, I figured I would just change my script to use www. I added the ssh key to his authorized_keys file, but when I try to just ssh in I see this in the secure file;
server sshd[29539]: User www not allowed because account is locked sshd[29539]: Failed none for invalid user www from ip port 54983 ssh2
Now I read a few places already saying I need to add a password to the account, etc. but before I jump and try all I read, 1st major one, will this now break apache? Will this affect any startup things, etc. and .... will that unlock that user for ssh in or is there another preferred method?
-memory usage (mb/user) -cpu usage -processes (amount and no same process multiply) -connections (amount of connections (to specific host)) -bandwidth (kbps/user and even owerall for regular users) -disk usage -available commands
1) Write a C program using the fork() system call that that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example, if 5 is provided, the first five numbers in the Fibonacci sequence will be output by the child process. Because the parent and child processes have their own copies of the data, it will be necessary for the child to output the sequence. Have the parent invoke the wait() call to wait for the child process to complete before exiting the program. Perform necessary error checking to ensure that a non-negative number is passed on the command line.
2) Repeat the preceding exercise, this time using the CreateProcess () in the Win32 API. In this instance, you will need to specify a separate program to be invoked from CreateProcess(). It is this separate program that will run as a child process outputting the Fibonacci sequence. Perform necessary error checking to ensure that a non-negative number is passed on the command line.i have done with Fibonacci sequence .but i dont know how to include tht fork() function and win32 api .any one can help to finish?