Page 1 of 2

After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Monday 08 January 2024 16:29
by egreg
Hi
Also the previous version downloaded from the website no longer works because it requires ssl ver 3 (on Raspbian Bullseye )
It also doesn't work on the latest version of Raspbian (Bookworm) (segmentation fault)
Does anyone have a working Domoticz Release (2023 2) on Pi Zero?
Please help ... Thanks in advance.
Greetings.

PS I dont have backup

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Tuesday 09 January 2024 14:18
by maandpi
Hi
the same problem , other raspberry also error

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Tuesday 09 January 2024 14:23
by maandpi
I also need an older version for Pi0. after yesterday's upgrade I have nothing. Can anyone help

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Wednesday 10 January 2024 12:01
by gizmocuz
Compile Domoticz yourself by following the wiki below

https://www.domoticz.com/wiki/Build_Dom ... rom_source

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Wednesday 10 January 2024 13:41
by willemd
Advice to those who are compiling from source:

I have been testing this on RPi zero:

1) be very very patient, don't interrupt, just keep it running, some processes take up to 14 hours.
2) the instructions are accurate and should be following in detail, with the following additional remarks:

a) If you are unable to get the boost library with the wget command (when I tried the website failed), then you can download the boost libraries from sourceforge instead and transfer them to the RPi. After that, just continue to follow the instructions again.
b) There is a small typo in the last line related to boost "sudo rm -Rf boost_1_81_0/" . The version should of course correspond to the version that was downloaded and installed.
c) I did not try to install OpenZwave
d) If you download and install domoticz as described in the last part of the instructions, you will get version 2024.1 and that is not what you want.

I am currently testing the commands and installation of 2023.2. Will let you know the results. In the meantime you could already start the other steps. As stated...it will take a long time.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Wednesday 10 January 2024 21:14
by willemd
willemd wrote: Wednesday 10 January 2024 13:41 Advice to those who are compiling from source:

I have been testing this on RPi zero:

1) be very very patient, don't interrupt, just keep it running, some processes take up to 14 hours.
2) the instructions are accurate and should be following in detail, with the following additional remarks:

a) If you are unable to get the boost library with the wget command (when I tried the website failed), then you can download the boost libraries from sourceforge instead and transfer them to the RPi. After that, just continue to follow the instructions again.
b) There is a small typo in the last line related to boost "sudo rm -Rf boost_1_81_0/" . The version should of course correspond to the version that was downloaded and installed.
c) I did not try to install OpenZwave
d) If you download and install domoticz as described in the last part of the instructions, you will get version 2024.1 and that is not what you want.

I am currently testing the commands and installation of 2023.2. Will let you know the results. In the meantime you could already start the other steps. As stated...it will take a long time.
Update..... it worked !!!!

So, conclusion, you need to follow the instructions up to the building of domoticz, with the additional comments made above.
Then when you get to building domoticz you need to add one extra statement to make sure you don't get the latest version 2024.1 but get version 2023.2 that still runs on RPi armv6 models like the RPi model Zero.
That extra statement is:
git reset --hard 19efd039cd5dc6a2471c08dc645418089f23e917
This statement needs to be run between "git pull" and the "cmake" command.
The long code that you see is the ID for version 2032.2 in the log that you get if you run "git log" and then look at the lines for July 21, 2023 with tag 2023.2.

So the correct statements to get Domoticz version 2032.2 compiled are:

Code: Select all

git clone https://github.com/domoticz/domoticz.git dev-domoticz
cd dev-domoticz
git pull
git reset --hard 19efd039cd5dc6a2471c08dc645418089f23e917
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make
It will take approx. 12 hours to run the "make" on the Raspberry Pi Zero, so total start to finish takes well over 24 hours.

Finally you rename the dev-domoticz folder to domoticz and you run the final statements to run domoticz at startup and then you are done.
Reboot and of you go !!!!

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Wednesday 10 January 2024 21:31
by willemd
Oh, a final note, after startup you might get the popup that a new domoticz version is available.
Don't update, of course !!!!!

To switch the popup off, go to setup, settings and the systems tab, set the "check for updates" to off.
Then you want to press "apply settings" but that might be hidden behind the popup.
Just press ctrl-minus on your PC keyboard (assuming you are connected via ssh) to make the screen smaller and the "apply settings" button will become visible.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Thursday 11 January 2024 19:23
by JeeWee2
I have had the same problem. Nice that you have worked this out, but it seems a very long process. Is there no other way of installing a previous version of Domoticz?

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Thursday 11 January 2024 20:57
by willemd
Standard download and installation of 2023.2 resulted in error (see 2024.1 announcement thread).

Compiling from source is a long but sure process. You don't have to stay next to it all the time. Just start it and check it now and again.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Saturday 13 January 2024 16:10
by JeeWee2
I started your instruction set yesterday and by accident I used today the 'boost' instruction set a second time. After that, I tried to continue with the Domoticz installation including your 'git reset --hard ' line. However, this resulted in:

pi@raspberrypi:~/dev-domoticz $ cmake -DCMAKE_BUILD_TYPE=Release CMake.....
-bash: cmake: command not found
pi@raspberrypi:~/dev-domoticz $ make
make: *** No targets specified and no makefile found. Stop

Directory Cmake-.... is still present with many files, folders and bootstrap, but I don't see Cmake itself, so I don't know what's going on. Any suggestion?

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Saturday 13 January 2024 18:21
by willemd
JeeWee2 wrote: Saturday 13 January 2024 16:10 I started your instruction set yesterday and by accident I used today the 'boost' instruction set a second time. After that, I tried to continue with the Domoticz installation including your 'git reset --hard ' line. However, this resulted in:

pi@raspberrypi:~/dev-domoticz $ cmake -DCMAKE_BUILD_TYPE=Release CMake.....
-bash: cmake: command not found
pi@raspberrypi:~/dev-domoticz $ make
make: *** No targets specified and no makefile found. Stop

Directory Cmake-.... is still present with many files, folders and bootstrap, but I don't see Cmake itself, so I don't know what's going on. Any suggestion?
Either cmake is not present or it is present but cannot be found anymore.

What do you get if you type this command:
sudo find / -name cmake -print
and also this command:
echo $PATH
and also this command:
which cmake

cmake should be in usr/local/bin and that folder should also be in your path

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Sunday 14 January 2024 10:36
by JeeWee2
First of all, sorry for my clumpsiness with the forum and raspian.
I retried to install Cmake and the Boosts libraries, with the same results during the Domoticz installation. Then I asked for:

- 'Sudo find / -name cmake -print' , this resulted in /usr/local/lib/cmake and /usr/share/cmake
- 'echo $PATH', it resulted in /usr/local/sbin: /usr/local/bin: /usr/sbin: /usr/bin: /sbin: /bin: /games: /usr/games:
- 'which cmake' : No reply

I changed the directory to /usr/local/bin and also tried /usr/local/lib to retry the cmake command, but both gave the same result 'command not found'.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Sunday 14 January 2024 11:00
by willemd
It seems you did not follow all steps to install cmake.

Try again to follow the wiki in detail.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Monday 15 January 2024 18:36
by JeeWee2
@willemd: you were right about the missing CMake/make files. I made this mistake, because I terminated PuTTY on my Windows PC not long after I gave a complete set of instructions. I didn't realize closing PuTTY also terminates any outstanding command. So today, I managed to complete the installation of the Cmake and Boost programs. Subsequently, I tried to install Domoticz according to your recipy. But 'make' terminated with a fatal error, like this:

....
[ 22%] Building CXX object CMakeFiles/domoticz.dir/main/mainworker.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/domoticz.dir/build.make:381: CMakeFiles/domoticz.dir/main/mainworker.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:384: CMakeFiles/domoticz.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
pi@raspberrypi:~/dev-domoticz $

What does it mean, what could be reason? Could some traces of previous installations be the reason?

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Monday 15 January 2024 19:49
by willemd
JeeWee2 wrote: Monday 15 January 2024 18:36 @willemd: you were right about the missing CMake/make files. I made this mistake, because I terminated PuTTY on my Windows PC not long after I gave a complete set of instructions. I didn't realize closing PuTTY also terminates any outstanding command. So today, I managed to complete the installation of the Cmake and Boost programs. Subsequently, I tried to install Domoticz according to your recipy. But 'make' terminated with a fatal error, like this:

....
[ 22%] Building CXX object CMakeFiles/domoticz.dir/main/mainworker.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/domoticz.dir/build.make:381: CMakeFiles/domoticz.dir/main/mainworker.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:384: CMakeFiles/domoticz.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
pi@raspberrypi:~/dev-domoticz $

What does it mean, what could be reason? Could some traces of previous installations be the reason?
Yes, don't close Putty and don't put your PC to sleep.

I have no clue about the error, not much info, but indeed, it is worth trying to remove previous left-overs and try again...
If really needed do it fully from scratch, but I would try moving backwards in steps.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Thursday 18 January 2024 16:28
by JeeWee2
Several attempts were not succesfull yet. I always get a 'fatal error' during the very last 'make' command, even when I completely removed the Domoticz folder and started all over again. Originally at 22% , later at 17%. Are the instructions correct ? Or could a complete new Raspian installation help me out?

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Thursday 18 January 2024 16:38
by willemd
JeeWee2 wrote: Thursday 18 January 2024 16:28 Several attempts were not succesfull yet. I always get a 'fatal error' during the very last 'make' command, even when I completely removed the Domoticz folder and started all over again. Originally at 22% , later at 17%. Are the instructions correct ? Or could a complete new Raspian installation help me out?
It is worth a try. A fresh operating system installation takes only 5 minutes or so. For the Raspberry Pi Zero the installer recommends Bullseye. I chose the one without desktop, because I don't need the desktop and just use the ssh terminal.

If you have another SD card, you could also try that as well.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Monday 22 January 2024 11:28
by Quest24
willemd wrote: Wednesday 10 January 2024 13:41 Advice to those who are compiling from source:

I have been testing this on RPi zero:

Great job Willemd.
The compilation worked flawless.
I compiled the code on a raspberry pi 4 with the same 32 bit OS. Made a copy of the SD card and then run it on the pi-Zero. This worked.

So now I can run version 2024-2 on all my pi zero's again. Great!

I use these pi-zero as remote stations, so you still have to replace all your devices on the master domoticz. You have to create new devices in the master domoticz, with allow new hardware, and then use the replace function.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Friday 26 January 2024 12:00
by lwolf
2024.3 compiled and tested with Raspberry Pi Zero W. (For latest bullseye)

Complete tar.gz published at:

https://iot.sajatfelhom.eu/domoticz/

Just for the records:
Raspberry Pi Zero W was launched in February 2017 so it is not a 12 year old hardware. And still the best hardware to run a Domoticz server.

Re: After updating on Rpi Zero, Domoticz stopped working. Please for help !!!

Posted: Sunday 28 January 2024 10:37
by JeeWee2
Success finally!! :D Thanks willemd. It took at least 6 attempts (of which 3 complete fresh installs), but only the last one did not run into fatal errors during the very last 'make' command. This is what I have done:
A. installing the bullseye version without monitor (using the Raspberry Pi imager)
B. creating 2 GB swap space
C. installing Screen to avoid the abortion of commands by sudden dropdowns in SSH connection (but actually not used)
D. using the default options of the description
E. step by step execution of the commands
F. using 'gmake' instead of 'make'.
Don't know what did the trick, but point A. (i.e. without monitor) and F. were new.