OpenVZ Forum


Home » General » Support » Aptitude FATAL -> Failed to fork.
Aptitude FATAL -> Failed to fork. [message #38045] Wed, 11 November 2009 14:52 Go to next message
AmokPaule is currently offline  AmokPaule
Messages: 2
Registered: November 2009
Junior Member
Hello,
i have a debian lenny guest on a lenny host.
When i type aptitude update install or something i get FATAL -> Failed to fork.
When i start just aptitude i get that message. Uncaught exception: Not enough resources to create thread.
apt-get seems to work.
Re: Aptitude FATAL -> Failed to fork. [message #38046 is a reply to message #38045] Wed, 11 November 2009 15:55 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

See http://wiki.openvz.org/Resource_shortage

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Aptitude FATAL -> Failed to fork. [message #38047 is a reply to message #38046] Wed, 11 November 2009 18:49 Go to previous messageGo to next message
AmokPaule is currently offline  AmokPaule
Messages: 2
Registered: November 2009
Junior Member
Hello,
im still in understaning all that stuff Embarassed
I did :
vzctl set 102 --privvmpages 400m:500M --save
vzctl set 102 --vmguarpages 400m:500M --save
Did i make anything here that can cause heavy trouble.
Re: Aptitude FATAL -> Failed to fork. [message #38077 is a reply to message #38047] Fri, 13 November 2009 16:00 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:

Did i make anything here that can cause heavy trouble.


nothing fatal.

You have just bump into resource shortage. To know what resource have to be increased explore /proc/user_beancounters and read the provided link.
Re: Aptitude FATAL -> Failed to fork. [message #52673 is a reply to message #38045] Sun, 04 December 2016 15:40 Go to previous message
slrslr is currently offline  slrslr
Messages: 12
Registered: April 2014
Junior Member
My OVZ VPS had 120MB free (free -mt), but apt-get returned same error. Just wanted to share workaround that was not yet mentioned.

do "top -c" to see the process eating most of the VIRT/RES/SHR (memory), in my case it was mysql. Stop it temporarily.
i did: service mysql stop
then apt-get worked
then started mysql again: service mysql start
Previous Topic: Can you rebuild vz/private files?
Next Topic: Can I migrate an existing CentOS 5 container from OpenVZ 6 host to VZ7 host?
Goto Forum:
  


Current Time: Tue Mar 19 10:43:05 GMT 2024

Total time taken to generate the page: 0.02516 seconds