Red Hat Bugzilla – Bug 312221
yum failes and the trace shows a python problem in /usr/lib/python2.5/threading.py
Last modified: 2014-01-21 17:59:30 EST
Description of problem:
yum fails everytime I try to yum search or yum install with the same error every
Version-Release number of selected component (if applicable):
yum search xxx
yum install xxx
Steps to Reproduce:
[root@main ~]# yum search kernel
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Determining fastest mirrors
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
File "/usr/share/yum-cli/yummain.py", line 102, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 279, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
File "/usr/share/yum-cli/yumcommands.py", line 374, in doCommand
File "/usr/share/yum-cli/cli.py", line 844, in search
for (po, matched_value) in matching:
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 1245, in
for sack in self.pkgSack.sacks.values():
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 521, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 381, in _getSacks
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 211, in populateSack
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 66, in doSetup
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 80, in postreposetup_hook
repomirrors[str(repo)] = FastestMirror(repo.urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 124, in get_mirrorlist
File "/usr/lib/yum-plugins/fastestmirror.py", line 132, in _poll_mirrors
File "/usr/lib/python2.5/threading.py", line 434, in start
thread.error: can't start new thread
Forgot to say in my original bugzilla post.
I statred getting this error yesterday, after the latest yum update.
Until then, Never had such a problem with yum.
I've made no special changes to the system, just yum updated.
I've just found out that the problem is with a yum plugin called "fastestmirror".
If I do "yum search kernel --disableplugin=fastestmirror" everything works well.
The problem started yesterday, and I've made no changes to the system except yum
I have the following yum plugins installed. "downloadonly" & "fastestmirror"
I've removed "yum-fastestmirror" (the problem went away) and reinstalled it (the
problem came back)
Yes, as you already have detected does the problem occours in the fastestmirror
Luke, Any comments
I patched fastestmirror the other day to make it throttle the way it dispatches
threads. It adds a 'maxthreads' configuration option, which defaults to 15.
Please put this file in /usr/lib/yum-plugins and try and reproduce the issue.
yum-fastestmirror-1.1.10 has been out for a while now, which should resolve this
issue. Please re-open this bug if this problem still occurs. Thanks!