SOHO : Small Office Home Office
Freeware - Opensource software tips, tricks, tweaks & fixes for managing, securing, improving the performance of SOHO Desktop, Laptop, Networks

Thursday, August 5, 2010

YUM thread.error: can't start new thread

When I tried to update my OS this noon, I got these error messages from Yum, it's strange that it works well during the passed ages.
Is there any one give me some directions please?

[root@126 janghiz]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?

yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/", line 104, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/", line 339, in doCommands
File "/usr/lib/python2.4/site-packages/yum/", line 101, in _getTs
File "/usr/lib/python2.4/site-packages/yum/", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/", line 591, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/", line 434, in _getSacks
File "/usr/lib/python2.4/site-packages/yum/", line 223, in populateSack
File "/usr/lib/python2.4/site-packages/yum/", line 71, in doSetup'postreposetup')
File "/usr/lib/python2.4/site-packages/yum/", line 176, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/", line 333, in get_mirrorlist
File "/usr/lib/yum-plugins/", line 376, in _poll_mirrors
File "/usr/lib/python2.4/", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

The Fix:
Basically this issue is rare to see, it's a memory resource issue with the vps which is caused by yum's fastestmirror plugin. This issue can be repeated when the following two conditions are met:

1, You're running VPS, for example in an OpenVZ virtual server.
2, There's a mysql instance running in this vritual server already.

This is a reported bug which had been fixed two months ago.

As we know the exactly reason for this error, there're two ways to bypass it:
1, Stop the mysql instance and run yum again.
2, Disable yum's fastestmirror plugin when start yum, like this:

yum --disableplugin=fastestmirror update


  1. Hey i sitll get that error :S

    Contact me:


  2. Dear Reader,

    Try to shutdown mysql and then run yum update