[Spacewalk-list] Cannot register clients in spacewalk

Rob James rssjames at googlemail.com
Mon May 4 16:12:33 UTC 2009


Firstly should you be connecting to the DNS name of your Spacewalk
server instead of the IP address? This would depend on what your
server certificate is made out to.

Secondly, did you import the CA cert on the client? Check the
certificate referenced by the value sslCACert in
/etc/sysconfig/rhn/up2date on the client to make sure it's the correct
one to validate the server certificate.

On 5/4/09, Gomes, Rich <Rich.Gomes at wearguard-crest.com> wrote:
> Ok, I fixed the error (had been trying to correct a cert error, which I am
> now back to)
>
> Here's the original error, still cannot register clients:
>
> [root at stewie ~]# rhnreg_ks --serverUrl=https://10.29.126.250/XMLRPC
> --username=spacewalkadmin --password=spacewalk
> --activationkey=rhel-channel-key --force
> An error has occurred:
> The certificate is expired. Please ensure you have the correct certificate
> and your system time is correct.
> See /var/log/up2date for more information
>
>
> Here is the date info on the spacewalk.crt :
>
> Validity
>             Not Before: Apr 15 06:23:55 2009 GMT
>             Not After : Apr 15 06:23:57 2036 GMT
>
>
> Any thoughts?
>
>
>
> Rich
>
> -----Original Message-----
> From: spacewalk-list-bounces at redhat.com
> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Jason Dobies
> Sent: Monday, May 04, 2009 11:21 AM
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] Cannot register clients in spacewalk
>
>> [root at localhost ~]# rhnreg_ks --serverUrl=https://xx.xx.xx.xx/XMLRPC
>> --username=username --password=password --activationkey=rhel-channel-key
>> --force
>> An error has occurred:
>> Connection refused
>> See /var/log/up2date for more information
>>
>>
>> [root at localhost ~]# cat /var/log/up2date
>> [Mon May  4 10:53:21 2009] up2date A socket error occurred: (111,
>> 'Connection refused'), attempt #1
>> [Mon May  4 10:53:26 2009] up2date A socket error occurred: (111,
>> 'Connection refused'), attempt #2
>> [Mon May  4 10:53:31 2009] up2date A socket error occurred: (111,
>> 'Connection refused'), attempt #3
>> [Mon May  4 10:53:36 2009] up2date A socket error occurred: (111,
>> 'Connection refused'), attempt #4
>> [Mon May  4 10:53:41 2009] up2date A socket error occurred: (111,
>> 'Connection refused'), attempt #5
>> [Mon May  4 10:53:41 2009] up2date Error communicating with server. The
>> message was:
>> Connection refused
>> [Mon May  4 10:53:41 2009] up2date
>> Traceback (most recent call last):
>>   File "/usr/sbin/rhnreg_ks", line 266, in ?
>>     cli.run()
>>   File "/usr/share/rhn/up2date_client/rhncli.py", line 65, in run
>>     sys.exit(self.main() or 0)
>>   File "/usr/sbin/rhnreg_ks", line 90, in main
>>     rhnreg.getCaps()
>>   File "/usr/share/rhn/up2date_client/rhnreg.py", line 329, 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 204, in doCall
>>     raise up2dateErrors.CommunicationError(e.args[1])
>> up2date_client.up2dateErrors.CommunicationError: Error communicating with
>> server. The message was:
>> Connection refused
>
> Are you sure that the client can reach the server it's attempting to
> communicate with, either strictly as a network configuration or due to a
> firewall on the server? I know it sounds basic, but sometimes the
> simplest issues are overlooked.  :)
>
> --
> Jason Dobies
> RHN Satellite / Spacewalk
> RHCE# 805008743336126
> Freenode: jdob @ #spacewalk #spacewalk-devel
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>




More information about the Spacewalk-list mailing list