Hi,

I had just killed off my apache2 and tried to restart it when the
following kept apache running at ~100% cpu usage, trying to create the
file but failing. Attaching a strace resulted in an endless loop of:

stat64("/var/run/apache2/ssl_scache", 0xbffff8a0) = -1 ENOENT (No such
file or directory)
open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0644) = -1 EEXIST (File exists)
open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0644) = -1 EEXIST (File exists)
open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0644) = -1 EEXIST (File exists)

Removing the files from /var/run/apache2/ resolved the issue and apache
is happily serving again :)

Could it be a locking issue? (O_EXCL)

IMHO it should simply abort after trying the above for n (say 50?) times
and at least log it then.

Greets,
 Jeroen

--

related version info:
ii  apache2-common              2.0.54-4                    next
generation, scalable, extendable web server
ii  apache2-mpm-prefork         2.0.54-4                    traditional
model for Apache2
ii  apache2-utils               2.0.54-4                    utility
programs for webservers
ii  libapache2-mod-php4         4.3.10-15                   server-side,
HTML-embedded scripting language (apache 2.0 module)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to