Page 1 of 1

Domoticz from compiled sources not working

Posted: Friday 13 October 2023 20:31
by krzysztof
Since several years I'm using domoticz on my RPi, but for now I've used version downloaded from internet. Now I'm decided to compile it from sources to check if I can fix some bug. I've fallow this procedure: https://www.domoticz.com/wiki/Build_Dom ... rom_source
Compilation was successful. But when I run it with clean sqlite database there is no error in logs, but website shows 400 Bad Request. When I run it with my database (with a lot of sensors and plugins), there are such errors:
Oct 13 19:37:20 raspberrypi domoticz[1077943]: 2023-10-13 19:37:20.562 #033[1;31mError: Fronius: (Fronius) failed to load 'plugin.py', Python Path used was ':/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.#033[0;0m

Note that on my regular domoticz this plugins working fine.

Do you have idea what I've done wrong during compilation?

Some technical info:
  • I'm doing compilation on RPi4 (Bullseye arm64)
  • I've didn't install cmake from sources, because I already have cmake version 3.18.4
  • I've build Boost Libraries as described in instruction
  • No OpenZWave, so I've skip this part
  • I've used master branch (not development) to compile, because I have 2023.2, so I didn't want to change my SQLIte database
  • After compilation domoticz has 14MB, but downloaded has 15-16MB (probably because of OpenZWave)
  • I'm starting domoticz like this:
    cd /home/pi/domoticz
    /home/pi/dev-domoticz/bin/domoticz -www 80 -sslwww 443 -dbase /var/lib/domoticz/domoticz.db
    So I'm using www folder from my main installation. I've also try to change my domoticz.service file to run it using systemctl (also without success)
  • I've also tried differend command without success:
    /home/pi/dev-domoticz/bin/domoticz -www 8080 -sslwww 8443 -dbase /home/domoticz/dev/domoticz.db

Re: Domoticz from compiled sources not working

Posted: Saturday 14 October 2023 15:35
by gizmocuz
No idea how you run it, but for sure this guide is correct and working
It will generate a domoticz executable
It could be that this executable is inside the 'bin' folder, move it one directory higher
now you should be able to launch it with
./domoticz

Or move this binary to your normal install folder.
Make sure the install folder is also up-to-date.

Why don't you use the binary versions or the docker compose ?

Re: Domoticz from compiled sources not working

Posted: Saturday 14 October 2023 19:48
by krzysztof
Thanks, copy it to regular folder helped.
I'll try to see if I'll be able to fix bug I've noticed some time ago: https://github.com/domoticz/domoticz/issues/5630
I've also frustrated such messages in my log (there is something around 60 messages in the same second):
Oct 14 14:32:11 raspberrypi domoticz[1080951]: 2023-10-14 14:32:11.560 Status: [web:80] Incoming connection from: 192.168.4.52
Oct 14 14:32:11 raspberrypi domoticz[1080951]: 2023-10-14 14:32:11.670 Status: [web:80] Incoming connection from: 192.168.4.52
This bug is since new 2023.2. Do not know if someone already reported it. If not, I'll look what causing this log spam.

Re: Domoticz from compiled sources not working

Posted: Sunday 15 October 2023 14:30
by gizmocuz
Thanks! Feel free to make a PR