Zoneminder keeps crashing

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
Onkel_Dithmeyer
Posts: 3
Joined: Sat Mar 16, 2019 10:39 pm

Zoneminder keeps crashing

Post by Onkel_Dithmeyer » Sat Mar 16, 2019 10:57 pm

Hi folks, I am done. I tryed everything and searched the whole net for days. I really need your support :oops:

I'm runnning Zoneminder as a docker under OMV and usually there shouldn't be any problems I guess. But there are plenty. I already removed and setup the docker for a couple of times with different paths. When I first log in zoneminder there is everything find and smooth. But when I add my Cam, which supports Onviv I configure as followed:

Source Type: Ffmpeg
Source Path: rtsp://USER:PW@IP:10554/tcp/av0_0 (works fine in VLC)
Method: TCP
Width: 320
Height: 240
the rest i leave at stock.

I doesn't matter if I choose Monitor /Modect or Mocord, I got instant a red "Log"-Entry. As followed:

Code: Select all

2019-03-16 23:49:26	zmfilter_1		14422	INF	Checking filter PurgeWhenFull delete returned 0 events 	zmfilter.pl	
2019-03-16 23:49:26	zmfilter_2		14427	INF	Checking filter Update DiskSpace update disk space returned 0 events 	zmfilter.pl	
2019-03-16 23:49:19	zmc_m1		15909	INF	Stream open rtsp://xxx:10554/tcp/av0_0, parsing streams...	zm_ffmpeg_camera.cpp	378
2019-03-16 23:49:19	zmc_m1		15909	INF	Priming capture from rtsp://xxx:10554/tcp/av0_0	zm_ffmpeg_camera.cpp	163
2019-03-16 23:49:19	zmc_m1		15909	INF	Starting Capture version 1.32.3	zmc.cpp	223
2019-03-16 23:49:18	zmdc		15909	INF	'zmc -m 1' started at 19/03/16 23:49:18	zmdc.pl	
2019-03-16 23:49:18	zmdc		14386	INF	'zmc -m 1' starting at 19/03/16 23:49:18, pid = 15909	zmdc.pl	
2019-03-16 23:49:18	zmdc		14386	WAR	Can't find process with command of 'zmc -m 1'	zmdc.pl	
2019-03-16 23:49:18	zmwatch		14431	INF	Restarting capture daemon for Monitor-1, shared data not valid	zmwatch.pl	
2019-03-16 23:49:18	zmwatch		14431	ERR	Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.	zmwatch.pl	
2019-03-16 23:49:08	zmwatch		14431	ERR	Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.	zmwatch.pl	
2019-03-16 23:49:08	zmwatch		14431	INF	Restarting capture daemon for Monitor-1, shared data not valid	zmwatch.pl	
2019-03-16 23:49:08	zmdc		14386	INF	Command 'zmc -m 1' removed from pending list at 19/03/16 23:49:08	zmdc.pl	
2019-03-16 23:48:58	zmdc		14386	INF	'zmc -m 1' exited normally	zmdc.pl	
2019-03-16 23:48:58	zmc_m1		15889	WAR	Monitor dimensions are 320x240 but camera is sending 1280x720	zm_ffmpeg_camera.cpp	627
2019-03-16 23:48:58	zmc_m1		15889	INF	Got signal 15 (Terminated), exiting	zm_signal.cpp	40
2019-03-16 23:48:58	zmdc		14386	INF	'zmc -m 1' sending stop to pid 15889 at 19/03/16 23:48:58	zmdc.pl	
2019-03-16 23:48:58	zmwatch		14431	INF	Restarting capture daemon for Monitor-1, no image since startup. Startup time was 1552776528 - now 1552776538 > 5	zmwatch.pl	
2019-03-16 23:48:49	zmc_m1		15889	INF	Stream open rtsp://xxx:10554/tcp/av0_0, parsing streams...	zm_ffmpeg_camera.cpp	378
2019-03-16 23:48:48	zmwatch		14431	ERR	Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.	zmwatch.pl
If I click on the Monitor to look at the capture the log runs insane:

Code: Select all

2019-03-16 23:51:32	zms_m1		16025	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:32	zms_m1		16025	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:32	zms_m1		16025	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:32	zms_m1		16026	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:32	zms_m1		16026	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:32	zms_m1		16026	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:32	web_php		14798	ERR	Socket /var/run/zm/zms-492705s.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	2048
2019-03-16 23:51:30	zmdc		14386	INF	Command 'zmc -m 1' removed from pending list at 19/03/16 23:51:30	zmdc.pl	
2019-03-16 23:51:30	zmwatch		14431	INF	Restarting capture daemon for Monitor-1, shared data not valid	zmwatch.pl	
2019-03-16 23:51:30	zmwatch		14431	ERR	Memory map file '/dev/shm/zm.mmap.1' should have been 1160 but was instead 0	zmwatch.pl	
2019-03-16 23:51:29	zms_m1		16019	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:29	zms_m1		16019	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:29	zms_m1		16019	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:28	web_php		14352	ERR	Socket /var/run/zm/zms-813659s.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	2048
2019-03-16 23:51:28	zms_m1		16018	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:28	zms_m1		16018	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:28	zms_m1		16018	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:26	zmfilter_2		14427	INF	Checking filter Update DiskSpace update disk space returned 0 events 	zmfilter.pl	
2019-03-16 23:51:26	zmfilter_1		14422	INF	Checking filter PurgeWhenFull delete returned 0 events 	zmfilter.pl	
2019-03-16 23:51:25	web_php		14353	ERR	Socket /var/run/zm/zms-158441s.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	2048
2019-03-16 23:51:25	zms_m1		16011	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:25	zms_m1		16011	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:25	zms_m1		16011	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:25	zms_m1		16012	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:25	zms_m1		16012	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:25	zms_m1		16012	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:23	zms_m1		16007	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:23	zms_m1		16007	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:23	zms_m1		16007	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
2019-03-16 23:51:23	zms_m1		16006	ERR	Unable to connect to zmc process for monitor 1	zms.cpp	254
2019-03-16 23:51:23	zms_m1		16006	ERR	Unable to connect to monitor id 1 for streaming	zm_stream.cpp	48
2019-03-16 23:51:23	zms_m1		16006	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	538
As you can see it crashes constantly and it is only possible to capture the log by reducing the bandwidth to "low"

The Hardware is performant enough I think:
AMD Ryzen 7 1700 @3GHz
16 GB DDR4 RAM
500 GB NVME SSD
Zoneminder see Diskspace "29.36GB of 441.77GB"

I am not a big Linux-Crack but I've never had such a consistent problem. I'm looking forward for your help, I guess I made a real simple failure but I don't get where it should be. Do you need any further information?

rockedge
Posts: 1098
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Zoneminder keeps crashing

Post by rockedge » Sun Mar 17, 2019 12:40 pm

Hello!
what happens if you open a terminal and try:

Code: Select all

zmc -m 1

Onkel_Dithmeyer
Posts: 3
Joined: Sat Mar 16, 2019 10:39 pm

Re: Zoneminder keeps crashing

Post by Onkel_Dithmeyer » Sun Mar 17, 2019 1:13 pm

I don't work long with docker but how can I run a command in the docker? If I run it in the OMV-console I've got "command not found"

kitkat
Posts: 65
Joined: Sun Jan 27, 2019 5:17 pm

Re: Zoneminder keeps crashing

Post by kitkat » Sun Mar 17, 2019 4:47 pm

Could this have something to do with it?

Code: Select all

2019-03-16 23:48:58 zmc_m1 15889 WAR Monitor dimensions are 320x240 but camera is sending 1280x720 zm_ffmpeg_camera.cpp 627

rockedge
Posts: 1098
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Zoneminder keeps crashing

Post by rockedge » Sun Mar 17, 2019 5:42 pm

Yes!! it does....it is very important to configure a monitor with the correct resolution. Open the camera with VLC and use Tools->Codec to see the exact output.

try to lower the camera's resolution to something like 320x240 or 640x480, then configure the monitor to that. The most important thing is to have matching resolution settings. especially what the camera is outputting. Once you have the camera(s) going you can increase the resolution to what you want.

Onkel_Dithmeyer
Posts: 3
Joined: Sat Mar 16, 2019 10:39 pm

Re: Zoneminder keeps crashing

Post by Onkel_Dithmeyer » Sun Mar 17, 2019 9:50 pm

No, I first hat 1280x720 in there, I read somewhere that it can help to reduce the resolution to fix problems so I tried it with 320x240.

mikb
Posts: 401
Joined: Mon Mar 25, 2013 12:34 pm

Re: Zoneminder keeps crashing

Post by mikb » Mon Mar 18, 2019 5:33 pm

It can help to reduce resolution, you are correct.

Very important: You need to reduce the resolution at the camera sending end, as well as the Zoneminder receiving end. And they must exactly match.

It sound like you have only changed it at Zoneminder, which is now trying to tell you to sort it out.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest