Open francescocarzaniga opened 1 month ago
Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!
@connortechnology This problem is due to the systemd service. It cannot detect that the process has forked due to the following error:
New main PID does not belong to service, and PID file is not owned by root. Refusing.
So it restarts every 600 seconds as indicated in Timeout
.
I run several debian 12 servers here... with no issues like this. Have you made any modifications to the .service file? Please post here your /etc/systemd/system/zoneminder.service
No modifications at all, this is a fresh install using the https://zmrepo.zoneminder.com/debian/master
repo.
Contents of /lib/systemd/system/zoneminder.service
:
# ZoneMinder systemd unit file
# This file is intended to work with Debian distributions
[Unit]
Description=ZoneMinder CCTV recording and surveillance system
After=network.target mysql.service
# Remarked out so that it will start ZM on machines that don't have mysql installed
# Override it by placing an override.conf in /etc/systemd/system/zoneminder.service.d
#BindsTo=mysql.service
[Service]
#User=www-data
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile=/run/zm/zm.pid
Restart=always
RestartSec=10
Environment=TZ=:/etc/localtime
TimeoutSec=600
[Install]
WantedBy=multi-user.target
Now I have modified it to be a oneshot just to make it work, but it's a temporary fix.
Describe Your Environment
Describe the bug The camera is set up in continuous recording mode, camera passthrough, no analysis. Each section is recorded correctly but there is a significant amount of time (~20 seconds) between each section where nothing is recorded. When checking the logs it seems that Zoneminder is shutting down at the end of the section and then starting back up again, which causes ~20 seconds of delay.
Debug Logs