CentOS - yum - thread.error: can't start new thread

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

CentOS - yum - thread.error: can't start new thread

Ошибка вида:

thread.error: can't start new thread

означает, что на сервере нехватка RAM и примерно в top будет:

Mem:    524288k total,   524288k used,        0k free,        0k buffers
Swap:        0k total,        0k used,        0k free,    41368k cached


Полный лог:

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                 |  25 kB     00:00
Traceback (most recent call last):
 File "/usr/bin/yum", line 29, in <module>
   yummain.user_main(sys.argv[1:], exit_code=True)
 File "/usr/share/yum-cli/yummain.py", line 298, in user_main
   errcode = main(args)
 File "/usr/share/yum-cli/yummain.py", line 146, in main
   result, resultmsgs = base.doCommands()
 File "/usr/share/yum-cli/cli.py", line 440, in doCommands
   return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
 File "/usr/share/yum-cli/yumcommands.py", line 211, in doCommand
   return base.installPkgs(extcmds)
 File "/usr/share/yum-cli/cli.py", line 702, in installPkgs
   self.install(pattern=arg)
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3551, in install
   mypkgs = self.pkgSack.returnPackages(patterns=pats,
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 907, in <lambda>
   pkgSack = property(fget=lambda self: self._getSacks(),
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 687, in _getSacks
   self.repos.populateSack(which=repos)
 File "/usr/lib/python2.6/site-packages/yum/repos.py", line 295, in populateSack
   self.doSetup()
 File "/usr/lib/python2.6/site-packages/yum/repos.py", line 110, in doSetup
   self.ayum.plugins.run('postreposetup')
 File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
   func(conduitcls(self, self.base, conf, **kwargs))
 File "/usr/lib/yum-plugins/fastestmirror.py", line 202, in postreposetup_hook
   all_urls = FastestMirror(all_urls).get_mirrorlist()
 File "/usr/lib/yum-plugins/fastestmirror.py", line 369, in get_mirrorlist
   self._poll_mirrors()
 File "/usr/lib/yum-plugins/fastestmirror.py", line 413, in _poll_mirrors
   pollThread.start()
 File "/usr/lib/python2.6/threading.py", line 474, in start
   _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread