[SOLVED] zoneminder keeps restarting

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

[SOLVED] zoneminder keeps restarting

Post by lbm »

Running 1.34.25, Im getting this all the time in the logs.
Apr 27 13:09:09 zoneminder zmc_m18[819]: WAR [zmc_m18] [ImageBufferCount 375 is too small. Needs to be at least 553. Either increase it or decrease time between keyframes]
Apr 27 13:09:09 zoneminder zmpkg[3745]: INF [Sanity checking States table...]
Apr 27 13:09:09 zoneminder zmpkg[3745]: INF [Command: start]
Apr 27 13:09:09 zoneminder systemd[1]: Started Session c338 of user www-data.
Apr 27 13:09:09 zoneminder systemd[1]: session-c338.scope: Succeeded.
Apr 27 13:09:09 zoneminder systemd[1]: Started Session c339 of user www-data.
Apr 27 13:09:09 zoneminder systemd[1]: session-c339.scope: Succeeded.
Apr 27 13:09:09 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
Apr 27 13:09:09 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Apr 27 13:09:09 zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Apr 27 13:09:20 zoneminder systemd[1]: zoneminder.service: Service RestartSec=10s expired, scheduling restart.
Apr 27 13:09:20 zoneminder systemd[1]: zoneminder.service: Scheduled restart job, restart counter is at 163.
Apr 27 13:09:20 zoneminder systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
Apr 27 13:09:20 zoneminder systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
Apr 27 13:09:20 zoneminder zmpkg[3760]: INF [Sanity checking States table...]
Apr 27 13:09:20 zoneminder zmpkg[3760]: INF [Command: start]
Apr 27 13:09:20 zoneminder systemd[1]: Started Session c340 of user www-data.
Apr 27 13:09:20 zoneminder systemd[1]: Started Session c341 of user www-data.
Apr 27 13:09:20 zoneminder systemd[1]: session-c340.scope: Succeeded.
Apr 27 13:09:20 zoneminder systemd[1]: session-c341.scope: Succeeded.
Apr 27 13:09:20 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
Apr 27 13:09:20 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Apr 27 13:09:20 zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Apr 27 13:09:20 zoneminder zmc_m18[819]: WAR [zmc_m18] [ImageBufferCount 375 is too small. Needs to be at least 553. Either increase it or decrease time between keyframes]
Any suggestions to, why this is happening ?
Last edited by lbm on Wed Jun 09, 2021 10:27 am, edited 1 time in total.
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: zoneminder keeps restarting

Post by lbm »

Something is clearly wrong, since zm thinks the service is not started correctly, for which it tries to restart it over and over again.

It can be worked around, by removing the restart=always in the systemd file.
/lib/systemd/system/zoneminder.service

Code: Select all

#Restart=always
then
systemctl daemon-reload

Still needs to figure out, why the start/restart is not working properly.
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: zoneminder keeps restarting

Post by lbm »

Enabled debugging..

Code: Select all

 9 12:21:03 zoneminder zmpkg[29737]: DB1 [Testing "sudo -u www-data true"]
Jun  9 12:21:03 zoneminder zmpkg[29737]: DB1 [Test failed, 'No such file or directory'
So apperently sudo needs to be installed, so it can do its selfchecks.

fixed by installing the sudo package.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: [SOLVED] zoneminder keeps restarting

Post by dougmccrary »

Curious -
What OS package is that?
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: [SOLVED] zoneminder keeps restarting

Post by lbm »

dougmccrary wrote: Thu Jun 10, 2021 12:05 am Curious -
What OS package is that?
Its on Debian 10.
Post Reply