OPT_USE_AUTH authentication fails when hashed **FIXED**

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
User avatar
emailej
Posts: 21
Joined: Wed Aug 24, 2016 12:31 am

OPT_USE_AUTH authentication fails when hashed **FIXED**

Post by emailej »

UPDATE:
After more troubleshooting I discovered the problem was incorrect timezone in /etc/php7/apache2/php.ini. The value was somehow changed to date.timezone = [UTC]. After resetting to date.timezone = America/Los_Angeles and restart of mysql/apache/zm all is back to normal with hashed authentication working.


Suddenly my camera streams stopped showing up after recent update. I updated both the OS and zoneminder so I'm not sure what update caused the problem. From the zm log I noticed failed to authenticate errors (see below). Changing AUTH_RELAY from "hashed" to "none" resolves the problem with streams being displayed but obviously I need hashed relay for security. Changing AUTH_RELAY from "hashed" to "plain" still give authentication errors. AUTH_TYPE is "builtin"

I'm running opensuse tumbleweed latest image (20200312) and ZoneMinder 1.32.3-12.67 from Monex community repository.

Any help or suggestions to resolve this?

Example log errors when AUTH_RELAY set to "hashed":

2020-03-15 20:31:52 zms_m20 12645 ERR Unable to authenticate user zms.cpp 212
2020-03-15 20:31:52 web_php 31508 ERR Socket /var/run/zm/zms-124837s.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/lat ... window-etc for more information. includes/functions.php 2048
2020-03-15 20:31:52 zms_m20 12646 ERR Unable to authenticate user zms.cpp 212
2020-03-15 20:31:52 web_js 7721 ERR getStreamCmdResponse stream error: Socket /var/run/zm/zms-124837s.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/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
2020-03-15 20:31:52 zms_m20 12649 ERR Unable to authenticate user zms.cpp 212
2020-03-15 20:31:52 zms_m20 12650 ERR Unable to authenticate user zms.cpp 212
2020-03-15 20:31:52 zms_m20 12652 ERR Unable to authenticate user zms.cpp 212
2020-03-15 20:31:51 web_js 31273 ERR getStreamCmdResponse stream error: Socket /var/run/zm/zms-225515s.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/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
Post Reply