post update - yum issues
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Nick Shreders
  2. Wednesday, 27 October 2010
  3.  Subscribe via email
I tried \'yum clean all\' even tried forcing re-install of some yum/rhn/python packages. This is what I get:

]# yum update
Loaded plugins: rhnplugin, security
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/yummain.py\", line 309, in user_main
errcode = main(args)
File \"/usr/share/yum-cli/yummain.py\", line 157, in main
base.getOptionsConfig(args)
File \"/usr/share/yum-cli/cli.py\", line 187, in getOptionsConfig
self.conf
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 664, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 253, in _getConfig
self.plugins.run(\'init\')
File \"/usr/lib/python2.4/site-packages/yum/plugins.py\", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File \"/usr/share/yum-plugins/rhnplugin.py\", line 151, in init_hook
if channel[\'label\'] not in rhnChannel.channel_blacklist \\
AttributeError: \'module\' object has no attribute \'channel_blacklist\'
]#
Rate this post:
  1. 28.10.2010 08:10:43
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1194
Joined: 09.02.2010
0
Votes
Undo
This is fairly rare issue, not 100 sure where it comes out from, but the solution is to do this:

for x86_64 system:
rpm -Uvh http://repo.cloudlinux.com/cloudlinux/5.5/updates/x86_64/RPMS/yum-rhn-plugin-1.1.7-1.el5.cloudlinux.noarch.rpm

for 32bit system
rpm -Uvh http://repo.cloudlinux.com/cloudlinux/5.5/updates/i386/RPMS/yum-rhn-plugin-1.1.7-1.el5.cloudlinux.noarch.rpm

After that everything should work.
  1. 22.02.2011 04:02:24
  2. # 2
Patrick van Hout Accepted Answer
Posts: 8
Joined: 09.10.2010
0
Votes
Undo
Got the same problem. The solution works indeed.
Thanks!!
  1. 26.02.2011 12:02:43
  2. # 3
Bozhidar Bozhev Accepted Answer
Posts: 3
Joined: 26.02.2011
0
Votes
Undo
Hello,

First i would like to thank you for the hint above, however it did not seem to resolve my issues with yum under cloud linux ( 64 bit / x86_64 ):

Please note that i have tried the following :

* rebuilding the rpm database
* installing the packages provided in the above post by Igor

*************
# yum update
Loaded plugins: fastestmirror, rhnplugin
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/yummain.py\", line 309, in user_main
errcode = main(args)
File \"/usr/share/yum-cli/yummain.py\", line 157, in main
base.getOptionsConfig(args)
File \"/usr/share/yum-cli/cli.py\", line 187, in getOptionsConfig
self.conf
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 664, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 253, in _getConfig
self.plugins.run(\'init\')
File \"/usr/lib/python2.4/site-packages/yum/plugins.py\", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File \"/usr/share/yum-plugins/rhnplugin.py\", line 117, in init_hook
login_info = up2dateAuth.getLoginInfo()
File \"/usr/share/rhn/up2date_client/up2dateAuth.py\", line 219, in getLoginInfo
login()
File \"/usr/share/rhn/up2date_client/up2dateAuth.py\", line 183, in login
maybeUpdateVer sion()
File \"/usr/share/rhn/up2date_client/up2dateAuth.py\", line 45, in maybeUpdateVersion
systemVer = up2dateUtils.getVer sion()
File \"/usr/share/rhn/up2date_client/up2dateUtils.py\", line 43, in getVersion
os_release, version, release = _getOSVersionAndRelease()
File \"/usr/share/rhn/up2date_client/up2dateUtils.py\", line 33, in _getOSVersionAndRelease
raise up2dateErrors.RpmError(
up2date_client.up2dateErrors.RpmError: RPM error. The message was:
Could not determine what version of Red Hat Linux you are running.
If you get this error, try running

rpm --rebuilddb
*************

i would very much appreciate some assistance on this .

Best Regards,
  1. 26.02.2011 12:02:37
  2. # 4
Igor Seletskiy Accepted Answer
Posts: 1194
Joined: 09.02.2010
0
Votes
Undo
Could you send server access info either either support channel, or directly to me at [email protected]

The instructions should have resolved the issue, so I am not sure what else it could be :(
  1. 26.02.2011 15:02:06
  2. # 5
Bozhidar Bozhev Accepted Answer
Posts: 3
Joined: 26.02.2011
0
Votes
Undo
Hi,

I have responded via email to you directly, please let me know what you find.

Thank you once more for your brilliant support and assistance.

Kind Regards,
B.Bozhev
  1. 15.06.2011 18:06:19
  2. # 6
David Wurst Accepted Answer
Posts: 4
Joined: 15.06.2011
0
Votes
Undo
I\'m having the same problem, and no amount of searching or attempting cleans, rebuilds, or the suggested rpm -Uvh http://... seems to work. Any suggestions?



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/yummain.py\", line 309, in user_main
errcode = main(args)
File \"/usr/share/yum-cli/yummain.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-packages/yum/depsolve.py\", line 101, in _getTs
self._getTsInfo(remove_only)
File \"/usr/lib/python2.4/site-packages/yum/depsolve.py\", line 112, in _getTsInfo
pkgSack = self.pkgSack
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 662, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 516, in _getSacks
self.plugins.run(\'exclude\')
File \"/usr/lib/python2.4/site-packages/yum/plugins.py\", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File \"/usr/lib/yum-plugins/security.py\", line 488, in exclude_hook
md_info = ysp_gen_metadata(conduit.getRepos().listEnabled())
File \"/usr/lib/yum-plugins/security.py\", line 76, in ysp_gen_metadata
md_info.add(repo)
File \"/usr/lib/python2.4/site-packages/yum/update_md.py\", line 424, in add
for event, elem in iterparse(infile):
File \"<string>\", line 64, in __iter__
SyntaxError: mismatched tag: line 224, column 29
  1. 16.06.2011 11:06:33
  2. # 7
Igor Seletskiy Accepted Answer
Posts: 1194
Joined: 09.02.2010
0
Votes
Undo
  1. 02.07.2011 21:07:09
  2. # 8
David Wurst Accepted Answer
Posts: 4
Joined: 15.06.2011
0
Votes
Undo
I apologize for the delay in responding - the popup login form hasn\'t worked for me. I was able to find the actual login page today though.

At any rate, I just setup another server and am having the exact same issue. I did in fact try the suggestion you just offered. Is there anything else you could suggest please? Thank you for your help!
  1. 02.07.2011 22:07:04
  2. # 9
Bozhidar Bozhev Accepted Answer
Posts: 3
Joined: 26.02.2011
0
Votes
Undo
@Igor the pop-up login form really doesn\'t work.

@David the solution to your problem is :

rm -rf /dev/urandom
mknod -m 644 /dev/urandom c 1 9

However please note that you most probably have a faulty initial installation, or the source was corrupted in some way to bring the system to this state, since this error is known to happen in only previous version early 5.0 and latest 4.x of CentOS , and is common for VPS OS templates under OpenVZ due to faulty building.

Hope this helps

Edit:: Note this has worked for me on CentOS 5.x x86 and x86_64
  1. 02.07.2011 22:07:29
  2. # 10
David Wurst Accepted Answer
Posts: 4
Joined: 15.06.2011
0
Votes
Undo
Thank you Bozhidar, I will try your suggestions soon and report back as to the success.

This server is CentOS 5.6 x86_64 / cPanel 11.30.0 (build 32)
  1. 03.07.2011 05:07:43
  2. # 11
David Wurst Accepted Answer
Posts: 4
Joined: 15.06.2011
0
Votes
Undo
Unfortunately, it still doesn\'t work even after your suggestion.

EDIT: it may be important to note that this occurs for me no when running yum update but when running yum check-update --security.
  1. 25.07.2011 07:07:48
  2. # 12
Oscar Steenmann Accepted Answer
Posts: 1
Joined: 25.07.2011
0
Votes
Undo
Hello,

We have the exact same problem;

# yum check-update --security
Loaded plugins: fastestmirror, rhnplugin, security
Loading mirror speeds fr om cached hostfile
* cloudlinux-base: repo.cloudlinux.com
* cloudlinux-updates: repo.cloudlinux.com
* cloudlinux-x86_64-server-5: de-proxy.cl-mirror.net
Lim iting package lists to security relevant ones
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/yummain.py\", line 309, in user_main
errcode = main(args)
File \"/usr/share/yum-cli/yummain.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-packages/yum/depsolve.py\", line 101, in _getTs
self._getTsInfo(remove_only)
File \"/usr/lib/python2.4/site-packages/yum/depsolve.py\", line 112, in _getTsInfo
pkgSack = self.pkgSack
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 662, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File \"/usr/lib/python2.4/site-packages/yum/__init__.py\", line 516, in _getSacks
self.plugins.run(\'exclude\')
File \"/usr/lib/python2.4/site-packages/yum/plugins.py\", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File \"/usr/lib/yum-plugins/security.py\", line 488, in exclude_hook
md_info = ysp_gen_metadata(conduit.getRepos().listEnabled())
File \"/usr/lib/yum-plugins/security.py\", line 76, in ysp_gen_metadata
md_info.add(repo)
File \"/usr/lib/python2.4/site-packages/yum/update_md.py\", line 424, in add
for event, elem in iterparse(infile):
File \"<string>\", line 64, in __iter__
SyntaxError: not well-formed (invalid token): line 1924, column 33

This error doesn\'t appear using CentOS 5.6 with the same rpm packages installed;

CloudLinux 5.6;

redhat-rpm-config-8.0.45-32.el5.cloudlinux
rpm-4.4.2.3-22.el5
rpm-build-4.4.2.3-22.el5
rpm-libs-4.4.2.3-22.el5
rpm-python-4.4.2.3-22.el5
rpmforge-release-0.5.2-2.el5.rf

CentOS 5.6:

redhat-rpm-config-8.0.45-32.el5.centos
rpm-4.4.2.3-22.el5
rpm-build-4.4.2.3-22.el5
rpm-libs-4.4.2.3-22.el5
rpm-python-4.4.2.3-22.el5
rpmforge-release-0.5.2-2.el5.rf

Also the used Python versions appears to be the same: Python 2.4.3

Could you help us out providing a solution? At this point we are unable to monitor (security) updates through Nagios.

Thank you in advance.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.