The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
iWork.com: "An error occurred when uploading your document" dialog is displayed iBot OS X Support RSS 0 06-10-2009 02:00 PM
Error message : socket failed... mbah_jiman SUN Solaris 2 05-25-2009 10:55 PM
"An error occurred while trying to add the selected printer" when adding a printer iBot OS X Support RSS 0 05-13-2009 03:00 AM
Socket Error for LAMP on Fedora 7 umja345 Linux 8 08-04-2008 02:08 AM
read/write socket error gio High Level Programming 2 04-16-2007 11:52 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-24-2009
s_linux s_linux is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 81
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 (permalink)  
Old 09-24-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 364
did you use rhn_register --configure ?
  #3 (permalink)  
Old 09-25-2009
s_linux s_linux is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 81
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 (permalink)  
Old 09-28-2009
jmenbo jmenbo is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 1
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 (permalink)  
Old 09-29-2009
s_linux s_linux is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 81
It didnot work either. I cloned VM server and changed ipaddress and tried. But no luck.
Thanks.
  #6 (permalink)  
Old 09-29-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,926
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 (permalink)  
Old 09-29-2009
s_linux s_linux is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 81
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.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0