Hi all,

I am trying to start up a v2.0.45 httpd server on a Redhat v7.3 box, however the startup bombs with the following error:

[Sat Apr 05 19:35:23 2003] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Apr 05 19:35:23 2003] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 05 19:35:23 2003] [notice] Digest: done
[Sat Apr 05 19:35:24 2003] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Apr 05 19:35:24 2003] [crit] (17)File exists: unable to create scoreboard using filename /var/log/httpd/apache_runtime_status (name-based shared memory failure)


(I added the filename to the error message to make it meaningful).

According to server/scoreboard.c, the code looks like this:

    /* The shared memory file must not exist before we create the
     * segment. */
    apr_file_remove(fname, pool); /* ignore errors */

    rv = apr_shm_create(&ap_scoreboard_shm, scoreboard_size, fname, pool);
    if (rv != APR_SUCCESS) {
        ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL,
                       "unable to create scoreboard using filename %s "
                     "(name-based shared memory failure)", fname);
        return rv;                                              
    }

As can be seen, any preexisting file is supposed to be erased before an attempt is made to create a shared memory segment, so in theory "file exists" should never happen.

In addition, this error exists regardless of whether this file exists before Apache is run or not.

Does this make sense to anyone?

Regards,
Graham
--
-----------------------------------------
[EMAIL PROTECTED]               "There's a moon
                                        over Bourbon Street
                                                tonight..."



Reply via email to