Ok, resolved connection issues. Still getting expired certificate.... -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rob James Sent: Monday, May 04, 2009 5:17 PM To: [email protected] Subject: Re: [Spacewalk-list] Cannot register clients in spacewalk
OK, you need to work out why you can't connect to your spacewalk server using the DNS name from your client. I assume going to the DNS name in a web browser doesn't work either? You could take a look at the logs on the spacewalk server to see whether anything is getting through. On Mon, May 4, 2009 at 6:11 PM, Gomes, Rich <[email protected]> wrote: > I switched to the hostname and now receive time outs: > > [Mon May 4 13:00:51 2009] up2date A socket error occurred: timed out, > attempt #1 > > Here are the relevant bits from the up2date file on the client: > > > hostedWhitelist[comment]=RHN Hosted URL's > hostedWhitelist= > > serverURL[comment]=Remote server URL > serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC > > disallowConfChanges[comment]=Config options that can not be overwritten by a > config update action > disallowConfChanges=noReboot;sslCACert;useNoSSLForPackages;noSSLServerURL;serverURL;disallowConfChanges; > > sslCACert[comment]=The CA cert used to verify the ssl server > sslCACert=/usr/share/rhn/RHNS-CA-CERT > > > Rich > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Rob James > Sent: Monday, May 04, 2009 12:13 PM > To: [email protected] > Subject: Re: [Spacewalk-list] Cannot register clients in spacewalk > > 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 <[email protected]> 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: >> >> [r...@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: [email protected] >> [mailto:[email protected]] On Behalf Of Jason Dobies >> Sent: Monday, May 04, 2009 11:21 AM >> To: [email protected] >> Subject: Re: [Spacewalk-list] Cannot register clients in spacewalk >> >>> [r...@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 >>> >>> >>> [r...@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 >> [email protected] >> https://www.redhat.com/mailman/listinfo/spacewalk-list >> >> _______________________________________________ >> Spacewalk-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/spacewalk-list >> > > _______________________________________________ > Spacewalk-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list > > _______________________________________________ > Spacewalk-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list > _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
