Page 1 of 1

Authentication stopped to work

Posted: Sun Oct 30, 2022 3:19 pm
by jogo
I just updated from 1.36.25 to 1.36.30 on a Fedora 36 box. After the update it seems to be impossible to log in. At first glance I did not see any error messages in the log files. If I disable authentication (i.e. by setting zm.ZM_OPT_USE_AUTH to 0) the rest works as usual.

Then I completely reinstalled zoneminder by removing the package, deleting all events and dropping the zm database. The login problem is still there, so my problem does currently not look like a broken update due to whatever circumstances.

Did someone run into the same problem?

Re: Authentication stopped to work

Posted: Sun Oct 30, 2022 3:39 pm
by jogo
I found something in ssl_error_log:

Code: Select all

[Sun Oct 30 14:46:31.876139 2022] [authz_core:error] [pid 1157:tid 1322] [client 192.168.xx.xx:50440] AH01630: client denied by server configuration: /usr/share/zoneminder, referer: https://p10s/zm/?view=console
Right now I don't know what is causing that as the previous setup has worked for a couple of zoneminder versions.

Re: Authentication stopped to work

Posted: Sun Oct 30, 2022 3:55 pm
by Magic919
Looks like you need to sort your Apache configuration.

Re: Authentication stopped to work

Posted: Sun Oct 30, 2022 4:01 pm
by jogo
I already checked for the "Require all granted" permissions, but they all exist. The error message refers to "/usr/share/zoneminder" and not to "/usr/share/zoneminder/www", which confuses me. On the other hand, I am not sure if this is the cause of my login problem.

Re: Authentication stopped to work

Posted: Sun Oct 30, 2022 8:48 pm
by Taurus61
Same problem here. I was waiting for 1.36.29 because of the log problems so decided to upgrade to 1.36.30 when i get an invitation to upgrade.
After upgrade a running zoneminder everything works fine ans problems seems resolved.
Unfortunately in a new browser session i can't login anymore.
Looks like logon works:
PM GMT+1.706398 web_php[1454].INF [192.168.178.100] [Login successful for user "admin"] at /usr/share/zoneminder/www/includes/auth.php line 372
Question is what doesn't work anymore? Can't find useful error messages. ZM seems to work okay. I see al kind of messages in the logs as usual.
So a little help is also welcome over here
Thanks in advance

Re: Authentication stopped to work

Posted: Mon Oct 31, 2022 7:35 am
by jogo
This post seems to apply here: viewtopic.php?t=32122

I'll have a look at this later today.

Re: Authentication stopped to work

Posted: Mon Oct 31, 2022 12:45 pm
by tra
I have same problem with Fedora 35 with verson 1.36.30-2. I Don't have time to debug now, temporary solution just:
dnf downgrade zoneminder
But now I have older version than before running dnf update, 1.36.5

Is there any way in Fedora (dnf) I can downgrade to the version I already have and was working which was 1.36.28?

- TRa

Re: Authentication stopped to work

Posted: Mon Oct 31, 2022 2:07 pm
by jogo
There is another post about that here and it seems that the problem has already been solved. I doubt that you will we able to go back to an older version. As far as I remember the table defs of the database have also been updated, so you would have to work out the differences manually. Of course, you could also start from scratch.

Re: Authentication stopped to work

Posted: Mon Oct 31, 2022 3:16 pm
by Taurus61
Downgrading is not an option for me. Did a database update too but beside that i think the problem isn't so big.

After a couple of hours now i did a logon again. Just trying. It worked and i got the ZM interface. But logging out and in again it doesn't.
BTW ZMNINJA is working fine.

I read about the problem is already solved? Where can i read about it?

Re: Authentication stopped to work

Posted: Tue Nov 01, 2022 1:05 pm
by Taurus61
Looks like the problem is solved in 1.36.31

Re: Authentication stopped to work

Posted: Wed Nov 02, 2022 5:04 am
by jogo
You could say so, :D .

Re: Authentication stopped to work

Posted: Thu Nov 03, 2022 12:25 pm
by tra
Yeah, 1.36.31-1 is available now in Fedora 35 rpmfusion.
I did:
systemctl stop zoneminder
dnf update
zmupdate.pl
systemctl start zoneminder

and everything works again! Thanks!

--
- TRa