Lose live video when authentication is enabled

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
irishismyname
Posts: 4
Joined: Sun Oct 27, 2019 5:06 pm

Lose live video when authentication is enabled

Post by irishismyname »

Need some help with what I think is an authentication issue with a fresh install.

I just completed (several) fresh installs of Ubuntu 18.04 server, and followed the installation instructions to the last detail.

I then moved to the getting started guide and enabled authentication, then added a source. Everything appears to be fine until I attempt to view the live video, nothing appears except the little "couldn't find that" icon in the top right corner.

When I roll back and disable authentication, the live feeds show up in the browser. Re-enabling reproduces the issue.

I checked the log and saw a lot of this when authentication was enabled:

Code: Select all

zms_m2		11415	ERR	Unable to authenticate user	zms.cpp	212

Code: Select all

web_js		10537	ERR	getStreamCmdResponse stream error: Socket /var/run/zm/zms-055758s.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

Code: Select all

web_php		10537	ERR	Socket /var/run/zm/zms-055758s.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
I checked out the faq http://zoneminder.readthedocs.io/en/lat ... window-etc specified by the error message, but that didn't get me anywhere as I can't seem to find PATHS under Options in the UI.
irishismyname
Posts: 4
Joined: Sun Oct 27, 2019 5:06 pm

Re: Lose live video when authentication is enabled

Post by irishismyname »

This turned out to be an incorrectly set system clock. After setting the system time to the correct timezone, everything worked as it should with out without authentication enabled.

I used the method described here: https://linuxize.com/post/how-to-set-or ... ntu-18-04/ to correct the timezone.
Post Reply