[Top] [Prev] [Next] [Last]
Download PDF:   US   UK
Download Postscript:   US   UK
Stronghold Web Server 2.4.1 Administration Guide

Chapter 5

Troubleshooting

This chapter provides a list of common errors, their meanings, and possible solutions. Errors are divided into three categories:

If you have a problem that is not covered in this chapter, contact Stronghold technical support and include any include relevant log entries or configuration files:

In the United States Elsewhere Worldwide
stronghold-support@c2.net support@int.c2.net




Startup Errors

These errors occur on startup. Stronghold prints them to standard output.



License Block Errors

These errors are cause by invalid, missing, or incorrectly installed license blocks.



LICENSE: No StrongholdLicenseFile directive

The StrongholdLicenseFile directive is missing from httpd.conf. Add this directive to the global configuration portion of the file.



LICENSE: License file does not exist

The StrongholdLicenseFile directive specifies a nonexistent license file. Edit this directive to point to the correct file.



LICENSE: License not valid, see http://www.int.c2.net/stronghold/lbfail

The license block is invalid. If you are using an old license block that looks like this

33:5d:7f:c7:6b:a6:82:47

then you must convert it to the current format using an HTML form at one of the following URLs:



Certificate and Key File Errors

These errors are caused by problems with key files (located in ServerRoot/ssl/private/) and certificate files (located in ServerRoot/ssl/certs/).



hostname:port: WARNING: Cert file unspecified

The SSLCertificateFile directive for the specified hostname and port is missing from httpd.conf. Add this directive to the host's <VirtualHost hostname:port> container.



hostname:port: WARNING: Key file unspecified

The SSLCertificateKeyFile directive for the specified hostname and port is missing from httpd.conf. Add this directive to the host's <VirtualHost hostname:port> container.



hostname:port: WARNING: SSLLogFile not set

The SSLLogFile directive is missing from httpd.conf.



bad base64 decode

The certificate file's BASE64 encoding is corrupt. Use a backup copy or request a new certificate.



hostname:port: Cannot initialise SSL: Key file error. Host disabled

There is a problem with the specified host's key file; SSL is disabled for that host. Check for the following problems:



hostname:port: Cannot initialise SSL: Cert file error. Host disabled.

There is a problem with the specified host's certificate file; SSL is disabled for that host. Check for the following problems:



hostname:port: Cannot initialize SSL: Can't set key. Host disabled

There is a problem with the specified host's key file; SSL is disabled for that host. Check for the following problems:



RSA decrypt error - i=-1 enc_bits=5

The key file and certificate file for this host are mismatched. Use the checkcert utility to verify that this is the case:

# checkcert servername

If checkcert confirms that the key file and certificate file do not match, see "Troubleshooting Mismatched Certificates and Keys" on page 2-14 for information about reconciling them. Your configuration may specify the wrong site certificate, or the browser may have an obsolete site certificate.



hostname:port: WARNING: Certificate expires in n day(s)

The certificate for the specified host is temporary and must be replaced within n days. If you have not received a permanent certificate by that time, create another temporary certificate using the gencert utility as explained in "Generating a Test Certificate" on page 2-38.



Other Startup Errors

These are miscellaneous errors that may occur on startup.



fopen: No such file or directory
httpd: could not open document config file filename

The path in the startup script is not the same as the actual path to httpd.conf. The server cannot start without a configuration file.



httpd: bad group name groupname

The groupname specified by the Group directive is invalid. The server cannot start without a valid group.



httpd: bad user name username

The username specified by the User directive is invalid. The server cannot start without a valid user.



/usr: write failed, file system is full

The partition /usr is full and needs to be expanded or cleaned up.




Runtime Errors

These errors occur when a Web transaction fails. Stronghold Web Server records them in the requested host's error log, SSL error log, or any custom log that includes the error string field.



SSL: 32077:error:1408A0C0:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher:s3_srvr.c:732



(2)No such file or directory: access to filename failed for client-IP, reason: unable to verify the first certificate

The SSLCACertificatePath and/or SSLCACertificateFile directives for the requested host are set incorrectly in httpd.conf:



rsa routines:RSA_EAY_PRIVATE_DECRYPT:block type is not 02 SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:bad rsa decrypt

The site certificate sent by Stronghold conflicts with an existing certificate already cached in the browser. The browser user must open the Site Certificates dialog box and delete the cached certificate that belongs to this host.



fcntl: F_SETLKW: No record locks available

SSL/TLS session cache locking has failed. Make sure that your SSLSessionLockFile directive points to a local file, not an NFS-mounted one.



accept: (client_socket): Permission denied

The system has run out of file descriptors. Solaris, for example, allows no more than 256 open file descriptors. If there are more than 256 virtual hosts, each with one or more logs of its own, Stronghold cannot open all the log files to record transactions.

To resolve this problem, use one log file for all hosts on your server. Add the following to httpd.conf, and remove all logging directives from the <VirtualHost> containers:

TransferLog ServerRoot/logs/one-true-log-file.log
LogFormat "%v [etc]"

This establishes a single transfer log instead of separate logs for all virtual hosts, and causes the log to specify a virtual host for each entry. Do the same for your error logs, SSL/TLS logs, and custom logs, if you have separate files for each virtual host.



error:0406406A:rsa routines:RSA_EAY_PRIVATE_DECRYPT:block type is not 02:rsa_enc.c:284
error:14087074:SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:bad rsa decrypt:s3_srvr.c:1094
SSL accept error

You are using a key size less than 512 bits with SSL version 3 or TLS version 1, which only support key sizes greater than or equal to 512 bits. To solve this problem, you can



Slow server performance

Server performance varies dramatically between hardware platforms and UNIX implementations. Improving performance usually requires some experimentation. There are several possible solutions to slow server performance:

The Apache Web site contains more detailed information about improving performance. See http://www.apache.org/docs/misc/perf.html.



Server status report does not work

To obtain full statistics, the server must be compiled with a special directive. Make sure that the following line is included in the Configuration file:

AUX_CFLAGS= -DSTATUS

If not, add this line and recompile Stronghold as described in "Recompiling Stronghold" on page 8-9.




Browser Errors

These are browser-generated errors that may have been provoked by the server. They must be remedied by the browser user.



Clients cannot connect using HTTPS

Make sure that SSLFlag is set to "on." SSLFlag is the crucial directive that enables HTTPS connections.



Missing images under SSL/TLS

When a client uses HTTPS to request a page that references its images with HTTP, the client cannot retrieve the images and displays a broken image instead. For example, the following HTML tag does not work when the document is retrieved using HTTPS:

<img src=http://www.yourhost.com/images/images.gif>

To ensure that image references work regardless of whether clients request pages via HTTP or HTTPS, reference the images without specifying a protocol, like this:

<img src=/images/images.gif>



An I/O error occurred during security authorization. Please try your connection again.

The site certificate that was presented is conflicting with an existing certificate already cached in the browser. Enter the browser's Site Certificates dialog box and delete the cached certificate for this host.



The security library has experienced a database error. You will probably be unable to connect to this site securely.

The site certificate that was presented is conflicting with an existing certificate already cached in the browser. Enter the browser's Site Certificates dialog box and delete the cached certificate for this host.



Internet Explorer cannot download from the Internet site.

Certain releases of Stronghold have experienced problems with Microsoft Internet Explorer 4.0 being unable to download files that require both user authentication and a secure environment. Try using a Netscape browser to access the URL.






[Top] [Prev] [Next] [Last]
© 1998 C2Net International
Feedback: stronghold-docs@c2.net
C2Net Logo