ZMS issues on fresh install

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
BurningSky
Posts: 16
Joined: Sun Jun 25, 2017 7:57 pm

ZMS issues on fresh install

Post by BurningSky »

Hi,

I just built a fresh 18.04 Ubuntu server, installed LAMP and ran the easy installer for 1.32. When I try to add a camera using the exact same config details as I had working on 1.30 I start getting a lot of errors in the logs:

Code: Select all

2018-12-29 09:30:11.082907 web_js[12979].ERR-?view=watch [getStreamCmdResponse stream error: Socket /var/run/zm/zms-325249s.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()]
2018-12-29 09:30:10.937267 web_php[12979].ERR-/usr/share/zoneminder/www/includes/functions.php/2048 [Socket /var/run/zm/zms-325249s.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.]

Code: Select all

2018-12-29 09:30:01.576860 zmdc[1477].ERR-zmdc.pl ['zmc -m 1' exited abnormally, exit status 255]
2018-12-29 09:30:01.523454 zmc_m1[13246].FAT-zm_remote_camera_rtsp.cpp/188 [Unable to locate video stream]
2018-12-29 09:30:01.429650 zmc_m1[13250].WAR-zm_rtp_source.cpp/69 [The device is using a codec that may not be supported. Do not be surprised if things don't work.]
2018-12-29 09:30:01.323957 zmc_m1[13250].WAR-zm_sdp.cpp/425 [Can't find payload details for application payload type 111, name X-KATA]
2018-12-29 09:30:01.266073 zmc_m1[13250].WAR-zm_sdp.cpp/425 [Can't find payload details for audio payload type 97, name MPEG4-GENERIC]
I have checked that cgi is running on apache and it is.

Code: Select all

burningsky@hemtal:/etc/zm$ cat /usr/lib/cgi-bin/hw.sh
#!/bin/bash
printf "Content-type: text/html\n\n"
printf "Hello World!\n"
burningsky@hemtal:/etc/zm$ curl -k https://127.0.0.1/cgi-bin/hw.sh
Hello World!
I have also tried to check the cgi config of ZM and it looks fine to me (I'm no Linux expert so it is based off of other forum posts and Google searches).

Code: Select all

burningsky@hemtal:/etc/zm$ sudo cat conf.d/01-system-paths.conf|grep ZM_PATH_ZMS
ZM_PATH_ZMS=/zm/cgi-bin/nph-zms
burningsky@hemtal:/etc/zm$ cat /etc/apache2/conf-enabled/zoneminder.conf|grep ScriptAlias
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
burningsky@hemtal:/etc/zm$ ls /usr/lib/zoneminder/cgi-bin
nph-zms  zms
Can anyone suggest what I need to check next? Am I missing something obvious?
Thanks
Maximo1970
Posts: 97
Joined: Sun May 28, 2017 4:29 pm

Re: ZMS issues on fresh install

Post by Maximo1970 »

viewtopic.php?f=38&t=27882#p108720

Could be something similar to my experience, which turn out to be a simple fix.
BurningSky
Posts: 16
Joined: Sun Jun 25, 2017 7:57 pm

Re: ZMS issues on fresh install

Post by BurningSky »

My cameras require a password to connect to the feed, how do you send the password if not in the string?

Currently I have:
Protocol: RTSP
Method: RTP/TRSP
Hostname: admin:password@192.168.0.150
Port: 554
Path: /live/ch1
SkippyDo
Posts: 221
Joined: Mon Nov 20, 2017 6:49 pm

Re: ZMS issues on fresh install

Post by SkippyDo »

As BurningSky suggests, look to verify connectivity to your cameras. I'd suggest testing with something like VLC.
BurningSky
Posts: 16
Joined: Sun Jun 25, 2017 7:57 pm

Re: ZMS issues on fresh install

Post by BurningSky »

I just put rtsp://admin:password@192.168.0.150/live/ch1 into VLC and it streams fine. The same config worked fine in 1.30 so it feels like there has to be something going on with my install on 1.32
BurningSky
Posts: 16
Joined: Sun Jun 25, 2017 7:57 pm

Re: ZMS issues on fresh install

Post by BurningSky »

I tried reinstalling LAMP using tasksel to make sure I hadn't done something wrong during the installation process of that then added CGI after but I still get the errors. Are there any post script tasks required for ZM if you follow https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way?
Post Reply