You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dirk-Willem van Gulik <di...@webweaving.org> on 2005/07/19 10:02:56 UTC
Apache in a loop during startup
On Freebsd 4.10, Apache/2.0.52 - during starttup when there is a zero byte
__db.ssl_cache sitting in /var/run:
drwxr-xr-x 4 root wheel 1536 Jul 19 07:47 .
drwxr-xr-x 20 root wheel 512 Sep 17 2004 ..
-rw-r--r-- 1 root wheel 0 Jul 19 07:41 __db.ssl_scache
-rw------- 1 root wheel 0 Dec 27 2004 accept.lock.51219
...
with config:
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
then apache sits in an endless loop during startup doing:
stat("/var/run/ssl_scache",0xbfbff570) ERR#2 'No such file or directory'
open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
stat("/var/run/ssl_scache",0xbfbff570) ERR#2 'No such file or directory'
open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
.... repeat...
Before I dive into this - does this ring a bell with anyone ?
Dw
Re: Apache in a loop during startup
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Jul 19, 2005 at 01:02:56AM -0700, Dirk-Willem van Gulik wrote:
>
> with config:
>
> SSLSessionCache dbm:/var/run/ssl_scache
> SSLSessionCacheTimeout 300
> SSLMutex file:/var/run/ssl_mutex
Using s/shmcb/dbm/ and "SSLMutex default" is IMO the best default (on
modern platforms).
> then apache sits in an endless loop during startup doing:
>
> stat("/var/run/ssl_scache",0xbfbff570) ERR#2 'No such file or directory'
> open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
> open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
> open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
> stat("/var/run/ssl_scache",0xbfbff570) ERR#2 'No such file or directory'
> open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
> open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
> open("/var/run/__db.ssl_scache",0xa02,0644) ERR#17 'File exists'
> .... repeat...
>
> Before I dive into this - does this ring a bell with anyone ?
No, what's the backtrace when it's doing this? I don't think mod_ssl
would loop, nor APR. What dbm library?
joe
Re: Apache in a loop during startup
Posted by Dirk-Willem van Gulik <di...@webweaving.org>.
On Tue, 19 Jul 2005, Dirk-Willem van Gulik wrote:
> Before I dive into this - does this ring a bell with anyone ?
With help from Paul - seems to be a bug in BerklyDB where it scans through
possible backup index files before opening the real file - and then gets
confused; and gets its nickers in a twist.
Dw