ZM works fine, but Apache Stops after a while..

Support and queries relating to all previous versions of ZoneMinder
Locked
wolfram
Posts: 29
Joined: Sat Nov 26, 2005 12:36 pm

ZM works fine, but Apache Stops after a while..

Post by wolfram »

Hello all,
I am running zoneminder 1.22 on debian with apache2 and php5.
Zoneminder is working well, lets say for 2-3 days sometimes 1 day sometimes 7 days.
But all of a sudden the webserver does not respond anymore to any page requests at all, no matter if this is part of zm or not. Apache just does not deliver any webpage anymore.
A process is blocking the port as it seems to me.
fuser -vn tcp 80 shows me that zmpkg is holding that port and I have to kill that process then I am able to restart apache again, start zm and everything is fine.

Has anybody a hint where to check this behaviour ? or what can cause this ?Or which logfile I should look into.
CIAO Wolfram :(
wolfram
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

This has happened to me very occasionally, both with Apache and Apache2.

What I think happens is that Apache crashes and the app it was trying to server for (usually zmpkg) retains the lock on the port.

The only solution I have found is to kill zmpkg and then apache will restart, but I'm sure there's a more elegant way so will be watching any other replies here with interest.
wolfram
Posts: 29
Joined: Sat Nov 26, 2005 12:36 pm

Well Apache works fine

Post by wolfram »

for weeks , unless I start the ZM application, then it starts crashing again as described
wolfram
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Are there any errors in the logs?

Regards,
Corey
wolfram
Posts: 29
Joined: Sat Nov 26, 2005 12:36 pm

Sorry Cordel

Post by wolfram »

I just forgot to answer that question.

No the logs do not contain anything meaningful so far.
ZM just stops working and zmpkg.pl keeps the port locked, that apache cannot access anymore
wolfram
essup
Posts: 77
Joined: Tue Jun 13, 2006 2:08 pm

Post by essup »

Well,
perhaps you might want to try downgrading php or apache2 ?
Locked