Build 2021.1 Domoticz From Source - Crash
Posted: Wednesday 16 June 2021 16:50
Hello,
I currently run a Domoticz 2020.2 version on RPI3+ (Buster) perfectly. It was built from the sources.
I intended to upgrade to version 2021.1 recently by compiling again from the sources.
I ran successfully the upgrade process until the end, cleared the web browser cache and noticed that Domoticz crashes.
Here is the sequence of operations I went through successfully:
1 - sudo apt-get install make gcc g++ libssl-dev git libcurl4-gnutls-dev libusb-dev libsqlite3-dev python3-dev zlib1g-dev libcereal-dev liblua5.3-dev uthash-dev
2 - sudo apt remove --purge --auto-remove cmake
3 - wget https://github.com/Kitware/CMake/releas ... 9.3.tar.gz
tar -xzvf cmake-3.19.3.tar.gz
rm cmake-3.19.3.tar.gz
cd cmake-3.19.3
./bootstrap
make
sudo make install
cd ..
rm -Rf cmake-3.19.3"
4 cmake --version
5 sudo apt remove --purge --auto-remove libboost-dev libboost-thread-dev libboost-system-dev libboost-atomic-dev libboost-regex-dev libboost-chrono-dev
6 sudo service domoticz stop
7 mkdir boost
cd boost
wget https://boostorg.jfrog.io/artifactory/m ... 6_0.tar.gz
tar xfz boost_1_76_0.tar.gz
cd boost_1_76_0/
./bootstrap.sh
./b2 stage threading=multi link=static --with-thread --with-system
sudo ./b2 install threading=multi link=static --with-thread --with-system
cd ../../
sudo rm -Rf boost/"
8 cd DEV20200309
9 cd open-zwave-read-only
10 git pull
11 make
12 sudo make install
13 cd ..
14 git clone https://github.com/domoticz/domoticz.git dev-domoticz
15 cd dev-domoticz
16 git pull
17 cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
18 free -htl
19 make -j1 1>make.log 2>make.error
20 sudo rsync -I /home/pi/DEV20200309/dev-domoticz/domoticz /home/pi/domoticz/"
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/www/ /home/pi/domoticz/www
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/dzVents/ /home/pi/domoticz/dzVents
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/Config/ /home/pi/domoticz/Config
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/scripts/ /home/pi/domoticz/scripts
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/plugins/ /home/pi/domoticz/plugins
sudo rsync -I /home/pi/DEV20200309/dev-domoticz/History.txt /home/pi/domoticz/
sudo rsync -I /home/pi/DEV20200309/dev-domoticz/License.txt /home/pi/domoticz/"
Some findings I made:
In step 17 - cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt I noticed the following point in the log :
"Could not find a package configuration file provided by "cJSON" with any of the following names:
cJSONConfig.cmake
cjson-config.cmake
Add the installation prefix of "cJSON" to CMAKE_PREFIX_PATH or set
"cJSON_DIR" to a directory containing one of the above files. If "cJSON"
provides a separate development package or SDK, be sure it has been
installed."
I did not add the installation prefix of "cJSON" but no error occured in the generation of domoticz.
At run time the Developer View in the Google Web Browser shows errors when displaying the domoticz Dashboard:
in the file angular-websocket.js line 127 : me.$$ws = new WebSocket(cfg.url, cfg.protocols);
angular-websocket.js:127 WebSocket connection to 'ws://192.168.0.24:8080/json' failed:
me.$$init @ angular-websocket.js:127
me.$open @ angular-websocket.js:255
(anonymous) @ angular-websocket.js:170
custom.js:1903
I have also attached the domoticz_crash file.
I would be grateful to know if someone managed to build domoticz 2021.1 version from the sources and share the process with me.
Many thanks in advance
BR
Meal
I currently run a Domoticz 2020.2 version on RPI3+ (Buster) perfectly. It was built from the sources.
I intended to upgrade to version 2021.1 recently by compiling again from the sources.
I ran successfully the upgrade process until the end, cleared the web browser cache and noticed that Domoticz crashes.
Here is the sequence of operations I went through successfully:
1 - sudo apt-get install make gcc g++ libssl-dev git libcurl4-gnutls-dev libusb-dev libsqlite3-dev python3-dev zlib1g-dev libcereal-dev liblua5.3-dev uthash-dev
2 - sudo apt remove --purge --auto-remove cmake
3 - wget https://github.com/Kitware/CMake/releas ... 9.3.tar.gz
tar -xzvf cmake-3.19.3.tar.gz
rm cmake-3.19.3.tar.gz
cd cmake-3.19.3
./bootstrap
make
sudo make install
cd ..
rm -Rf cmake-3.19.3"
4 cmake --version
5 sudo apt remove --purge --auto-remove libboost-dev libboost-thread-dev libboost-system-dev libboost-atomic-dev libboost-regex-dev libboost-chrono-dev
6 sudo service domoticz stop
7 mkdir boost
cd boost
wget https://boostorg.jfrog.io/artifactory/m ... 6_0.tar.gz
tar xfz boost_1_76_0.tar.gz
cd boost_1_76_0/
./bootstrap.sh
./b2 stage threading=multi link=static --with-thread --with-system
sudo ./b2 install threading=multi link=static --with-thread --with-system
cd ../../
sudo rm -Rf boost/"
8 cd DEV20200309
9 cd open-zwave-read-only
10 git pull
11 make
12 sudo make install
13 cd ..
14 git clone https://github.com/domoticz/domoticz.git dev-domoticz
15 cd dev-domoticz
16 git pull
17 cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
18 free -htl
19 make -j1 1>make.log 2>make.error
20 sudo rsync -I /home/pi/DEV20200309/dev-domoticz/domoticz /home/pi/domoticz/"
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/www/ /home/pi/domoticz/www
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/dzVents/ /home/pi/domoticz/dzVents
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/Config/ /home/pi/domoticz/Config
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/scripts/ /home/pi/domoticz/scripts
sudo rsync -rI /home/pi/DEV20200309/dev-domoticz/plugins/ /home/pi/domoticz/plugins
sudo rsync -I /home/pi/DEV20200309/dev-domoticz/History.txt /home/pi/domoticz/
sudo rsync -I /home/pi/DEV20200309/dev-domoticz/License.txt /home/pi/domoticz/"
Some findings I made:
In step 17 - cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt I noticed the following point in the log :
"Could not find a package configuration file provided by "cJSON" with any of the following names:
cJSONConfig.cmake
cjson-config.cmake
Add the installation prefix of "cJSON" to CMAKE_PREFIX_PATH or set
"cJSON_DIR" to a directory containing one of the above files. If "cJSON"
provides a separate development package or SDK, be sure it has been
installed."
I did not add the installation prefix of "cJSON" but no error occured in the generation of domoticz.
At run time the Developer View in the Google Web Browser shows errors when displaying the domoticz Dashboard:
in the file angular-websocket.js line 127 : me.$$ws = new WebSocket(cfg.url, cfg.protocols);
angular-websocket.js:127 WebSocket connection to 'ws://192.168.0.24:8080/json' failed:
me.$$init @ angular-websocket.js:127
me.$open @ angular-websocket.js:255
(anonymous) @ angular-websocket.js:170
custom.js:1903
I have also attached the domoticz_crash file.
I would be grateful to know if someone managed to build domoticz 2021.1 version from the sources and share the process with me.
Many thanks in advance
BR
Meal