LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2013, 04:44 PM   #1
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Rep: Reputation: Disabled
RHEL yum broken


I am working with a RHEL 5.6 server and having a very difficult time getting an issue with yum resolved. After many hours scouring the internet I still have yet to discover the right fix. I noticed this is a common problem which has many variant. In general yum fails with about every switch except

Code:
yum clean all
Code:
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 665, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, 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/lib/yum-plugins/rhnplugin.py", line 111, 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 186, in login
    li = server.up2date.login(systemId)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 64, in __call__
    raise up2dateErrors.SSLCertificateVerifyFailedError()
up2date_client.up2dateErrors.SSLCertificateVerifyFailedError: The SSL certificate failed verification.

Here is what I have tried so far:

yum clean all

Check for failed dependencies:

rpm -Va python\* yum\*

Rebuild rpm database:
rpm --rebuilddb

Rebuild urandom in /dev:

mv urandom urandom.old
mknod -m 644 /dev/urandom c 1 9


I'm very anxious to get this resolved without rebuilding the entire server. Any help is greatly appreciated.

Thanks
 
Old 03-07-2013, 05:00 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
Red Hat Article < https://access.redhat.com/knowledge/solutions/93313 > has some really good advice for testing/identifying where the problem is and resolving.
 
Old 03-07-2013, 05:05 PM   #3
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks,

I will look through that.

Last edited by aoscott; 03-07-2013 at 05:24 PM. Reason: typo
 
Old 03-07-2013, 05:24 PM   #4
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Original Poster
Rep: Reputation: Disabled
I'm actually trying to install packages from a locally mounted RHEL iso file and am not using RHN. I'm not sure if that makes a difference. I have tried disble all repos and just used the one I created for the iso file.
 
Old 03-07-2013, 05:36 PM   #5
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
ah, ok, then take a look at How do I setup a yum or up2date repository to use a locally mounted DVD with Red Hat Enterprise Linux 4, 5 and 6? and How do I configure a yum local repository to be able to access a DVD ISO via HTTP on Red Hat Enterprise Linux?. They are good example setups that you should be able to use for reference to see if there is a missed step somewhere.
 
Old 03-07-2013, 06:23 PM   #6
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Original Poster
Rep: Reputation: Disabled
Sorry to say. I have already created a the repo in /etc/yum.repos.d. I get this error just by doing some thing as simple as a yum repolist. I have also tried to disable all repos and just used the one for the mounted ISO.
 
Old 03-07-2013, 06:27 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,280

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Post the repo file
 
Old 03-07-2013, 06:29 PM   #8
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Original Poster
Rep: Reputation: Disabled
Code:
[RHELISO]
mediaid=1294304619.306089
name=Rhel Iso
baseurl=file:///RHEL/Server
gpgcheck=0
enabled=1


Please note I have this same setup on anther server running RHEL 5.8 and yum works without issue with a locally mounted ISO

Last edited by aoscott; 03-07-2013 at 06:31 PM. Reason: Add
 
Old 03-08-2013, 01:19 PM   #9
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Original Poster
Rep: Reputation: Disabled
Turns out this is a certificate issue. Dind't think it was as first Anyone know of a way to completely bypass the RHN?

Code:
rhn_check -v
ERROR: SSL errors detected
[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
 
Old 03-08-2013, 01:24 PM   #10
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Ubuntu 14.04
Posts: 617

Rep: Reputation: 140Reputation: 140
Quote:
Originally Posted by aoscott View Post
Turns out this is a certificate issue. Dind't think it was as first Anyone know of a way to completely bypass the RHN?

Code:
rhn_check -v
ERROR: SSL errors detected
[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
Are you using Red Hat without paying for the service? If so maybe you should switch to CentOS, a Red Hat clone but free to use.
 
Old 03-09-2013, 03:53 AM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,374
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Quote:
Originally Posted by aoscott View Post
Anyone know of a way to completely bypass the RHN?
If you mean bypass as in "not polling any remote resources" when using local sources only then there's the Yum "-C" switch to try. OTOH if you mean bypass as in "circumventing access methods" then jkirchner is right and the question would become one we'd rather not like to see on LQ. So please be clear and careful what you ask for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CRITICAL:yum.cli Config Error yum.conf in RHEL 6.0 chunrima Linux - Software 2 12-09-2010 06:19 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
RHEL 5 Yum Update Errors, Pup Broken - Help. maxvonseibold Red Hat 1 08-16-2007 06:33 AM
broken yum - "No module named yum" shihab-alain Linux - Software 2 05-10-2006 05:09 AM


All times are GMT -5. The time now is 01:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration