Quantcast
Channel: Gokhan Atil’s Technology Blog
Viewing all articles
Browse latest Browse all 163

Unable to Register with Red Hat Network

$
0
0

We want to install Oracle E-Business Suite on Red Hat Linux 6.2. To be able to use RHN Repository to install packages, we tried to register our system but when we issued “rhn_register” we got the following error:

[Sat Jan 25 16:55:24 2014] rhn_register
Traceback (most recent call last):
  File "/usr/sbin/rhn_register", line 76, in <module>
    app.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_register", line 58, in main
    ui.main()
  File "/usr/share/rhn/up2date_client/tui.py", line 1272, in main
    tui.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 1230, in run
    result = win.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 235, in run
    tui_call_wrapper(self.screen, rhnreg.getCaps)
  File "/usr/share/rhn/up2date_client/tui.py", line 85, in tui_call_wrapper
    FatalErrorWindow(screen, e.errmsg)
<type 'exceptions.AttributeError'>: 'SSLCertificateVerifyFailedError' 
object has no attribute 'errmsg'

After a short search on internet, I found some articles which says we need to fix the date/time of the server. Unfortunately it didn’t work for me, the date/time was already uptodate but it was still giving certificate error. I thought the certification might be expired, so I just modified the /etc/sysconfig/rhn/up2date file to use “http” protocol instead of “https”.

# serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC
serverURL=http://xmlrpc.rhn.redhat.com/XMLRPC

# useNoSSLForPackages=0
useNoSSLForPackages=1

After this modification, rhn_regiter worked fine so we are able to install packages using YUM from RHN Repository.


Viewing all articles
Browse latest Browse all 163

Trending Articles