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]
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!
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
Thanks