JCTDD
asked on
Problem with yum update on Centos 5.4 32bit
I have a VM running Centos 5.4 (32bit). It's running GForge app server together with PostgreSQL.
I have not run yum update in years on this box.
As a result of very-high CPU usage by PostgresSQL, I ran yum update but got:
# 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/yummai n.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummai n.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py ", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-p ackages/yu m/depsolve .py", line 101, in _getTs
self._getTsInfo(remove_onl y)
File "/usr/lib/python2.4/site-p ackages/yu m/depsolve .py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-p ackages/yu m/__init__ .py", line 661, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-p ackages/yu m/__init__ .py", line 501, in _getSacks
self.repos.populateSack(wh ich=repos)
File "/usr/lib/python2.4/site-p ackages/yu m/repos.py ", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-p ackages/yu m/repos.py ", line 79, in doSetup
self.ayum.plugins.run('pos treposetup ')
File "/usr/lib/python2.4/site-p ackages/yu m/plugins. py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fast estmirror. py", line 176, in postreposetup_hook
if downgrade_ftp and _len_non_ftp(repo.urls) == 1:
File "/usr/lib/python2.4/site-p ackages/yu m/yumRepo. py", line 676, in <lambda>
urls = property(fget=lambda self: self._geturls(),
File "/usr/lib/python2.4/site-p ackages/yu m/yumRepo. py", line 673, in _geturls
self._baseurlSetup()
File "/usr/lib/python2.4/site-p ackages/yu m/yumRepo. py", line 614, in _baseurlSetup
mirrorurls.extend(self._ge tMirrorLis t())
File "/usr/lib/python2.4/site-p ackages/yu m/yumRepo. py", line 1622, in _getMirrorList
fo = urlgrabber.grabber.urlopen (url, proxies=self.proxy_dict)
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 612, in urlopen
return default_grabber.urlopen(ur l, **kwargs)
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 891, in urlopen
return self._retry(opts, retryfunc, url)
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 852, in _retry
r = apply(func, (opts,) + args, {})
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 890, in retryfunc
return URLGrabberFileObject(url, filename=None, opts=opts)
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 1008, in __init__
self._do_open()
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 1091, in _do_open
fo, hdr = self._make_request(req, opener)
File "/usr/lib/python2.4/site-p ackages/ur lgrabber/g rabber.py" , line 1204, in _make_request
fo = opener.open(req)
File "/usr/lib/python2.4/urllib 2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib 2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib 2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib 2.py", line 573, in <lambda>
lambda r, proxy=url, type=type, meth=self.proxy_open: \
File "/usr/lib/python2.4/urllib 2.py", line 580, in proxy_open
if '@' in host:
TypeError: iterable argument required
[root@server1 ~]#
What's causing the yum update failure?
I can ping other servers in other subnets by name just and I know my proxy server works.
I have exported the relevanted HTTP_PROXY line in /etc/profile.d/proxy.sh
I have not run yum update in years on this box.
As a result of very-high CPU usage by PostgresSQL, I ran yum update but got:
# 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
File "/usr/share/yum-cli/yummai
errcode = main(args)
File "/usr/share/yum-cli/yummai
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-p
self._getTsInfo(remove_onl
File "/usr/lib/python2.4/site-p
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-p
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-p
self.repos.populateSack(wh
File "/usr/lib/python2.4/site-p
self.doSetup()
File "/usr/lib/python2.4/site-p
self.ayum.plugins.run('pos
File "/usr/lib/python2.4/site-p
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fast
if downgrade_ftp and _len_non_ftp(repo.urls) == 1:
File "/usr/lib/python2.4/site-p
urls = property(fget=lambda self: self._geturls(),
File "/usr/lib/python2.4/site-p
self._baseurlSetup()
File "/usr/lib/python2.4/site-p
mirrorurls.extend(self._ge
File "/usr/lib/python2.4/site-p
fo = urlgrabber.grabber.urlopen
File "/usr/lib/python2.4/site-p
return default_grabber.urlopen(ur
File "/usr/lib/python2.4/site-p
return self._retry(opts, retryfunc, url)
File "/usr/lib/python2.4/site-p
r = apply(func, (opts,) + args, {})
File "/usr/lib/python2.4/site-p
return URLGrabberFileObject(url, filename=None, opts=opts)
File "/usr/lib/python2.4/site-p
self._do_open()
File "/usr/lib/python2.4/site-p
fo, hdr = self._make_request(req, opener)
File "/usr/lib/python2.4/site-p
fo = opener.open(req)
File "/usr/lib/python2.4/urllib
response = self._open(req, data)
File "/usr/lib/python2.4/urllib
'_open', req)
File "/usr/lib/python2.4/urllib
result = func(*args)
File "/usr/lib/python2.4/urllib
lambda r, proxy=url, type=type, meth=self.proxy_open: \
File "/usr/lib/python2.4/urllib
if '@' in host:
TypeError: iterable argument required
[root@server1 ~]#
What's causing the yum update failure?
I can ping other servers in other subnets by name just and I know my proxy server works.
I have exported the relevanted HTTP_PROXY line in /etc/profile.d/proxy.sh
is there another python installation on the system?
i had this issue once where a legacy application was installed that used an older python library and because it was configured for the system path instead of the user path yum threw python errors as you see there. once we changed that then yum used the correct, newer python version and it worked fine
i had this issue once where a legacy application was installed that used an older python library and because it was configured for the system path instead of the user path yum threw python errors as you see there. once we changed that then yum used the correct, newer python version and it worked fine
ASKER
How can I determine how many and what versions of yum is currently installed?
# which python
/usr/bin/python
# which python
/usr/bin/python
ASKER
I tried the 'yum clean all' and that appeared to run successfully.
But any other subsequent yum command fails with error like my original post.
But any other subsequent yum command fails with error like my original post.
ASKER
#find / -name python
/usr/share/doc/m2crypto-0. 16/demo/Zo peX3/insta ll_dir/lib /python
/usr/share/doc/m2crypto-0. 16/demo/Zo pe/lib/pyt hon
/usr/share/doc/m2crypto-0. 16/demo/Zo pe27/insta ll_dir/lib /python
/usr/lib/mailman/pythonlib /japanese/ python
/usr/lib/mailman/pythonlib /korean/py thon
/usr/lib/python2.4/site-pa ckages/jap anese/pyth on
/usr/bin/python
You have new mail in /var/spool/mail/root
/usr/share/doc/m2crypto-0.
/usr/share/doc/m2crypto-0.
/usr/share/doc/m2crypto-0.
/usr/lib/mailman/pythonlib
/usr/lib/mailman/pythonlib
/usr/lib/python2.4/site-pa
/usr/bin/python
You have new mail in /var/spool/mail/root
Next, run these 2
# rm /dev/urandom
# mknod -m 644 /dev/urandom c 1 9
then do your yum update again.
# rm /dev/urandom
# mknod -m 644 /dev/urandom c 1 9
then do your yum update again.
ASKER
I took a snapshot of the VM.
# rm /dev/urandom
ran without a problem
# mknod -m 644 /dev/urandom c 1 9
complained that /dev/urandom already exists even though I just deleted it.
# yum update
failed as before.
I have since rolled back the snapshot.
# rm /dev/urandom
ran without a problem
# mknod -m 644 /dev/urandom c 1 9
complained that /dev/urandom already exists even though I just deleted it.
# yum update
failed as before.
I have since rolled back the snapshot.
what happens when you do python -V ?
ASKER
# python -V
Python 2.4.3
Python 2.4.3
ASKER
Anyone
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Don't know if this is the correct solution. I don't have time for Linux.
# yum clean all
then try your update again.