Sun Java Enterprise System 2003Q4 Installation Guide |
Chapter 9
Troubleshooting Installation ProblemsThis chapter provides suggestions on how to resolve installation problems. It contains the following sections:
Troubleshooting ChecklistThis section provides ideas for tracking down the source of a problem. It contains the following topics:
Examine Installation Log Files
If a problem occurs during installation or uninstallation, check the appropriate log file.
Installer log files are located in the directory /var/sadm/install/logs. The following table lists the log files, with their names. Most logs have two versions:
- An A version of the log file records completion.
- A B version of the log file contains more detailed log messages.
Some component products components write log files to the same directory, including Administration Server, Application Server, Directory Server, Portal Server, and Identity Server. For more information about component product log files, refer to "Component Product Facts for Troubleshooting".
To use the log files for troubleshooting, attempt to isolate the first problem that occurred. Often, the first problem leads to successive problems. Use the following sequence:
The log files can give you clues that determine your next steps, such as these:
Examine Component Product Log Files
If a problem occurs starting a component product, examine its log files. Many component product log files are listed under "Component Product Facts for Troubleshooting".
Verify Product Dependencies
A number of components have installation-time interdependencies. Problems that affect one component can affect other components. To check for unmet interdependencies, familiarize yourself with the information in "Component Product Dependencies". Next, check the following:
- Review the summary file and log files to see whether related products have failed. These may provide a clue as to what to fix first.
- Check that you have specified correct connection information. For example:
- Does the information that you provided when configuring Directory Server match the directory information you provided for components that use Directory Server?
- Does the Identity Server information that you provided for Portal Server or Portal Server SRA match the information you provided for Identity Server?
For a quick review of the dependencies for specific component products, refer to "Component Product Facts for Troubleshooting".
In addition to component interdependencies, some components depend on the existence of Solaris packages that might not be installed on the machine, and their absence could cause installation failures. Read the “Software Requirements” section of the Release Notes for details.
Check Resources and Settings
The following host-level issues can cause installation problems.
- Updates. Have you applied the recommended updates (patches)?
- Disk space. How is the disk partitioned, and to what partitions do installation directories point? The installation directories /var/sadm and /etc/opt, or the nondefault directories that you specify, need sufficient disk space.
- Network ports. During configuration, you supply port numbers for Java Enterprise System component products. Check the following:
- Examine the standard port numbers in the file /etc/services.
- Look at the summary log file to compare your settings with the standards. Did you mistype a port number or set one server to the port that is typically used for another?
- Use the command netstat -a to view current port use on the system. Did you assign a port number that was already in use?
- IP addresses. During configuration, you specify IP addresses. Check that you entered the correct IP addresses. These are some questions to resolve:
Run Verification Procedures
If you are troubleshooting problems starting up components, check that component processes are up, and perform the verification procedures in Chapter 8, "Postinstallation Configuration and Startup."
Check the Distribution Media
If you are installing from a DVD or CD, is the media dirty? Dirty discs can result in installation problems.
Check Directory Server Connectivity
If you are installing a component that relies on Directory Server, problems can be caused by one of these problems:
The interactive modes of the installer check for Directory Server connectivity during installation, but silent mode does not do so. If you perform a silent installation when Directory Server is not available, the following could occur:
Remove Web Server Files and Directory
To prevent the overwriting of customized files, such as edited configuration files, Web Server cannot be installed into a directory that contains files.
If you are reinstalling Web Server, check the installation directories to ensure that they are empty. If they are not empty, archive the files elsewhere and retry the installation.
Verify Passwords
The installer requires that you enter a number of passwords for component products. If you are installing different components on different machines, it is important to ensure that you supply matching passwords on each machine.
To resolve password problems, you might need to uninstall and then reinstall. If the uninstall fails, refer to "Partial Installation Cleanup".
Use the prodreg Tool to Examine and Uninstall Components
If you have installed components but are having problems and cannot reinstall or uninstall, the prodreg tool is useful. This tool provides a graphical interface to the Solaris product registry and provides an easy interface to both components and their packages, superseding the pkg utilities.
To invoke prodreg, type the command name at the command line. For more information, refer to the prodreg(1) manual page.
Partial Installation CleanupIf the uninstaller does not succeed, it can fail so as to leave behind components or packages. In such a case, you must manually remove the components or packages in order to reinstall. You might discover this problem in the following ways:
To Clean up a Partial Installation
- Use the following command to determine whether any packages were partially installed.
pkginfo -p
The command output lists any partially installed packages. Using the package names returned, refer to Appendix D, "List of Installable Packages" to discover what component the packages belong to.
- Remove components or packages.
- On Solaris 9, use the prodreg tool.
The prodreg tool manages the package-based components on your machine. You can view components and their packages, with full information, including interdependencies. You can use the prodreg tool to safely uninstall components and remove packages. Once you have removed a component with the prodreg tool, you can reinstall.
- On Solaris 8, use the pkgrm command.
The pkgrm command requires that you remove components one package at a time. This command does not update the product registry. Depending on what has happened, you can restore the archived product registry file or manually edit the product registry file so that it no longer refers to the removed components.
To edit the product registry file, open the file /var/sadm/install/productregistry. This XML file describes each component. Each component description starts with a <compid> tag and ends with a </compid> tag. Delete the entire entry for the component.
- Remove the Web Server installation directory, if it is present.
- Run the installer again.
The following table lists component product files and directories that you must remove.
Sample Problems and SolutionsThis section provides explanations and suggested approaches for resolving sample problems.
Problem configuring IBM WebSphere as the Identity Server web container
Reason. WebSphere might not be running, or you may have specified a WebSphere value that does not match the WebSphere native configuration.
Suggestion. First, ensure that WebSphere is running.
Next, examine the values for these two installer fields:
Use the WebSphere tools to check the configuration, make sure it matches the values you are entering, and try again.
Another approach is to create new instances of the WebSphere entities and try again, as follows:
- Use the adminclient.sh to start the WebSphere console.
- Create a new virtual host instance and a new application server instance name.
- Click the entry under Nodes (typically the host name), and select Regen WebServer Plugin.
This process saves the new entries into the plugin configuration file, which the installer checks for the legal names.
- Return to the installer and enter the values you just created.
An unexpected external error occurs
Reason. A power failure or system failure may have occurred, or you might have entered CTRL/C to stop the installer process.
Suggestion. If the failure occurred during the installation or configuration process, you are probably left with a partial installation. Run the uninstaller. If the uninstaller fails, follow the instructions under "Partial Installation Cleanup".
The graphical installer seems unresponsive
Reason. The installer sometimes creates an image on the screen before the image is ready for input. You cannot repeatedly click Next in the installation wizard without waiting.
Suggestion. The button that represents the default choice includes a blue rectangle. This rectangle sometimes appears after the button itself. Wait until you see the blue rectangle before clicking a button.
Silent installation fails with a “State File is Incompatible or Corrupted” error
Reason. If you are using a state file that was created on the same platform on which you are using it, the problem may be due to an unknown file corruption error.
If you are using a state file that was created on a different platform or version, the problem is that state files must be run on the same type of platform on which they are created. If you created the state file on Solaris 9, you cannot use it on Solaris 8, and if you created it on the x86 platform, you cannot use it on the Sparc platform.
Suggestion. If you created the state file on the same platform on which you are using it, generate a new state file and reinstall.
If the platform on which you created the state file is not the same as the platform on which you are using the file, resolve the problem by creating a new, platform-appropriate ID for the file. For instructions on how to do this, refer to "Creating a Platform-Appropriate ID".
Silent installation fails
Reason. If you edited the state file, you may have introduced errors. For example:, check the following:
Suggestion. Regenerate the state file, using the graphical installer and saving its values, as described in "Generating a State File".
Component Product Facts for TroubleshootingThis section provides various quick tips on component products, with references to useful documentation.
The following additional information in this guide is useful for troubleshooting:
- Chapter 2, "Preparing for Installation" contains information on component interdependencies. Refer to Table 2-4 for details.
- Chapter 8, "Postinstallation Configuration and Startup." Refer to the section "Starting and Stopping Component Products". This section contains per-component instructions for starting, stopping, and verifying component processes.
Administration Server
Log Files
Installation log directory:
/var/sadm/install/logs
Configuration log files:
Administration_Server_install.Atimestamp
Administration_Server_install.BtimestampFor more information on logging options, refer to the Sun ONE Server Console 5.2 Server Management Guide (http://docs.sun.com/doc/816-6704-10). See Chapter 6, Administration Server Basics.”
Troubleshooting Information
Refer to the Sun ONE Server Console 5.2 Server Management Guide (http://docs.sun.com/doc/816-6704-10). See Chapter 1, “Installing Sun ONE Directory Server.”
Application Server
Log Files
Log file directory:
Log file names:
Application Server instance log directory (default location for the initially created instance):
Message log file name:
Administration Server log directory (default location for the initial created administrative domain):
Administration Server log file:
Configuration Files
Configuration file directory: /var
Calendar Server
Log Files
Administration Service (csadmind): admin.log
Distributed Database Service (csdwpd): dwp.log
HTTP Service (cshttpd): http.log
Notification Service (csnotifyd): notify.logDefault log directory: /var/opt/SUNWics5/logs
For more information, refer to Sun ONE Calendar Server Administrator's Guide (http://docs.sun.com/doc/816-6708-10). See Chapter 3, “Managing Calendar Server.”
Configuration File
/opt/SUNWics5/cal/config/ics.conf
Debug Mode
To use debug mode, a Calendar Server administrator sets the logfile.loglevel configuration parameter in the ics.conf file. For example:
logfile.loglevel = "debug"
For more information, refer to Sun ONE Calendar Server Administrator's Guide (http://docs.sun.com/doc/816-6708-10). See the following chapters:
Troubleshooting Information
Refer to the Sun ONE Calendar Server Administrator's Guide (http://docs.sun.com/doc/816-6708-10). See the following chapters:
Directory Proxy Server
Logging
Default log file: dps_svr_base/dps-hostname/logs/fwd.log
For more information, refer to the Directory Proxy Server Administration Guide (http://docs.sun.com/doc/816-6391-10). See Chapter 10, “Configuring and Monitoring Logs.”
Troubleshooting
Refer to the Directory Proxy Server Administration Guide (http://docs.sun.com/doc/816-6391-10). See Appendix B, “Directory Proxy Server FAQ, Features, and Troubleshooting.”
Directory Server
Log Files
Installation log file:
/var/sadm/install/log
Configuration log files:
Directory_Server_install.Atimestamp
Directory_Server_install.BtimestampFor information on managing log files, refer to the Sun ONE Directory Server Administration Guide (http://docs.sun.com/source/816-6698-10/logs.html). See Chapter 12, “Managing Log Files.”
For information on the logconv.ps tool, which helps you analyze the access log, refer to the Sun ONE Directory Server Resource Kit Tools Reference (http://docs.sun.com/doc/816-6400-10/logconv.html). See Chapter 24, “logconv.pl.”
Troubleshooting
Refer to the Directory Server Installation and Tuning Guide (http://docs.sun.com/doc/816-6697-10). See Chapter 1, “Installing Sun ONE Directory Server.”
Identity Server
Configuration File
/opt/SUNWam/lib/AMConfig.properties
Debug Mode
For information, refer to the Sun ONE Identity Server 6.1 Customization and API Guide (http://docs.sun.com/doc/816-6774-10). See the following sections:
Instant Messaging
Helpful Documentation
Refer to Instant Messaging Administrator’s Guide (http://docs.sun.com/doc/817-4113-10).
Message Queue
Log Files
Refer to the Sun ONE Message Queue Administrator’s Guide (http://docs.sun.com/doc/817-0354-10). See the following chapters:
Sun ONE Message Queue troubleshooting is discussed in the MQ Forum, at: http://swforum.sun.com/jive/forum.jspa?forumID=24.
Additional articles are available in Knowledge Base, at http://developers.sun.com/prodtech/msgqueue/reference/techart/index.html.
Messaging Server
Troubleshooting Documentation
Refer to the Sun ONE Messaging Server Administrator's Guide (http://docs.sun.com/doc/816-6738-10).
Executable Location
/opt/SUNWmsgsr/lib/
Portal Server
Log Files and Debug Files
Portal Server uses the same log files and debug files as Identity Server. Their directories are as follows:
Log file: /var/opt/SUNWam/logs
Debug file: /var/opt/SUNWam/debugFor information on managing Portal Server log files and debug files, refer to the Portal Server Administrator’s Guide, (http://docs.sun.com/doc/816-6748-10).
For Portal Server Desktop, the debug files are:
/var/opt/SUNWam/debug/desktop.debug
/var/opt/SUNWam/debug/desktop.dpadmin.debugFor information on managing these files, refer to the Portal Server Administration Guide. See “Administering the Desktop Service.”
The dpadmin, par, rdmgr, and sendrdm Portal Server command line utilities have options to generate debugging messages. Options are described in the Portal Server Administrator’s Guide.
Portal Server, Secure Remote Access
Debug Logs
Portal Server debug logs are located in these directories:
/var/opt/SUNWam/debug
/var/opt/SUNWps/debugPortal gateway debug logs are located in this directory: /var/opt/SUNWps/debug
Sun Cluster Software and Sun Cluster Agents
For information on Sun Cluster software and Sun ONE Agents for Sun Cluster, refer to the Sun Cluster 3.1 Software Installation Guide, at http://docs.sun.com/doc/816-3388.
Web Server
Log Files
There are two types of Web Server log files: the errors log file and the access log file, both located in the directory /opt/SUNWwbsvr/server_root/https-server_name/logs.
The errors log file lists all the errors the server has encountered. The access log records information about requests to the server and the responses from the server. For more information, refer to the Sun ONE Web Server 6.1 Administrator’s Guide (http://docs.sun.com/doc/817-1831-10). See Chapter 10, “Using Log Files.”
Troubleshooting Information
Refer to the Sun ONE Web Server 6.1 Installation and Migration Guide (http://docs.sun.com/doc/817-1830-10).
Configuration File Directory
/opt/SUNWwbsvr/http-instance-name/config
Debug Mode
The following options are available:
- Log output may be used for diagnostics and debugging. You can set the value of the loglevel attribute of the LOG element in the /server_root/https-server_name/config/server.xml file to the following values: fine, finer or finest. These values indicate the verbosity of debug messages, with finest giving maximum verbosity. For more information about the LOG element, refer to the Sun ONE Web Server 6.1 Administrator’s Configuration File Reference (http://docs.sun.com/doc/817-1834-10).
- A debug flag may be enabled to start the server web container in debug mode ready for attachment with a Java Platform Debugger Architecture (JPDA debugger. To do this, set the value of the jvm.debug flag of the JAVA element in the /server_root/https-server_name/config/server.xml file to true. For more information, refer to the Sun ONE Web Server 6.1 Administrator’s Configuration File Reference (http://docs.sun.com/doc/817-1834-10).
- The Sun ONE Studio 5, Standard Edition, plugin enables the debugging of web applications. For more information, refer to the Sun ONE Web Server 6.1 Programmer's Guide to Web Applications (http://docs.sun.com/doc/817-1833-10). See Chapter 7, “Debugging Web Applications.”