Errors - not sure why

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Errors - not sure why

Post by OldTImer37 »

I have installed Ubuntu server 18.04.4 in a vmware workstation pro 15.5 with 20 gig boot drive and I have an 16 TB (14.44TB usable) surveillance hdd for recordings. I have allocated 4 processors with 2 cores each (8 total) and 64 GIGs of RAM (the max allowed).

I have included the surveillance hdd via /etc/fstab

I have 1 camera a NSC-DB2 video doorbell. (https://www.nellyssecurity.com/nsc-db2- ... -16gb.html) IT seems to have about 14.29 fps with 1536x2048 resolution. I found the Buffers tab - but since I wasn't sure what I was doing I've left it alone.

I believe I have some permission errors and don't know where to start tracking them down. I did have the camera on Mocord - and got continuous recording - but not consistent alarms. I now have it on Modect and it did not detect motion when someone walked out of the driveway :(

Any other information that is needed just ask. Please include a command line option on how to retrieve it as I am not that familiar with Ubuntu server commands.

Any advice would be greatly appreciated.

LOG follows:

Code: Select all

Date/Time	Component	Server	PID	Level	Message	File	Line
2020-03-09 17:15:43.639265	zms_e7		49577	ERR	Unable to send raw frame 6: Broken pipe	zm_eventstream.cpp	791
2020-03-09 17:15:30.429377	zms_e9		49549	ERR	Unable to send raw frame 1: Broken pipe	zm_eventstream.cpp	791
2020-03-09 17:15:20.327158	zms_e3		49544	ERR	Unable to send stream frame: Broken pipe	zm_eventstream.cpp	808
2020-03-09 17:14:32.046633	zms_e1		49505	ERR	Unable to send raw frame 13: Broken pipe	zm_eventstream.cpp	791
2020-03-09 17:14:18.223474	web_php		48999	ERR	Socket /var/run/zm/zms-237813s.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	2170
2020-03-09 17:14:01.880930	zmdc		48731	WAR	Can't find process with command of 'zmtrack.pl -m 1'	zmdc.pl	
2020-03-09 16:28:08.128712	zms_e3		49135	ERR	Unable to send raw frame 1: Broken pipe	zm_eventstream.cpp	791
2020-03-09 16:27:34.909469	web_php		48999	ERR	Unknown aspect ratio 0.75	/usr/share/zoneminder/www/skins/classic/css/base/views/timeline.css.php	35
2020-03-09 16:27:16.499909	web_php		49090	ERR	Unknown aspect ratio 0.75	/usr/share/zoneminder/www/skins/classic/css/base/views/timeline.css.php	35
2020-03-09 16:26:54.295293	web_php		48940	ERR	Unknown aspect ratio 0.75	/usr/share/zoneminder/www/skins/classic/css/base/views/timeline.css.php	35
2020-03-09 16:24:23.846396	zms_e6		49093	ERR	Unable to send raw frame 11: Broken pipe	zm_eventstream.cpp	791
2020-03-09 16:20:11.569658	web_php		48990	ERR	Socket /var/run/zm/zms-413216s.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	2170
2020-03-09 16:20:10.503260	zmdc		48731	WAR	Can't find process with command of 'zmtrack.pl -m 1'	zmdc.pl	
2020-03-09 16:16:15.508544	zmc_m1		48760	WAR	Buffer overrun at index 4, image 10984, slow down capture, speed up analysis or increase ring buffer size	zm_monitor.cpp	2509
2020-03-09 16:16:15.507196	zma_m1		48766	WAR	Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size	zm_monitor.cpp	1337
2020-03-09 16:16:15.502064	zmc_m1		48760	WAR	Buffer overrun at index 2, image 10982, slow down capture, speed up analysis or increase ring buffer size	zm_monitor.cpp	2509
2020-03-09 16:11:51.539444	zms_e1		48959	ERR	Unable to send raw frame 5: Broken pipe	zm_eventstream.cpp	791
2020-03-09 16:11:39.558041	zms_e2		48950	ERR	Unable to send raw frame 7: Broken pipe	zm_eventstream.cpp	791
2020-03-09 15:44:06.630272	web_php		47815	ERR	Socket /var/run/zm/zms-411728s.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	2170
2020-03-09 15:42:28.527120	web_js		48012	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:42:28.499435	web_php		48012	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:42:25.523662	web_js		48012	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:42:25.504327	web_php		48012	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:42:13.739423	web_js		47841	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:42:13.712885	web_php		47841	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:42:10.430209	web_js		47841	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:42:10.411604	web_php		47841	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:41:59.337467	web_js		47820	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:41:59.320242	web_php		47822	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:41:58.457800	web_js		47820	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:41:58.435653	web_php		47822	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:41:58.434790	web_js		47820	ERR	getCmdResponse stream error: socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused - checkStreamForErrors()	?view=event	
2020-03-09 15:41:58.413320	web_php		47820	ERR	socket_sendto( /var/run/zm/zms-490622s.sock ) failed: Connection refused	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:41:58.411564	web_js		47822	ERR	getCmdResponse stream error: No data to read from socket - checkStreamForErrors()	?view=event	
2020-03-09 15:41:58.386690	web_php		47822	ERR	No data to read from socket	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:41:58.384355	web_php		47822	ERR	Timed out waiting for msg /var/run/zm/zms-490622s.sock	/usr/share/zoneminder/www/ajax/stream.php	93
2020-03-09 15:41:57.193502	zms_e2		48041	ERR	Backtrace 7: /usr/lib/zoneminder/cgi-bin/nph-zms(_start+0x2a) [0x5604c592951a]	zm_signal.cpp	104
2020-03-09 15:41:57.184193	zms_e2		48041	ERR	Backtrace 6: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f6b4bbb6b97]	zm_signal.cpp	104
2020-03-09 15:41:57.175202	zms_e2		48041	ERR	Backtrace 5: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xaeb) [0x5604c5927b3b]	zm_signal.cpp	104
2020-03-09 15:41:57.166318	zms_e2		48041	ERR	Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN11EventStream9runStreamEv+0x2a2) [0x5604c59425b2]	zm_signal.cpp	104
2020-03-09 15:41:57.157014	zms_e2		48041	ERR	Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN10StreamBase17checkCommandQueueEv+0x116) [0x5604c59c5b26]	zm_signal.cpp	104
2020-03-09 15:41:57.148053	zms_e2		48041	ERR	Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN11EventStream14processCommandEPKN10StreamBase6CmdMsgE+0x149) [0x5604c5939789]	zm_signal.cpp	104
2020-03-09 15:41:57.138951	zms_e2		48041	ERR	Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890) [0x7f6b4fc87890]	zm_signal.cpp	104
2020-03-09 15:41:57.129451	zms_e2		48041	ERR	Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x5604c59c1318]	zm_signal.cpp	104
2020-03-09 15:41:57.119838	zms_e2		48041	ERR	Signal address is 0x55f4cc180cb8, from 0x5604c5939789	zm_signal.cpp	83
2020-03-09 15:41:57.117862	zms_e2		48041	ERR	Got signal 11 (Segmentation fault), crashing	zm_signal.cpp	52
2020-03-09 15:40:25.766357	web_php		47815	ERR	No data to read from socket	/usr/share/zoneminder/www/includes/functions.php	2170
2020-03-09 15:40:25.764376	web_php		47815	ERR	Timed out waiting for msg /var/run/zm/zms-636009s.sock	/usr/share/zoneminder/www/ajax/stream.php	93
2020-03-09 15:40:24.435540	zmdc		47715	WAR	Can't find process with command of 'zmtrack.pl -m 1'	zmdc.pl	
2020-03-09 15:37:25.459020	zmwatch		47759	ERR	Last analyse time for 1 Front Doorbell was zero.	zmwatch.pl	
2020-03-09 15:37:22.207110	zmdc		47715	ERR	'zma -m 1' exited abnormal
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Errors - not sure why

Post by Bluemax »

The zms binary crashes (segfault).
What happens if you start the binary manually? Does it work or crash as well? Mine is at '/usr/share/webapps/zoneminder/cgi-bin/zms'.

Code: Select all

0 Zoneminder ~ $ /usr/share/webapps/zoneminder/cgi-bin/zms
03/10/20 02:13:02.089256 zms[21490].FAT-zms.cpp/176 [No query string.]

255 Zoneminder ~ $
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

zma -m 1
03/09/20 18:42:08.262512 undef[50475].FAT-zm_config.cpp/113 [Can't open /etc/zm/zm.conf: Success]

Here is the ls -l of /etc/zm/

drwxr-xr-x 2 root root 4096 Mar 9 16:03 conf.d
-rw-r----- 1 root www-data 1816 Mar 9 14:13 zm.conf
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Errors - not sure why

Post by bbunge »

When you set up your storage did you assign ownership of the events directory to www-data?
AS for the camera, does it work in VLC? If so did you check the reported resolution in VLC (Tools, Media Information, Codec) to check camera Display Resolution and use that resolution in Zoneminder? In Zoneminder use ffmpeg, though.
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

Yes the storage /var/cache/zoneminder and all subfolders are www-data:www-data

The camera works in vlc. I can view the camera in zm.

In VLC Video and Buffer resolutions are both: 1536x2048
Frame rate is 15
Codec H264 - MPEG-4 AVC (part 10) (h264)

I changed the permissions on
sudo chown www-data:www-data -R /etc/zm

zma -m 1
03/09/20 19:13:29.885883 undef[50707].FAT-zm_config.cpp/113 [Can't open /etc/zm/zm.conf: Success]

but the ssh shell hangs and I need to ctrl-c to break out
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Errors - not sure why

Post by Bluemax »

zma is not zms.

Try /usr/lib/zoneminder/cgi-bin/nph-zms
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

I get

nph-zms: command not found

nph-zms.png
nph-zms.png (8.78 KiB) Viewed 7774 times
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Errors - not sure why

Post by Bluemax »

Either type this (absolute path):
/usr/lib/zoneminder/cgi-bin/zms

or if you are in the folder (as on the screenshot) you can use this:
./zms

If you just type the pure command name (as you did) it looks for the file in the $PATH folders only ('echo $PATH' to check).
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

Did that - needed to hit ctrl-c to break out of the program
nph-zms.png
nph-zms.png (11.08 KiB) Viewed 7768 times
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Errors - not sure why

Post by Bluemax »

I guess its working correctly.
You probably just have configured your zones not properly. Don't use percentage, use pixels instead. Maybe start with 3000/2000/1000 (min values).
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

When I get home I will check and post a reply.
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

I had it on percent - switched to pixels - and I accepted the values that zm changed the options to.
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Errors - not sure why

Post by Bluemax »

The pixel values are equivalent to the previous percentage value if you switch (just the same value in pixels) so nothing would change. You would have to change the values to make a difference.
OldTImer37
Posts: 11
Joined: Tue Mar 10, 2020 12:20 am

Re: Errors - not sure why

Post by OldTImer37 »

Here are the existing settings (cropped for smaller size)

I have had it detect some motion once I manually type in

zma -m 1 but the clips are only 5-6 seconds.
Screenshot_2020-03-10 ZM - Zone.jpg
Screenshot_2020-03-10 ZM - Zone.jpg (502.09 KiB) Viewed 7704 times
Post Reply