Ubuntu disco->eoan breakages (lots of apache processes)

Previous development branch now released as 1.36
Locked
dashie
Posts: 6
Joined: Thu Jan 05, 2017 11:39 am

Ubuntu disco->eoan breakages (lots of apache processes)

Post by dashie »

I have recently updated my server from disco to eoan and I'm now experiencing issues.

ZM is 1.35.3~20200508090613-eoan, apache 2.4.41-1ubuntu1 and php 7.3.

When I start ZMNinja sometimes I get a lot of apache process created (easily 40+ish), with nph-zms as child.
Sometimes my bdd got saturated from connections and I see a lot of apache processes with zmu as child, pkill zmu "fix" the issue until it explodes again.

Any ideas what could be wrong here ? I've tried purging apache2, reinstalling with default zm config, didn't helped.

The only thing I see is from time to time, a bunch of:

Code: Select all

[Mon May 11 21:29:32.504522 2020] [cgi:warn] [pid 26116] [client 192.168.10.1:0] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/nph-zms
which frees the number of apache processes.
Last edited by dashie on Wed May 13, 2020 6:29 pm, edited 1 time in total.
gisforgirard
Posts: 2
Joined: Thu May 07, 2020 4:31 am

Re: Ubuntu disco->eoan breakages

Post by gisforgirard »

i think i have some kind of related thing going on here, definitely related to the # of apache processes spawned, and it only seems to happen when i launch zmninja, immediately locks my server up and freezes mysql too it seems like...

after i close zmninja:
closed zmninja
closed zmninja
Screenshot from 2020-05-13 13-35-13.png (23.19 KiB) Viewed 3106 times
and when i open zmninja again:
opened zmninja
opened zmninja
Screenshot from 2020-05-13 13-38-10.png (22.32 KiB) Viewed 3106 times
mind you, i have zoneminder open in the 'montage' page in firefox the entire time and this doesn't happen, not sure what is going on here, not much appearing in the logs or anything...

only difference is i'm running focal instead of eoan or disco, i'm still using php7.3 though, i had to manually hold a bunch of packages because focal now has php 7.4 as default and it breaks compatibility with a bunch of stuff still so that's gonna have to wait
dashie
Posts: 6
Joined: Thu Jan 05, 2017 11:39 am

Re: Ubuntu disco->eoan breakages

Post by dashie »

Yes same, OK with montage, and zmninja makes everything explode.

I wonder if that could be an issue with php 7.3, since I was on 7.2 before (and no issue), and my apache config was default with zoneminder too.
dashie
Posts: 6
Joined: Thu Jan 05, 2017 11:39 am

Re: Ubuntu disco->eoan breakages (lots of apache processes)

Post by dashie »

fwiw, I've upgraded to focal. and switched to php 7.4 and the spawn of processes still seems to occurs.
dashie
Posts: 6
Joined: Thu Jan 05, 2017 11:39 am

Re: Ubuntu disco->eoan breakages (lots of apache processes)

Post by dashie »

I've updated zm through do_debian_package.sh a few days ago (27 may) and I can't reproduce the issue anymore.
might be worth a try if running on master.
Locked