A P P E N D I X  D

Troubleshooting the SGD Gateway

This chapter includes troubleshooting topics, to help you to diagnose and fix problems with the SGD Gateway.

This chapter includes the following topics:


Logging and Diagnostics

This section describes the logging and diagnostics features of the SGD Gateway.

This section includes the following topics:

About SGD Gateway Logging

SGD Gateway logging uses the Java logging application programming interface (API). For more details about how logging is implemented in Java, see http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html.

Changing the Logging Level

A logging properties configuration file, logging.properties, is supplied with the SGD Gateway. This file is in the /opt/SUNWsgdg/proxy/etc directory.

You can edit the logging.properties file to change the default logging level, and to configure logging levels for specific SGD Gateway services. Each SGD Gateway service is represented by an async.channel entry in the logging.properties file.

For example, if you want to increase logging levels for incoming and outgoing Transmission Control Protocol (TCP) connections, set the TCP service logging level to FINEST. Uncomment the following line in the logging.properties file:

# async.channel.tcp.level=FINEST

You must restart the SGD Gateway to enable any changes to logging levels you make by editing the logging.properties file.



Note - You can also use the SGD Gateway reflection service to change logging levels. See The Reflection Service for information about configuring and using the reflection service.



Log File Locations

If you have problems with the SGD Gateway, consult the following log files:

  • Routing proxy log files. The location and names of these log files are set in the logging.properties file. By default, the SGD Gateway creates routing proxy log files in the /opt/SUNWsgdg/proxy/var/log directory on the SGD Gateway host.

  • Reverse proxy log files. Details of load balancing and proxy server activity for HTTP and HTTPS connections are logged to the Apache log files in the /opt/SUNWsgdg/httpd/httpd-2.2.10_openssl‑0.9.8i_jk.1.2.25/logs directory on the SGD Gateway host.

  • SGD server log files. Each SGD server in the array writes error messages to log files in the /opt/tarantella/var/log directory on the SGD server host. See “Monitoring and Logging” in Chapter 6 of the Sun Secure Global Desktop 4.5 Administration Guide for more details about configuring logging for SGD servers.

Displaying SGD Gateway Process Information

When you start the SGD Gateway, the process ID of the routing proxy is stored to the /opt/SUNWsgdg/proxy/var/run/proxy.pid file on the SGD Gateway host.

The process ID of the reverse proxy is stored to the /opt/SUNWsgdg/httpd/httpd-2.2.10_openssl‑0.9.8i_jk.1.2.25/logs/httpd.pid file. This file location can be changed using the PidFile directive in the httpd.conf Apache configuration file.

To display the running SGD Gateway processes, use the following command on the SGD Gateway host:


# ps -ef| grep SUNWsgdg

Checking the Configuration From the Command Line

You can use the following commands to check your SGD Gateway configuration.


SGD Gateway Error Messages

SGD Gateway error messages are reported to the routing proxy log files, located in the /opt/SUNWsgdg/proxy/var/log directory on the SGD Gateway host.

Some typical SGD Gateway error messages, along with an explanation of the probable cause, are listed in the following table.


Error Message Probable Cause
Failed to validate token:

Token time not yet valid

The clocks on the SGD Gateway and the SGD servers in the array are not synchronized
Failed to decode token:

No trusted signature found

The CA certificate for the SGD server has not been installed on the SGD Gateway
Failed to validate token:

No recipient available to decrypt token

The SGD Gateway certificate has not been installed on the SGD array
SSL error:

Check the proxy SSL keystore has valid trusted certificates

The SSL certificate for the SGD server has not been installed on the SGD Gateway