Bug 78019 - mod_ssl won't start up after unclean shutdown
mod_ssl won't start up after unclean shutdown
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: httpd (Show other bugs)
8.0
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Joe Orton
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-17 14:30 EST by Chris Ricker
Modified: 2007-04-18 12:48 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-09-04 03:40:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
httpd-ssl configuration file (10.95 KB, text/plain)
2002-12-11 09:54 EST, Chris Ricker
no flags Details

  None (edit)
Description Chris Ricker 2002-11-17 14:30:01 EST
After I installed the 2.4.18-18.8.0 kernel errata yesterday and rebooted, httpd
always died shortly after starting:

[Sat Nov 16 09:14:22 2002] [notice] Apache/2.0.40 (Red Hat Linux) configured -- 
resuming normal operations
[Sat Nov 16 09:24:57 2002] [error] Cannot allocate shared memory: (17)File exist
s

Manually stracing revealed the problem to be:

open("/var/cache/mod_ssl/ssl_gcache_data", O_WRONLY|O_CREAT|O_EXCL, 0666) = -1
EEXIST (File exists)
gettimeofday({1037557121, 414293}, NULL) = 0
write(7, "[Sun Nov 17 11:18:41 2002] [erro"..., 82) = 82
_exit(1)                                = ?

After I deleted the ssl_gcache_data file, httpd worked again.

I'm not sure what happened here -- probably a one-time quirk thing that's not
reproducible.
Comment 1 Chris Ricker 2002-12-08 18:07:29 EST
I just had this happen again -- Apache segfaulted while running.

I eventually noticed and bounced the service (/etc/init.d/httpd restart).
Although that said it started Apache [ok], Apache was exiting shortly after the
restart

strace showed it to be the same problem (existance of this ssl cache file)
Comment 2 Joe Orton 2002-12-11 06:08:31 EST
Are you using the default session cache settings? Can you post your
/etc/httpd/conf.d/ssl.conf?
Comment 3 Joe Orton 2002-12-11 08:09:24 EST
I've reproduced this using the shmht session cache (including what looks like
segfault on shutdown); are you using shmht? It appears that shmht isn't actually
caching any sessions either, so I'd advise using shmcb instead, which does
appear to work correctly in my testing.
Comment 4 Chris Ricker 2002-12-11 09:53:05 EST
I'm just using shm

I'll attach the conf in a sec
Comment 5 Chris Ricker 2002-12-11 09:54:35 EST
Created attachment 88384 [details]
httpd-ssl configuration file
Comment 6 Joe Orton 2002-12-13 11:44:39 EST
This should be fixed by the mm erratum:

http://rhn.redhat.com/errata/RHBA-2002-273.html


*** This bug has been marked as a duplicate of 74543 ***
Comment 7 Chris Ricker 2002-12-13 11:54:14 EST
Um, I'm on RHL 8.0. That erratum is for 7.x only
Comment 8 Joe Orton 2002-12-13 11:57:29 EST
Eeek, sorry. That comment was aimed for a different bug.
Comment 9 Gary Goldberg 2003-03-25 10:20:42 EST
Also showing this problem, exactly as written.
Comment 10 Mark J. Cox (Product Security) 2003-09-04 03:40:03 EDT
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2003-240.html

Note You need to log in before you can comment on or make changes to this bug.