Authentication stopped to work

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Authentication stopped to work

Post 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?
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Authentication stopped to work

Post 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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Authentication stopped to work

Post by Magic919 »

Looks like you need to sort your Apache configuration.
-
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Authentication stopped to work

Post 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.
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Re: Authentication stopped to work

Post 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
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Authentication stopped to work

Post by jogo »

This post seems to apply here: viewtopic.php?t=32122

I'll have a look at this later today.
tra
Posts: 19
Joined: Tue Jan 10, 2017 10:56 am

Re: Authentication stopped to work

Post 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
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Authentication stopped to work

Post 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.
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Re: Authentication stopped to work

Post 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?
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Re: Authentication stopped to work

Post by Taurus61 »

Looks like the problem is solved in 1.36.31
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Authentication stopped to work

Post by jogo »

You could say so, :D .
tra
Posts: 19
Joined: Tue Jan 10, 2017 10:56 am

Re: Authentication stopped to work

Post 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
Post Reply