rhn_register A socket error occurred

All,

I'm getting the following error while I try to register the server to connect the redhat network for the updates.
[Thu Sep 24 13:30:14 2009] rhn_register updateLoginInfo() login info
[Thu Sep 24 13:34:54 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #1
[Thu Sep 24 13:34:59 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #2
[Thu Sep 24 13:35:04 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #3
[Thu Sep 24 13:35:09 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #4
[Thu Sep 24 13:35:14 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #5
[Thu Sep 24 13:35:14 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #1
[Thu Sep 24 13:35:19 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #2
[Thu Sep 24 13:35:24 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #3
[Thu Sep 24 13:35:29 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #4
[Thu Sep 24 13:35:34 2009] rhn_register A socket error occurred: (111, 'Connection refused'), attempt #5
[Thu Sep 24 13:35:34 2009] rhn_register Error communicating with server. The message was:
Connection refused
[Thu Sep 24 13:35:34 2009] rhn_register
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/rhnregGui.py", line 331, in chooseServerPageApply
rhnreg.privacyText()
File "/usr/share/rhn/up2date_client/rhnreg.py", line 319, in privacyText
return s.registration.privacy_statement()
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 204, in doCall
raise up2dateErrors.CommunicationError(e.args[1])
up2date_client.up2dateErrors.CommunicationError: Error communicating with server. The message was:
Connection refused

I check the ports and they are open. Any ideas. I'm using RHEL 5.3
Thanks

did you use rhn_register --configure ?

yes I did use that but it says ..

# rhn_register --configure 
usage: rhn_register [options]

rhn_register: error: no such option: --configure

I had the same problem after a half-failed registration.
I changed the IP of the server I was trying to register and it worked fine after that.

I hope this works for you.

It didnot work either. I cloned VM server and changed ipaddress and tried. But no luck.
Thanks.

First if all, modern versions of rhn_register have a much more limited set of command line configuration options than older versions. Specifically there is no --configure option.

In /etc/sysconfig/rhn/up2date check that the serverURL is set to https://xmlrpc.rhn.redhat.com/XMLRPC.

Next check that you have a valid SSL certificate (RHNS_CA_CERT) in /usr/share/rhn. If the SSL certificate has expired, or your subscription has expired, you will get connection refused.

You can download the latest SSL certificate from Red Hat Customer Portal - Access to 24x7 support and knowledge. More information about how to do this is at Red Hat Customer Portal - Access to 24x7 support and knowledge

Thanks for the info.

I have server URL in /etc/sysconfig/rhn/up2date file.

I compared the downloaded cert and cert existed on the server and both looks same with validity dates and that tells me that my cert is valid.

i dont think my subscription is expired as I registered about 10 systems after and all are working fine. Thanks.