Tons of issues since upgrading from 1.34

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
wdizzle
Posts: 3
Joined: Sun Apr 22, 2018 6:41 pm

Tons of issues since upgrading from 1.34

Post by wdizzle »

Running Ubuntu 18.04 server. Everything was mostly fine on 1.34.26. Upgraded this past weekend and everything seemed to go ok with it. No errors or anything.

Now most of my cameras constantly drop in and out. /dev/shm is only using 1-2% of the available memory (around 60mb of 6gb) where it seemed like it was alot higher on the previous version. I see these errors constantly every few seconds in the logfile.

Code: Select all

2021-07-08 18:30:06	zmc_m2		31258	WAR	Monitor dimensions are 1920x1440 but camera is sending 2560x1920	zm_ffmpeg_camera.cpp	575
2021-07-08 18:30:05	zmc_m2		31258	WAR	Option buffer_size not recognized by ffmpeg	zm_ffmpeg_camera.cpp	337
2021-07-08 18:30:05	zmc_m2		31258	WAR	Option allowed_media_types not recognized by ffmpeg	zm_ffmpeg_camera.cpp	337
2021-07-08 18:30:05	zmc_m2		31258	WAR	Option reorder_queue_size not recognized by ffmpeg	zm_ffmpeg_camera.cpp	337
2021-07-08 18:30:01	zmc_m2		31252	ERR	Failed to capture image from monitor 2 Back Door (1/1)	zmc.cpp	306
2021-07-08 18:30:01	zmwatch		1838	WAR	Restarting capture daemon for Back Door, time since last capture 9 seconds (1625783401-1625783392)	zmwatch.pl	-
2021-07-08 18:29:44	zmc_m2		31252	WAR	Monitor dimensions are 1920x1440 but camera is sending 2560x1920	zm_ffmpeg_camera.cpp	575
2021-07-08 18:29:43	zmc_m2		31252	WAR	Option buffer_size not recognized by ffmpeg	zm_ffmpeg_camera.cpp	337
2021-07-08 18:29:43	zmc_m2		31252	WAR	Option allowed_media_types not recognized by ffmpeg	zm_ffmpeg_camera.cpp	337
2021-07-08 18:29:43	zmc_m2		31252	WAR	Option reorder_queue_size not recognized by ffmpeg	zm_ffmpeg_camera.cpp	337
2021-07-08 18:29:41	zmdc		1745	WAR	!send_stop so starting 'zmc -m 2'	zmdc.pl	-
2021-07-08 18:29:40	zmwatch		1838	ERR	Memory map file '/dev/shm/zm.mmap.2' does not exist in zmMemAttach. zmc might not be running.	zmwatch.pl	-
2021-07-08 18:29:30	zmc_m2		31247	ERR	Unable to open input rtmp://192.168.1.221:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=zoneminder&password=yWgv4K3f due to: Immediate exit requested	zm_ffmpeg_camera.cpp	322
2021-07-08 18:29:30	zmwatch		1838	ERR	Memory map file '/dev/shm/zm.mmap.2' does not exist in zmMemAttach. zmc might not be running.	zmwatch.pl	-
2021-07-08 18:29:20	zmc_m2		31239	ERR	Failed to capture image from monitor 2 Back Door (1/1)
Connecting to one of the effected cameras results in a frequent "Unable to connect to monitor" message, and even more errors in the log.

Code: Select all

2021-07-08 18:40:45	web_js		12965	ERR	getStreamCmdResponse stream error: Socket /run/zm/zms-912684s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()	?view=watch&mid=2	-
2021-07-08 18:40:45	web_php		12965	ERR	Socket /run/zm/zms-912684s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.	/usr/share/zoneminder/www/includes/functions.php	1902
2021-07-08 18:40:44	zms_m2		31559	ERR	Unable set start stream for monitor 2	zms.cpp	268
2021-07-08 18:40:44	zms_m2		31559	ERR	Unable to connect to monitor id 2 for streaming	zm_stream.cpp	58
2021-07-08 18:40:44	zms_m2		31559	ERR	Can't open memory map file /dev/shm/zm.mmap.2: No such file or directory
Fortunately this is a virtual machine and I took a snapshot so if my only option is to roll back I will, but would like to see if I can unbork this first.
dougmccrary
Posts: 1314
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Tons of issues since upgrading from 1.34

Post by dougmccrary »

A lot changed, as you can see.
I'd suggest you roll back for now, and set up another machine to experiment with.
FFmpeg and buffers - maximum image buffer size is recommended to 0, unlimited.
Storage options are changed, especially if you're not using passthrough - video writer - encode, output codec h264, Encoder libx264 for that sort of camera. EtC. EtC....
wdizzle
Posts: 3
Joined: Sun Apr 22, 2018 6:41 pm

Re: Tons of issues since upgrading from 1.34

Post by wdizzle »

Probably solid advice. I exported the VM to a backup and rolled it back. If anybody has any suggestions I can pause the working one, fire up the broken one and try it. For some reason after rolling back I get this a ton in the log.

Code: Select all

2021-07-08 20:58:51	web_js		1927	ERR	Uncaught%20TypeError%3A%20Cannot%20read%20property%20'length'%20of%20undefined	zm/cache/skins_classic_js_bootstrap-table.min-dark-1624387356.js	10
Doesn't seem to effect anything though.
ergamus
Posts: 27
Joined: Sat May 29, 2021 10:09 am

Re: Tons of issues since upgrading from 1.34

Post by ergamus »

wdizzle wrote: Fri Jul 09, 2021 1:01 am For some reason after rolling back I get this a ton in the log.

Code: Select all

2021-07-08 20:58:51	web_js		1927	ERR	Uncaught%20TypeError%3A%20Cannot%20read%20property%20'length'%20of%20undefined	zm/cache/skins_classic_js_bootstrap-table.min-dark-1624387356.js	10
Doesn't seem to effect anything though.
Have you tried clearing out your browser cache/cookies for the ZM domain?
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: Tons of issues since upgrading from 1.34

Post by tsp84 »

what does your 'source' config look like for that monitor? It says you have it set to 1920x1440 but the image being sent is 4k ish? also complaining about ffmpeg options being sent its way. I would start there.
Post Reply