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

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
egreg
Posts: 1
Joined: Monday 08 January 2024 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
maandpi
Posts: 2
Joined: Tuesday 09 January 2024 12:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by maandpi »

Hi
the same problem , other raspberry also error
maandpi
Posts: 2
Joined: Tuesday 09 January 2024 12:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by maandpi »

I also need an older version for Pi0. after yesterday's upgrade I have nothing. Can anyone help
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post by gizmocuz »

Compile Domoticz yourself by following the wiki below

https://www.domoticz.com/wiki/Build_Dom ... rom_source
Quality outlives Quantity!
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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.
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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 !!!!
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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.
JeeWee2
Posts: 7
Joined: Saturday 03 March 2018 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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.
JeeWee2
Posts: 7
Joined: Saturday 03 March 2018 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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
JeeWee2
Posts: 7
Joined: Saturday 03 March 2018 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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'.
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post by willemd »

It seems you did not follow all steps to install cmake.

Try again to follow the wiki in detail.
JeeWee2
Posts: 7
Joined: Saturday 03 March 2018 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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.
JeeWee2
Posts: 7
Joined: Saturday 03 March 2018 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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.
Quest24
Posts: 7
Joined: Tuesday 17 November 2020 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024-2
Contact:

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

Post 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.
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

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

Post 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.
JeeWee2
Posts: 7
Joined: Saturday 03 March 2018 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

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

Who is online

Users browsing this forum: No registered users and 0 guests