Various errors after upgrade to 1.36.32

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
3to20
Posts: 2
Joined: Tue Jan 03, 2023 8:43 pm

Various errors after upgrade to 1.36.32

Post by 3to20 »

Hi there and happy new year everyone.

Running ZM on an 8-core intel NUC with 32GB of RAM; assigned 12GB to the Ubuntu VM running ZM, and it ticks along at abt. 5 out of those 12 GB (for years already), with only 2 cams (each with low-res stream for modect and high-res then as nodect, triggered by the low-res modects).
All was working fine, yet I thought it was time to upgrade Ubuntu 18.04 LTS via 20.04 to 22.04, and then ZM to latest.
Ubuntu 18.04>20.04 worked well, zm was fine afterwards.
20.04 > 22.04 ran into a problem near the end (out of disk space, doh!); got that fixed (lucky), and all that seemed broken was some apache stuff (php now 8.1, not 7.4, got that fixed).
But then on 22.04 zm wasn't there any more. Nevermind, added the current ppa and simply installed zm again, keeping the config (was still there) in place when asked. Had to re-enable the apache mods, but after that, all was up and running again (as it seems). Good, basically, so I think all this "detour" isn't really the reason for the handful of errors in the log I'm here for.

I couldn't (yet) find out (g**gle) about where to start. Below is all that is there. Journalctl doesn't have anything related around these lines, i.e. other system messages before/after are many seconds to minutes away from these and have totally different (and no "negative") content.

Code: Select all

Date/Time,Component,Server,PID,Level,Message,File,Line
"2023.01.03 20:08:42",zmdc,,851,ERR,"'zmupdate.pl -c' exited abnormally, exit status 9",zmdc.pl,'-
"2023.01.03 18:43:13",zms_m1,,10655,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 18:43:12",zmc_m1,,10645,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 18:42:53",zms_m1,,10631,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 18:42:52",zmc_m1,,10608,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 18:42:14",web_php,,1840,ERR,"socket_sendto( /run/zm/zms-965193s.sock ) failed: Connection refused",/usr/share/zoneminder/www/includes/functions.php,1882
"2023.01.03 18:42:14",zmc_m1,,7937,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 18:34:25",web_php,,1900,ERR,"socket_sendto( /run/zm/zms-810044s.sock ) failed: Connection refused",/usr/share/zoneminder/www/includes/functions.php,1882
"2023.01.03 18:34:25",web_php,,1753,ERR,"socket_sendto( /run/zm/zms-424368s.sock ) failed: Connection refused",/usr/share/zoneminder/www/includes/functions.php,1882
"2023.01.03 18:34:25",web_php,,1840,ERR,"socket_sendto( /run/zm/zms-969367s.sock ) failed: Connection refused",/usr/share/zoneminder/www/includes/functions.php,1882
"2023.01.03 18:03:57",zms_m1,,7923,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 18:03:56",zms_m1,,7923,ERR,"Unable to connect to monitor id 1 for streaming",zm_stream.cpp,60
"2023.01.03 18:03:56",zms_m1,,7923,ERR,"Can't open memory map file /dev/shm/zm.mmap.1: No such file or directory",zm_monitor.cpp,927
"2023.01.03 18:03:56",zms_m1,,7923,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 18:03:56",zmc_m1,,7903,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 18:03:21",web_php,,1757,ERR,"socket_sendto( /run/zm/zms-547462s.sock ) failed: Connection refused",/usr/share/zoneminder/www/includes/functions.php,1882
"2023.01.03 18:03:21",zmc_m1,,1044,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
Looking at this for starters:

Code: Select all

"2023.01.03 18:03:56",zms_m1,,7923,ERR,"Can't open memory map file /dev/shm/zm.mmap.1: No such file or directory",zm_monitor.cpp,927
compared with

Code: Select all

ls -l /dev/shm/zm.mmap.*
-rw-rw---- 1 www-data www-data  3691960 Jan  3 18:43 /dev/shm/zm.mmap.1
-rw-rw---- 1 www-data www-data 58987960 Jan  3 00:08 /dev/shm/zm.mmap.2
-rw-rw---- 1 www-data www-data  3691960 Jan  3 00:08 /dev/shm/zm.mmap.3
-rw-rw---- 1 www-data www-data 58987960 Jan  3 00:08 /dev/shm/zm.mmap.4
EDIT:
Now noticed: When I want to adjust the zones for that CAM1 (mmap.1) or CAM3 (mmap.3), I repeatedly have no preview picture, but only the zones showing after I edit / save a zone. Then "hangs" a couple seconds, showing the zone outlines but no cam picture, and then the cam picture comes back. At the same time, I get lots of errors in the log, and zm.mmap.1 (or .3) gets re-created, too. Example below for CAM1; corresponding lines for CAM3 when that one gets modified.

Code: Select all

Date/Time,Component,Server,PID,Level,Message,File,Line
"2023.01.03 22:43:32",zms_m1,,14791,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:43:32",zmc_m1,,14771,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:43:13",zms_m1,,14758,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:43:12",zmc_m1,,14738,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:43:02",zms_m1,,14725,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:43:01",zmc_m1,,14705,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:42:48",zms_m1,,14691,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:42:48",zmc_m1,,14671,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:42:20",zms_m1,,14657,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:42:19",zms_m1,,14657,ERR,"Unable to connect to monitor id 1 for streaming",zm_stream.cpp,60
"2023.01.03 22:42:19",zms_m1,,14657,ERR,"Can't open memory map file /dev/shm/zm.mmap.1: No such file or directory",zm_monitor.cpp,927
"2023.01.03 22:42:19",zms_m1,,14657,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:42:19",zmc_m1,,14637,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:41:53",zms_m1,,14621,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:41:53",zmc_m1,,14597,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:41:32",zms_m1,,14610,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:41:32",zms_m1,,14601,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:41:32",zms_m1,,14621,ERR,"Monitor shm is not connected",zm_stream.cpp,78
"2023.01.03 22:41:32",zmc_m1,,14597,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 22:41:21",web_php,,1753,ERR,"socket_sendto( /run/zm/zms-141933s.sock ) failed: Connection refused",/usr/share/zoneminder/www/includes/functions.php,1882
"2023.01.03 22:41:21",zmc_m1,,10668,ERR,"Failed to capture image from monitor 1 CamNW_M5M_sub_640x480 (1/1)",zmc.cpp,305
"2023.01.03 20:08:42",zmdc,,851,ERR,"'zmupdate.pl -c' exited abnormally, exit status 9",zmdc.pl,'-

Code: Select all

ls -l /dev/shm/zm.mmap.*
-rw-rw---- 1 www-data www-data  3691960 Jan  3 22:43 /dev/shm/zm.mmap.1
-rw-rw---- 1 www-data www-data 58987960 Jan  3 00:08 /dev/shm/zm.mmap.2
-rw-rw---- 1 www-data www-data  3691960 Jan  3 00:08 /dev/shm/zm.mmap.3
-rw-rw---- 1 www-data www-data 58987960 Jan  3 00:08 /dev/shm/zm.mmap.4
User avatar
iconnor
Posts: 2949
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Various errors after upgrade to 1.36.32

Post by iconnor »

You will need to look deeper into the logs... but really /var/log/syslog should have anything major.

I would start with
sudo zmupdate.pl
sudo zmupdate.pl -f
Post Reply