Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Location
    Oakland, CA
    Posts
    5

    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
    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
    Last edited by aoscott510; 03-07-2013 at 07:23 PM. Reason: Typo

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello and welcome!

    Check the following article to see if one of the solutions provided helps:

    How to fix a broken yum for CentOS

    It's written for CentOS, but will likely work with Red Hat as well.
    oz

  3. #3
    Just Joined!
    Join Date
    Mar 2013
    Location
    Oakland, CA
    Posts
    5
    That file does not even exist on this particular server. So there was nothing to disable. I'm not sure if it is required or not. Here are the contents of the directory though.

    Code:
    -rw-r--r-- 1 root root   17 Mar 17  2010 security.conf
    drwxr-xr-x 3 root root 4096 Nov  2  2010 ..
    drwxr-xr-x 2 root root 4096 Nov  2  2010 .
    -rw-r--r-- 1 root root  163 Mar  1  2011 rhnplugin.conf
    -rw-r--r-- 1 root root   17 Jan  9  2012 downloadonly.conf

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Don't know that it will help, but check the system date and time on your server. I've seen the SSL Certificate error at the bottom of your output come up before when the system time was wrong.

    Hope it works...
    oz

  6. #5
    Just Joined!
    Join Date
    Mar 2013
    Location
    Oakland, CA
    Posts
    5
    So after looking into it more it turns out to be certificate issue. I didn't think it was at first My next question is how to fix RHN certificate issues. The two servers I am working with have no connetivity to the RHN or to the outside world for that matter. Is there a way to bypass the RHN and just use local media which is what I'm trying to do?

    Code:
    rhn_check -v
    ERROR: SSL errors detected
    [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]

  7. #6
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    917
    Are you trying to pull updates from a satellite server?

    Rerun rhnreg_ks and use a URL that has http: instead of https:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •