You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details
When zoneminder is told to restart via systemd, zmeventnotification.pl does not exit which causes Zoneminder restart to timeout. During this time if you manually kill zmeventnotification.pl then Zoneminder will restart successfully. Looks to be the same issue this person on the Zoneminder forums reported https://forums.zoneminder.com/viewtopic.php?t=30555.
Debug Logs (if applicable)
Jul 18 11:39:21 zoneminder systemd[1]: Stopping ZoneMinder CCTV recording and surveillance system...
Jul 18 11:39:22 zoneminder sudo[631772]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/bin/true
Jul 18 11:39:22 zoneminder sudo[631772]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Jul 18 11:39:22 zoneminder sudo[631772]: pam_unix(sudo:session): session closed for user www-data
Jul 18 11:39:22 zoneminder sudo[631774]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl check
Jul 18 11:39:22 zoneminder sudo[631774]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Jul 18 11:39:22 zoneminder sudo[631774]: pam_unix(sudo:session): session closed for user www-data
Jul 18 11:39:22 zoneminder sudo[631777]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl shutdown
Jul 18 11:39:22 zoneminder sudo[631777]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Jul 18 11:39:23 zoneminder zmeventnotification[631142]: ERR [Shared data not valid for monitor 7]
Jul 18 11:39:23 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:39:23 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:24 zoneminder sudo[631777]: pam_unix(sudo:session): session closed for user www-data
Jul 18 11:39:24 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:24 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:39:24 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:24 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:24 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:39:24 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:26 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:26 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:39:26 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:28 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:28 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:39:28 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:30 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:30 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:39:30 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:39:32 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
............
Jul 18 11:49:25 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:49:25 zoneminder zmeventnotification[631142]: ERR [|----> FORK:garage (7), eid:315940 SHM failed, re-validating it]
Jul 18 11:49:25 zoneminder zmeventnotification[631142]: ERR [Memory map file '/dev/shm/zm.mmap.7' does not exist in zmMemAttach. zmc might not be running.]
Jul 18 11:49:25 zoneminder systemd[1]: zoneminder.service: State 'stop-final-sigterm' timed out. Killing.
Jul 18 11:49:25 zoneminder systemd[1]: zoneminder.service: Killing process 631142 (zmeventnotifica) with signal SIGKILL.
Jul 18 11:49:25 zoneminder systemd[1]: zoneminder.service: Failed with result 'timeout'.
Jul 18 11:49:25 zoneminder systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
Jul 18 11:49:25 zoneminder systemd[1]: zoneminder.service: Found left-over process 631142 (zmeventnotifica) in control group while starting unit. Ignoring.
Jul 18 11:49:25 zoneminder systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jul 18 11:49:25 zoneminder systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
The text was updated successfully, but these errors were encountered:
I wrote a script that I run out of cron every minute that checks for the condition and then kills zmeventnotification.pl
$ cat /usr/local/bin/kill-zmeventnotification.sh
#!/usr/bin/env bash# zmeventnotification.pl hangs when zoneminder is trying to restart# to work around this, we will look for the systemctl command to# restart zoneminder, and if it exists then we will pkill the event# notification server# https://github.com/ZoneMinder/zmeventnotification/issues/417if pgrep -f 'systemctl restart zoneminder';then
pkill -9 -f 'zmeventnotification.pl'fi
Event Server version
Hooks version (if you are using Object Detection)
The version of ZoneMinder you are using:
1.36.20
OS version:
Ubuntu 20.04.4 LTS
What is the nature of your issue
Bug
Details
When
zoneminder
is told to restart via systemd,zmeventnotification.pl
does not exit which causes Zoneminder restart to timeout. During this time if you manually kill zmeventnotification.pl then Zoneminder will restart successfully. Looks to be the same issue this person on the Zoneminder forums reported https://forums.zoneminder.com/viewtopic.php?t=30555.Debug Logs (if applicable)
The text was updated successfully, but these errors were encountered: