Domoticz from compiled sources not working

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
krzysztof
Posts: 2
Joined: Friday 26 July 2019 20:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz from compiled sources not working

Post 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
User avatar
gizmocuz
Posts: 2536
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz from compiled sources not working

Post 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 ?
Quality outlives Quantity!
krzysztof
Posts: 2
Joined: Friday 26 July 2019 20:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz from compiled sources not working

Post 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.
User avatar
gizmocuz
Posts: 2536
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz from compiled sources not working

Post by gizmocuz »

Thanks! Feel free to make a PR
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest