Page 1 of 1
unable to login after update
Posted: Friday 01 March 2024 15:47
by hyeronimo
After updating with sudo ./updatebeta (web update did not work) I cannot log in any more.
I tried the sudo ./domoticz -nowwwpwd and the resetpwd methods, clearing browser cache every time, but no luck: it comes with the login screen every time.
I also tried reinstalling every backup I have but that also did not allow me to log in (tried the stored pass and the default).
I have a lot tied into this system so starting from scratch would be an awful lot of work.
Any ideas?
Best regards,
Jeroen
Re: unable to login after update
Posted: Friday 01 March 2024 16:02
by waltervl
You can try to use a different browser eg Firefox instead of Chrome/Edge.
Also be sure you go to the right address https or http and correct port. Some browsers tend to go to https by default.
Re: unable to login after update
Posted: Friday 01 March 2024 16:26
by hyeronimo
Thx Walter,
tried that, I keep getting the login screen. Also it seems very hard to stop the domoticz service.
it is in a sort of loop:
CGroup: /system.slice/domoticz.service
└─805 /home/pi/domoticz/domoticz -daemonname domoticz -pidfile /var/run/domoticz.pid -www 8080 -sslwww 443 -sslcert /home/pi/domoticz/letsencrypt_server_cert.pem
Mar 01 16:37:25 raspberrypi domoticz.sh[805]: 2024-03-01 16:37:25.670 Error: No (active) users in the system! There should be at least 1 active Admin user!
the last line keeps repeating
Re: unable to login after update
Posted: Saturday 02 March 2024 10:13
by hyeronimo
Ok after some experiments I found the following:
The update causes domoticz to enter a loop with this ' no active user' message. This makes it impossible to stop domoticz or even reinstall a backup. I had to stop it by editing the domoticz.sh file and rebooting the Pi. Now I have reinstalled a backup from 2023, but I still cannot login and the system is still in the same loop as described above. Any ideas please?
Re: unable to login after update
Posted: Tuesday 05 March 2024 9:31
by hyeronimo
Ok, I managed to partially restore my system with an old full backup from six months ago, getting a 'daily' backups file and an update to beta. The remaining problem is that Zigbeefordomoticz is not working any more, which I will post in another thread. It seems domoticz used to do regular backups automatically and on every update but hasn't done so for over half a year. Is that a bug or am I missing something?
Re: unable to login after update
Posted: Tuesday 05 March 2024 10:32
by Kedi
Check with a sqlite browser / editor if in table "Users" at least 1 user is present. If so make that user active by putting a 1 in field 'Active'
I think field "Rights" should be set at 2 for admin user.
if that does not work:
Download the initial startup file from
https://github.com/domoticz/domoticz/bl ... omoticz.sh
Remove the /etc/init.d/domoticz.sh and reboot the system, after the reboot check that domoticz is NOT running.
Copy the initial startup file (domoticz.sh) to /etc/init.d and make minimal adjustments to the file.
And start domoticz by that file or a reboot.
Re: unable to login after update
Posted: Thursday 07 March 2024 13:10
by hyeronimo
Thanks Kedi, I will keep that in mind if this happens again. In the meantime, I will take regular backups..
Re: unable to login after update
Posted: Saturday 20 April 2024 13:42
by Frans46
I just tried to install domoticz after tegistration.
However I cannot any further than the login screen
Re: unable to login after update
Posted: Monday 22 April 2024 12:20
by gizmocuz
When installing, domoticz username/password is admin/domoticz
If you lost your password, have a look at our wiki how to resolve this