Chapter 7. Troubleshooting 45the Web server stating "Could not determine the server’s fully qualified domain name" upon failing tostart.This problem typically originates from the /etc/hosts file. You may confirm this by examining/etc/nsswitch.conf, which defines the methods and the order by which domain names are re-solved. Usually, the /etc/hosts file is checked first, followed by Network Information Service (NIS)if used, followed by DNS. One of these has to succeed for the Apache HTTP Server to start and theRHN client applications to work.To resolve this problem, identify the contents of the /etc/hosts file. It may look like this:127.0.0.1 this_machine.example.com this_machine localhost.localdomain.com localhostFirst, in a text editor, remove the offending machine information, like so:127.0.0.1 localhost.localdomain.com localhostThen, save the file and attempt to re-run the RHN client applications or the Apache HTTP Server. Ifthey still fail, explicitly identify the IP address of the Satellite in the file, such as:127.0.0.1 localhost.localdomain.com localhost123.45.67.8 this_machine.example.com this_machineReplace the value here with the actual IP address of the Satellite. This should resolve the problem.Keep in mind, if the specific IP address is stipulated, the file will need to be updated when the machineobtains a new address.7.4. Connection ErrorsA common connection problem, indicated by SSL_CONNECT errors, is the result of a Satellite beinginstalled on a machine whose time had been improperly set. During the Satellite installation process,SSL certificates are created with inaccurate times. If the Satellite’s time is then corrected, the certifi-cate start date and time may be set in the future, making it invalid.To troubleshoot this, check the date/time on clients and the Satellite with the following command:dateThe results should be nearly identical for all machines and within the "notBefore" and "notAfter"validity windows of the certificates. Check the client certificate dates and times with the followingcommand:openssl x509 -dates -noout -in /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERTCheck the Satellite server certificate dates and times with the following command:openssl x509 -dates -noout -in /etc/httpd/conf/ssl.crt/server.crtBy default, the server certificate has a one-year life while client certificates are good for 10 years. Ifyou find the certificates are incorrect, you can either wait for the valid start time, if possible, or createnew certificates, preferably with all system times set to GMT.The following measures can be used to troubleshoot general connection errors:• Attempt to connect to the RHN Satellite Server’s database at the command line using the correctconnection string as found in /etc/rhn/rhn.conf:sqlplus username/password@sid