System unable to register with Red Hat Networks

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat System unable to register with Red Hat Networks
# 1  
Old 08-18-2011
System unable to register with Red Hat Networks

ISSUE: The system is unable to register with Redhat network (RHN).

SYSTEM DETAILS: RHEL6 (2.6.32-131.2.1.el6.x86_64). The firewall is turned off. I have network connectivity. There is no GUI. All work is done from the command line.
The following files are installed:
rhn-check-1.0.0-61.el6.noarch.rpm
rhn-client-tools-1.0.0-61.el6.noarch.rpm
rhn-setup-1.0.0-61.el6.noarch.rpm
yum-rhn-plugin-0.9.1-26.el6.noarch.rpm

BACKGROUND: I submitted a Redhat ticket but after many conversations with them that did not help. They recommended rebuilding the entire system. However, I have spent a considerable amount of time securing the system using the NSA security guidelines and subsequently do not want to rebuild . . . unless absolutely necessary.

This is the command I used to begin the registration process:
Code:
#> rhn_register

When connecting via HTTP, http://xmlrpc.rhn.redhat.com/XMLRPC, using the rhn_register command I am getting the following error in /var/log/up2date:
Code:
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 81, in tui_call_wrapper
results = func(*params)
File "/usr/share/rhn/up2date_client/rhnreg.py", line 246, in getCaps
s.capabilities.validate()
File "/usr/share/rhn/up2date_client/rhnserver.py", line 156, in __get_capabilities
self.registration.welcome_message()
File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 206, in doCall
ret = method(*args, **kwargs)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 39, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 383, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 188, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 216, in _process_response
return self.parse_response(fd)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 236, in parse_response
p.feed(response)
File "/usr/lib64/python2.6/xmlrpclib.py", line 601, in feed
self._parser.Parse(data, 0)
<class 'xml.parsers.expat.ExpatError'>: not well-formed (invalid token): line 1, column 125

When connecting via HTTPS, https://xmlrpc.rhn.redhat.com/XMLRPC, I receive the following error:
Code:
 
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'

ADDITONAL INFO:
Permissions for /usr/share/rhn/RHNS-CA-CERT:
-rw-r--r--. 1 root root 8865 Apr 8 2010 /usr/share/rhn/RHNS-CA-CERT

/etc/sysconfig/rhn/up2date file (of course I change the comments around when trying to connect to http or https, see below):
Code:
# Automatically generated Red Hat Update Agent config file, do not edit.
# Format: 1.0
tmpDir[comment]=Use this Directory to place the temporary transport files
tmpDir=/tmp
 
disallowConfChanges[comment]=Config options that can not be overwritten by a config update action
disallowConfChanges=noReboot;sslCACert;useNoSSLForPackages;noSSLServerURL;serverURL;disallowConfChanges;
 
skipNetwork[comment]=Skips network information in hardware profile sync during registration.
skipNetwork=0
 
networkRetries[comment]=Number of attempts to make at network connections before giving up
networkRetries=1
 
hostedWhitelist[comment]=RHN Hosted URL&apos;s
hostedWhitelist=
 
enableProxy[comment]=Use a HTTP Proxy
enableProxy=0
 
writeChangesToLog[comment]=Log to /var/log/up2date which packages has been added and removed
writeChangesToLog=0
 
serverURL[comment]=Remote server URL
#serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC
serverURL=http://xmlrpc.rhn.redhat.com/XMLRPC
useNoSSLForPackages=1
 
proxyPassword[comment]=The password to use for an authenticated proxy
proxyPassword=
 
proxyUser[comment]=The username for an authenticated proxy
proxyUser=
 
versionOverride[comment]=Override the automatically determined system version
versionOverride=
 
sslCACert[comment]=The CA cert used to verify the ssl server
sslCACert=/usr/share/rhn/RHNS-CA-CERT
 
retrieveOnly[comment]=Retrieve packages only
retrieveOnly=0
 
debug[comment]=Whether or not debugging is enabled
debug=0
 
httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128
httpProxy=
 
systemIdPath[comment]=Location of system id
systemIdPath=/etc/sysconfig/rhn/systemid
 
enableProxyAuth[comment]=To use an authenticated proxy or not
enableProxyAuth=0
 
noReboot[comment]=Disable the reboot actions
noReboot=0 


Last edited by SmithJ; 08-18-2011 at 07:43 AM.. Reason: Correct additional and unnecessary "that" inserted in BACKGROUND paragraph.
# 2  
Old 08-19-2011
Can u try the following
sudo /usr/sbin/rhnreg_ks --activationkey <activation Key> --serverUrl <url>

hope this will help
# 3  
Old 08-22-2011
Thank you for your help. The command rhnreg_ks calls for an activation key, which I don't have. I tried using Redhats' instrctions to create an activation key via their website. However, the activation key option is not listed on my Systems' tab on my Red Hat accounts page. Therefore, I am not able to run the rhnreg_ks command. If you have any other ideas I would greatly appreciate the help.

Thanks again,
doug
# 4  
Old 08-22-2011
Can you try the following
username is RHN username and passwd. the following no need activation key .

sudo /usr/sbin/rhnreg_ks --force --username <username> --password <passwd> --serverUrl <server url> --sslCACert /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

---------- Post updated at 05:35 PM ---------- Previous update was at 05:31 PM ----------

https://access.redhat.com/kb/docs/DOC-2395
Please read the above KB for more assistance

Last edited by venikathir; 08-22-2011 at 10:02 AM.. Reason: edit
# 5  
Old 08-22-2011
Check that your system clock is more than 5 minutes skewed from the RHN server clock. You can sometimes get these types of errors if the clocks differ too much.

Also it looks like you may have an old certificate. As far as I recall you need RHN-ORG-TRUSTED-SSL-CERT nowadays and not RHNS-CA-CERT which you seem to have according to your /etc/sysconfig/rhn/up2date file.

I am not in front of a RHEL system at present so cannot check.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Red Hat system not booting up

Hello, I had a linux server running mysql db without any issues, it just panic'd and now its not coming up , unfortunately we do not have backup for this server as well can anybody help on this. Following is the error Memory for crash kernel (0x0 to 0x0 ) notwithin permissible range Red... (2 Replies)
Discussion started by: fugitive
2 Replies

2. Solaris

Installing Solaris 11.1 on Red Hat system?

I'm wanting to install Solaris 11.1 on a system that already has Windows and Red Hat and a boot system managed by GRUB. From what I've read, the Solaris 11.1 install will recognize Windows fine and account for it with GRUB 2. But it doesn't mention any other OS. It talks about installing... (2 Replies)
Discussion started by: JWH
2 Replies

3. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

4. Emergency UNIX and Linux Support

Unable to connect to oracle in red hat linux

Hi Gurus, I have installed the oracle xpress 10g edition in my red hat linux and saw the message that it has been installed successfully ,but after that I started the database by going through application->database->start database and after that i open the sql prumt but when i tried to connect... (18 Replies)
Discussion started by: sanjay.login
18 Replies

5. Forum Support Area for Unregistered Users & Account Problems

Unable to register

I've tried three times. email: dpc (_a_t_) ucore.info username: dpc . ucore . info Browser: FF 3.0.17 on Solaris Why don't you let me in and consider me a spammer, ha? :) (2 Replies)
Discussion started by: imnotaspammer
2 Replies

6. Red Hat

How to register with Red Hat Network?

Hi, We have Red Hat Enterprise Linux 5.3 running on all our machines and planning to make one machine as a YUM repository server. Using yum utility the rest of the RHEL machines should be able to get the latest patches/ packages. Done a POC with the packages available in RHEL 5.3 DVD –... (1 Reply)
Discussion started by: uday123
1 Replies

7. UNIX for Advanced & Expert Users

How I can get System Performance Linux Red Hat

Hi All, Can someone help me out knowing all commands for getting system performance on Linux Red hat(I hope Red hat doesn't matter). I am aware of vmstat, sar and top. Thanks in advance, Yagami Light. (1 Reply)
Discussion started by: Yagami
1 Replies

8. Linux

system parameter values on Red Hat Linux

I am making a shell script that will display memory, disk space and CPU utilization at periodic intervals. I am planning to use free, df -h and mpstat commands and then parse them to extract the values. Can someone give me idea if I am using the correct command. I am interested to display overall... (2 Replies)
Discussion started by: asutoshch
2 Replies
Login or Register to Ask a Question