Page 1 of 1

Domoticz won't start after latest beta

Posted: Thursday 04 April 2024 15:51
by Dave21w
Domoticz fails after update despite saying OK

pi@Domoticz:~/domoticz $ sudo ./updatebeta
Stopping Domoticz...
Making backup of current installation...
Output file: backups/domoticz_backup_20240404_140645.tar.gz
Backup finished...
Downloading latest beta version...
Checking file integrity...
Installing new version...
................................
Starting Domoticz... (please standby...)
Done...
pi@Domoticz:~/domoticz $

Web page not available and get this after query.

pi@Domoticz:~ $ systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Thu 2024-04-04 14:07:11 BST; 2min 30s ago
Docs: man:systemd-sysv-generator(8)
Process: 3312 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
CPU: 128ms

Apr 04 14:07:11 Domoticz systemd[1]: Starting domoticz.service - LSB: Home Automation System...
Apr 04 14:07:11 Domoticz domoticz.sh[3312]: Time synchronized, starting Domoticz...
Apr 04 14:07:11 Domoticz domoticz.sh[3320]: /home/pi/domoticz/domoticz: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Apr 04 14:07:11 Domoticz systemd[1]: Started domoticz.service - LSB: Home Automation System.
pi@Domoticz:~ $

Changed nothing since my last beta update to 15910

Running Bookworm x64 on rpi 3b

Any help appreciated

Re: Domoticz won't start after latest beta

Posted: Thursday 04 April 2024 18:56
by waltervl
It surprisingly worked for bookworm already for the previous update. Domoticz needs libssl1 but it is not available on bookworm.

So you have to install it manually to get Domoticz working again or switch to the docker version of Domoticz to get rid of this libssl1 obligation.
See for example https://www.domoticz.com/forum/viewtopic.php?p=315488

Re: Domoticz won't start after latest beta

Posted: Friday 05 April 2024 8:42
by Dave21w
I did read about that but as it was working previously I discounted it - Duh!
Anyway I have fixed it but not by installing libssl1 although I will be doing that now.
Here is what I did but I don't know why it worked given what I know now, first I renamed my domoticz folder to some thing different then created a new domoticz folder and extracted the complete backup that gets done before an update into that folder - that also didn't work so i renamed that folder as well then did a complete fresh domoticz install from cmd line, once completed I copied the contents of the restored backup over top of anything in that folder and then it was fine - very weird.
Given what you have told me the even more strange thing is that during the install I definitely remember the script checking for libssl1 and it saying it present and OK. I certainly haven't installed it manually since my bookworm install, this is only my test pi so any issues are not a major problem but thanks for your response @waltervl

Edit - quick update.
So I tried
sudo apt install libssl1.1
and it says already installed so this just confuses me more, I didn't install it and as it is present it also doesn't explain why it failed in the first place.

Re: Domoticz won't start after latest beta

Posted: Friday 05 April 2024 10:25
by waltervl
In the install script there is now an libssl1 install action so it will update the system during install. This action should not be needed on updates.
If I google on this it is not the best solution to do but it seems to do the trick for now.