Chapter 5. Troubleshooting
- 5.1. Web Interface
- 5.2. Anaconda
- 5.3. Tracebacks
- 5.4. Registration
- 5.5. Kickstarts and Snippets
5.1. Web Interface Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Q:
I'm having problems with the RHN Satellite user interface. Which log files should I check?
A:
If you experience errors viewing, scheduling, or working with kickstarts in the RHN Satellite user interface, check the
/var/log/tomcat5/catalina.out log file.
For all other user interface errors, check the
/var/log/httpd/error_log log file.
5.2. Anaconda Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Q:
I'm getting an error that says
Error downloading kickstart file. What is the problem and how do I fix it?
A:
This error is usually the result of a network issue. To locate the problem, run the
cobbler check command, and read the output, which should look something like this:
If
cobbler check does not provide any answers, check the following:
- Verify
httpdis running:service httpd status - Verify
cobblerdis running:service cobblerd status - Verify that you can fetch the kickstart file using
wgetfrom a different host:wget http://satellite.example.com/cblr/svc/op/ks/profile/rhel5-i386-u3:1:Example-Org
wget http://satellite.example.com/cblr/svc/op/ks/profile/rhel5-i386-u3:1:Example-OrgCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Q:
I'm getting a package installation error that says
The file chkconfig-1.3.30.1-2.i386.rpm cannot be opened.. What is the problem and how do I fix it?
A:
Clients will fetch content from RHN Satellite based on the
--url parameter in the kickstart. For example:
url --url http://satellite.example.com/ks/dist/ks-rhel-i386-server-5-u3
url --url http://satellite.example.com/ks/dist/ks-rhel-i386-server-5-u3
If you receive errors from Anaconda stating it can't find images or packages, check that the URL in the kickstart will generate a
200 OK response. You can do this by attempting to wget the file located at that URL:
If you get a response other than
200 OK, check the error logs to find out what the problem is. You can also check the actual file Anaconda tried to download by searching the access_log file:
If the requests are not appearing in the
access_log file, the system might be having trouble with the networking setup. If the requests are appearing but are generating errors, check the error logs.
You can also try manually downloading the files to see if the package is available:
wget http://satellite.example.com/ks/dist/ks-rhel-i386-server-5-u3/Server/chkconfig-1.3.30.1-2.i386.rpm
wget http://satellite.example.com/ks/dist/ks-rhel-i386-server-5-u3/Server/chkconfig-1.3.30.1-2.i386.rpm
5.3. Tracebacks Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Q:
I'm getting emails with "WEB TRACEBACK" in the subject. What should I do about them?
A:
A typical traceback email might look something like this:
This indicates that there has been a problem with Cobbler communicating with the
taskomatic service. Try checking the following:
- Verify
httpdis running:service httpd status - Verify
cobblerdis running:service cobblerd status - Verify that there are no firewall rules that would prevent
localhostconnections
5.4. Registration Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Q:
The
rhnreg_ks command is failing when I run it, saying ERROR: unable to read system id. What is the problem?
A:
At the end of the kickstart file, there is a
%post section that registers the machine to the RHN Satellite:
Interpreting this in the order it was added in, this will:
- Create a directory to house the custom SSL cert used by the RHN Satellite.
- Fetch the SSL certificate to use during registration.
- Search and replace the SSL certificate strings from the
rhn_registerconfiguration files, and then register to the RHN Satellite using the SSL certificate and an activation key. Every kickstart profile includes an activation key that assures that the system is assigned the correct base and child channels, and gets the correct system entitlements. If it is a reprovisioning of an existing system, the activation key will also ensure it is associated with the previous system profile.
If the
rhnreg_ks command fails, you might see errors like this in the ks-post.log log file:
ERROR: unable to read system id.
ERROR: unable to read system id.
These errors will also occur if an attempt is made to perform an
rhn_check and the system has not registered to the RHN Satellite.
The best way to troubleshoot this is to view the kickstart file and copy and paste the four steps directly at the command prompt after the kickstart has completed. This will produce error messages that are more detailed to help locate the problem.
5.5. Kickstarts and Snippets Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Q:
What is the directory structure for kickstarts?
A:
The base path where the kickstart files are stored is
/var/lib/rhn/kickstarts/. Within this directory, raw kickstarts are in the upload subdirectory, and wizard-generated kickstarts are in the wizard subdirectory:
Raw Kickstarts: /var/lib/rhn/kickstarts/upload/$profile_name--$org_id.cfg Wizard Kickstarts: /var/lib/rhn/kickstarts/wizard/$profile_name--$org_id.cfg
Raw Kickstarts: /var/lib/rhn/kickstarts/upload/$profile_name--$org_id.cfg
Wizard Kickstarts: /var/lib/rhn/kickstarts/wizard/$profile_name--$org_id.cfg
Q:
What is the directory structure for Cobbler snippets?
A:
Cobbler snippets are stored in
/var/lib/rhn/kickstarts/snippets. Cobbler accesses snippets using the symbolic link /var/lib/cobbler/snippets/spacewalk.
Snippets: /var/lib/rhn/kickstarts/snippets/$org_id/$snippet_name
Snippets: /var/lib/rhn/kickstarts/snippets/$org_id/$snippet_name
Important
RHN Satellite RPMs expect the Cobbler kickstart and snippet directories to be in their default locations, do not change them.