You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Klavs Klavsen <kl...@vsen.dk> on 2003/06/06 16:10:08 UTC

[users@httpd] URGENT site down :( - apache2 bug?

Hi guys,

after restarting my apache2 process (because I had updated mmcache.so) -
it failed to restart with this message:

[error] (17)File exists: Cannot allocate shared memory

I had seen this once before, where it was because the machine was
forcefully rebooted and logs/ssl_scache was not deleted.
But it was deleted (but was recreated upon startup - just before the
server dies).

I can get the server to run, by removing the SSL support.

ipcs -a gives me 15 lines with apache's name on - when the service is
stopped. ipcs -m gives me nothing with apache's name on.

I'm hoping you can help me :(


-- 
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.				

Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Klavs Klavsen <kl...@vsen.dk>.
Also, I don't know if it's related or not - but one of my vhosts (only 1
weirdly enough) suddenly doesn't understand PHP.

It serves the php pages in raw-text as mime-type x-httpd-php.

All the other vhosts PHP works fine.

It's php-4.3.2.

jeez - I'm having a great day ;)


-- 
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.				

Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Klavs Klavsen <kl...@vsen.dk>.
p.s. It's apache2.0.46 on Linux (Gentoo) with OpenSSL 0.9.6j

On fre, 2003-06-06 at 16:10, Klavs Klavsen wrote:
> Hi guys,
> 
> after restarting my apache2 process (because I had updated mmcache.so) -
> it failed to restart with this message:
> 
> [error] (17)File exists: Cannot allocate shared memory
> 
> I had seen this once before, where it was because the machine was
> forcefully rebooted and logs/ssl_scache was not deleted.
> But it was deleted (but was recreated upon startup - just before the
> server dies).
> 
> I can get the server to run, by removing the SSL support.
> 
> ipcs -a gives me 15 lines with apache's name on - when the service is
> stopped. ipcs -m gives me nothing with apache's name on.
> 
> I'm hoping you can help me :(
-- 
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.				

Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Klavs Klavsen <kl...@vsen.dk>.
s/ipcs -m/ipcrm -m/ ofcourse :)
[SNIP]
> 
> then I did ipcs -m 0x(the 7 digit number) and it didn't complain,but
> ipcs -a | grep apache still reported the same segments.

[SNIP]
-- 
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.				


Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Brian Akins <ba...@web.turner.com>.
On Fri, 2003-06-06 at 10:57, Klavs Klavsen wrote:

> then I did ipcs -m 0x(the 7 digit number) and it didn't complain,but
> ipcs -a | grep apache still reported the same segments.

You have to ipcrm the shmid, not the key.

> And even so, shouldn't apache clean up after itself? I've never had this
> happen in the 7 years I've been running apache.

I actually have this happen alot when I'm playing with modules.  Usually
apache dies before it can call the cleanup functions.


-- 
Brian Akins <ba...@web.turner.com>
CNN Internet Technologies


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Klavs Klavsen <kl...@vsen.dk>.
On fre, 2003-06-06 at 16:41, Brian Akins wrote:
> You could have done an "ipcs -a" and looked for shared memory owned by
> the apache user and then removed them via ipcrm.  
> 

I tried.

I did ipcs -a | grep apache

then I did ipcs -m 0x(the 7 digit number) and it didn't complain,but
ipcs -a | grep apache still reported the same segments.

What did I do wrong?

And even so, shouldn't apache clean up after itself? I've never had this
happen in the 7 years I've been running apache.
-- 
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.				

Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Brian Akins <ba...@web.turner.com>.
You could have done an "ipcs -a" and looked for shared memory owned by
the apache user and then removed them via ipcrm.  


On Fri, 2003-06-06 at 10:36, Klavs Klavsen wrote:
> Problem was fixed by a "shutdown -r now" - :(
> 
> Definetely something that needs to be investigated?
> 
> On fre, 2003-06-06 at 16:10, Klavs Klavsen wrote:
> > Hi guys,
> > 
> > after restarting my apache2 process (because I had updated mmcache.so) -
> > it failed to restart with this message:
> > 
> > [error] (17)File exists: Cannot allocate shared memory
> > 
> > I had seen this once before, where it was because the machine was
> > forcefully rebooted and logs/ssl_scache was not deleted.
> > But it was deleted (but was recreated upon startup - just before the
> > server dies).
> > 
> > I can get the server to run, by removing the SSL support.
> > 
> > ipcs -a gives me 15 lines with apache's name on - when the service is
> > stopped. ipcs -m gives me nothing with apache's name on.
> > 
> > I'm hoping you can help me :(
-- 
Brian Akins <ba...@web.turner.com>
CNN Internet Technologies


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] URGENT site down :( - apache2 bug?

Posted by Klavs Klavsen <kl...@vsen.dk>.
Problem was fixed by a "shutdown -r now" - :(

Definetely something that needs to be investigated?

On fre, 2003-06-06 at 16:10, Klavs Klavsen wrote:
> Hi guys,
> 
> after restarting my apache2 process (because I had updated mmcache.so) -
> it failed to restart with this message:
> 
> [error] (17)File exists: Cannot allocate shared memory
> 
> I had seen this once before, where it was because the machine was
> forcefully rebooted and logs/ssl_scache was not deleted.
> But it was deleted (but was recreated upon startup - just before the
> server dies).
> 
> I can get the server to run, by removing the SSL support.
> 
> ipcs -a gives me 15 lines with apache's name on - when the service is
> stopped. ipcs -m gives me nothing with apache's name on.
> 
> I'm hoping you can help me :(
-- 
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.