Page 1 of 1

Old domoticz stopped working without being updated (GLIBC / OpenSSL errors)

Posted: Wednesday 17 April 2024 14:21
by apokalipse
Hello,

I have an old version of Domoticz (from around 2019) that was running without problems but today it stops running without having made any changes.

You will probably tell me to upgrade and I will look at it but I need to make domoticz run until I can do it (and I have read it is difficult with the end of openzwave).

I'm running on a rasperry pi 3 with Raspbian stretch

Code: Select all

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
Here's the error log when starting domoticz, it tells me that some librairies are not at the good versions :

Code: Select all

/home/pi/domoticz/domoticz -version
/home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /home/pi/domoticz/domoticz)
/home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/pi/domoticz/domoticz)
/home/pi/domoticz/domoticz: /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/pi/domoticz/domoticz)

Code: Select all

sudo service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
   Active: active (exited) since Wed 2024-04-17 12:58:30 CEST; 1h 19min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1319 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
  Process: 1362 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/domoticz.service
   
avril 17 12:58:30 raspberrypi systemd[1]: Starting LSB: Home Automation System...
avril 17 12:58:30 raspberrypi domoticz.sh[1362]: /home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /home/pi/domoticz/domoticz)
avril 17 12:58:30 raspberrypi domoticz.sh[1362]: /home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/pi/domoticz/domoticz)
avril 17 12:58:30 raspberrypi domoticz.sh[1362]: /home/pi/domoticz/domoticz: /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/pi/domoticz/domoticz)
avril 17 12:58:30 raspberrypi systemd[1]: Started LSB: Home Automation System.
This problem appeared today without I did anything on the pi nor domoticz for weeks.

When I look into the forums, I see many topics about this kind of problem after an update of domoticz but I didn't updated anything.

Any idea ?
Thank you.

Re: Old domoticz stop working without having update

Posted: Wednesday 17 April 2024 14:40
by jvdz
what does the domoticz log show you when this happens?

Re: Old domoticz stop working without having update

Posted: Wednesday 17 April 2024 15:48
by apokalipse
Hello, thanks for the answer !

Code: Select all

-rw-------   1 root root  21K févr. 29 20:24 domoticz_crash.log
Nothing new in this file

Code: Select all

pi@raspberrypi:~/domoticz $ cat domoticz.sh
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
No file /tmp/domoticz.txt

Code: Select all

sudo tail /var/log/syslog

Apr 17 15:44:26 raspberrypi systemd[1]: Starting LSB: Home Automation System...
Apr 17 15:44:26 raspberrypi domoticz.sh[3270]: /home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /home/pi/domoticz/domoticz)
Apr 17 15:44:26 raspberrypi domoticz.sh[3270]: /home/pi/domoticz/domoticz: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/pi/domoticz/domoticz)
Apr 17 15:44:26 raspberrypi domoticz.sh[3270]: /home/pi/domoticz/domoticz: /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/pi/domoticz/domoticz)
Apr 17 15:44:26 raspberrypi systemd[1]: Started LSB: Home Automation System.

Code: Select all

pi@raspberrypi:~/domoticz $ ./domoticz -www 8080 -sslwww 443 -log "/var/log/domoticz.log" -loglevel all -debuglevel normal,auth,hardware,received,webserver,eventsystem,python,thread_id
./domoticz: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by ./domoticz)
./domoticz: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by ./domoticz)
./domoticz: /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by ./domoticz)
pi@raspberrypi:~/domoticz $ cat /var/log/domoticz.log
cat: /var/log/domoticz.log: Aucun fichier ou dossier de ce type

Code: Select all

sudo sqlite3 domoticz.db  'SELECT name as Tablename ,SUM("pgsize")/4096 Size FROM "dbstat" WHERE name IN (SELECT name FROM "sqlite_master" WHERE type == "table" ) GROUP BY name HAVING Size > 10 ORDER BY size DESC;'
LightingLog|573
Temperature_Calendar|276
Percentage_Calendar|126
MultiMeter_Calendar|109
Floorplans|54
EventMaster|38
Temperature|32
Meter|18
UV_Calendar|18
Wind_Calendar|17
Percentage|16
CustomImages|15
Meter_Calendar|12
Rain_Calendar|11

Not sure where I can find the logs I can see on the website when domoticz is running

Re: Old domoticz stop working without having update

Posted: Wednesday 17 April 2024 15:57
by jvdz
apokalipse wrote: Wednesday 17 April 2024 15:48 Hello, thanks for the answer !

-rw------- 1 root root 21K févr. 29 20:24 domoticz_crash.log
Nothing new in this file

pi@raspberrypi:~/domoticz $ cat domoticz.sh
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"

No file /tmp/domoticz.txt
That makes sense, as the line in your domoticz.sh is commented. Change it to this and the log will be created:

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"

Re: Old domoticz stop working without having update

Posted: Wednesday 17 April 2024 16:05
by apokalipse

Code: Select all

pi@raspberrypi:~/domoticz $ head -n30 domoticz.sh

DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"

pi@raspberrypi:~/domoticz $ sudo scripts/restart_domoticz
please standby... (waiting 8 seconds)

pi@raspberrypi:~/domoticz $ cat /tmp/domoticz.txt
cat: /tmp/domoticz.txt: Aucun fichier ou dossier de ce type

Re: Old domoticz stop working without having update

Posted: Wednesday 17 April 2024 16:34
by jvdz
Ok, i now also see that you have ran domoticz interactively and the shown message are all the info you will get.
(sorry for not seeing that earlier.)

Something much have changed, but have no idea how something like this could suddenly happen without having done any install/uninstall on the PI.

Re: Old domoticz stop working without having update

Posted: Wednesday 17 April 2024 21:08
by apokalipse
I have another Domoticz running on the same stack as the first (same pi, same os, same domoticz version).
I tried to grab the domoticz file from the other pi to the first and Domoticz did start without error but the website is empty : I do not see devices, hardware, configuration at all. I have some logs related to zwave but that's all. So I tried to upload again the domoticz.db and also a 10days backup but there is nothing more showing on the site. I don't understand :(

Re: Old domoticz stopped working without being updated

Posted: Wednesday 17 April 2024 21:29
by apokalipse
Another thing I notice : there is many files where the date is 5th january :
in Conf, in www... ex :

Code: Select all

/domoticz/Config $ ls -lah
total 1,3M
drwxr-xr-x 122 pi   pi   4,0K avril 17 20:47 .
drwxr-xr-x   8 pi   pi   4,0K avril 17 21:00 ..
drwxr-xr-x   2 pi   pi   4,0K janv.  5 11:34 2gig
drwxr-xr-x   2 pi   pi   4,0K janv.  5 11:34 abus
drwxr-xr-x   2 pi   pi   4,0K janv.  5 11:34 act
drwxr-xr-x   2 pi   pi   4,0K janv.  5 11:34 aeotec
So my questions are :
Is there any automatic update in Domoticz ?
Is this possible my parents ran an update without telling me ?

Domoticz has stop working only this morning (17th april).

Re: Old domoticz stopped working without being updated (GLIBC / OpenSSL errors)

Posted: Thursday 18 April 2024 10:02
by gizmocuz
No there is no automatic update in Domoticz, you have to do this by hand either by going to Setup->Check for Updates
Or run ./updatebeta or ./updaterelease from within the installation folder

In the settings is a option to check for updates. When this is enabled, you will always get a notification when there is a update.
Maybe someone clicked on this update and performed the update

Since you use a raspberry pi 3, i suggest to:

a) try to install libssl1.1 by issueing
sudo apt install libssl1.1

if that aint working:

- make a backup of your domoticz folder (and for sure the database)
- update your system, as it is very old, maybe install a fresh raspbian
- install or update to the latest domoticz version, if it is a new setup, use the bash command or install in a docker compose enviroment,
if it is not a new setup, issue ./updaterelease or ./updatebeta to go to the latest version
- if it is a new setup, restore the database

Re: Old domoticz stopped working without being updated (GLIBC / OpenSSL errors)

Posted: Monday 22 April 2024 18:39
by PierreT
Definitely must have had an update. Glibc in Stretch does not go beyond 2.24 but the error shows that the current installed Domoticz wants at least version 2.28.