rhn_register A socket error occurred

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat rhn_register A socket error occurred
# 1  
Old 09-24-2009
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
# 2  
Old 09-24-2009
did you use rhn_register --configure ?
# 3  
Old 09-25-2009
yes I did use that but it says ..
HTML Code:
# rhn_register --configure 
usage: rhn_register [options]

rhn_register: error: no such option: --configure
# 4  
Old 09-28-2009
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.
# 5  
Old 09-29-2009
It didnot work either. I cloned VM server and changed ipaddress and tried. But no luck.
Thanks.
# 6  
Old 09-29-2009
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 https://rhn.redhat.com/help/RHNS-CA-CERT. More information about how to do this is at https://rhn.redhat.com/help/ssl_cert.pxt
# 7  
Old 09-29-2009
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error occurred during initialization of VM

Hi , I was invoking a sh file using the nohup command. But while invoking, I received a below error. Error occurred during initialization of VM Unable to load native library: /u01/libjava.so: cannot open shared object file: No such file or directory . Could you please help out. Regards,... (2 Replies)
Discussion started by: Kamal1108
2 Replies

2. AIX

0511-193 An error occurred

Hi, When i am trying to read data from tape cassette its giving below error: tar tvf /dev/rmt0 "tar: 0511-193 An error occurred while reading from the media. A system call received a parameter that is not valid." OS: - AIX 6.1 Tape Library : - IBM TS3100 Tape Cassette : - Ultrium LTO... (1 Reply)
Discussion started by: arunmistry
1 Replies

3. Solaris

Error occurred while making the net-snmp 5.4.4 on Solaris 5.10 version.

Hi all, Error occurred while making the net-snmp-5.4.4 on Solaris 5.10 version. Environment - Solaris 5.10-x86 - Net-SNMP-5.4.4.tar.gz - Path (/etc/profile) PATH=/usr/local/bin:$PATH export PATH LD_LIBRARY_PATHUSR=/usr/ccs/bin: export LD_LIBRARY_PATH Error01 - summary ***... (3 Replies)
Discussion started by: ziosnim
3 Replies

4. Red Hat

KusuDB: Operational Error occurred when connecting to the DB

I have RHEL5.3 that is with the Platform Cluster Manger PCM installation. on master node. Unfortunately some files were deleted from the /var directory and then the postgresql service couldn't start. I have deleted, rm -rf /var/lib/pgsql/data and started the service again now the service is running... (1 Reply)
Discussion started by: ahsanpmd
1 Replies

5. Shell Programming and Scripting

grep only last occurred error in error.log,

hi folk i need your help to find one logic.... i have error log same as any other error logs which get populated by no of events and errors... but i need to grep the last occured errors.. which cant be duplicate. here is my script. ======================== #!/usr/bin/ksh grep -i... (3 Replies)
Discussion started by: tapia
3 Replies

6. Programming

Error with socket operation on non-socket

Dear Experts, i am compiling my code in suse 4.1 which is compiling fine, but at runtime it is showing me for socket programming error no 88 as i searched in errno.h it is telling me socket operation on non socket, what is the meaning of this , how to deal with this error , please... (1 Reply)
Discussion started by: vin_pll
1 Replies

7. UNIX for Advanced & Expert Users

ssh error: Error reading response length from authentication socket

Hi - I am getting the error `Error reading response length from authentication socket' when I ssh from my cluster to another cluster, and then back to my cluster. It doesn't seem to affect anything, but it's just annoying that it always pops up and tends to confuse new users of the cluster. I... (1 Reply)
Discussion started by: cpp6f
1 Replies

8. Shell Programming and Scripting

sort: 0653-657 A write error occurred while sorting.

Hi I am trying to sort a file of 88075743B size. I am doing some processing on the file and after the processing is done; I get 2 files temp1 and temp2. I need to combine both these files as one and this final file should be sorted on fields 1 and 2. Space is the delimiter between fields. Record... (2 Replies)
Discussion started by: diksha2207
2 Replies
Login or Register to Ask a Question