packages icon indicating copy to clipboard operation
packages copied to clipboard

domoticz package does not start in 23.05.0

Open rolandvans opened this issue 1 year ago • 10 comments

domoticz package does not work in 23.05.0

It will not start because the Python version 3.11 is not supported and this is the default Python version in 23.05.0. Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.

Changing the file 990-python3.10_fix.patch, replacing "python3.10" with "python3.11"

#else
+				if (!shared_lib_) FindLibrary("python3.11", true);
 				if (!shared_lib_) FindLibrary("python3.9", true);
 				if (!shared_lib_) FindLibrary("python3.8", true);
 				if (!shared_lib_) FindLibrary("python3.7", true);
@@ -198,6 +192,9 @@ namespace Plugins {
...

Fixes the status message, but domoticz does not start properly on boot. Manually starting domoticz does work: domoticz -sslwww 0 -approot /usr/share/domoticz/ -noupdates -userdata /var/lib/domoticz -syslog -daemon

rolandvans avatar Oct 21 '23 09:10 rolandvans

Ping maintainer @dwmw2 about this issue.

BKPepe avatar Oct 21 '23 12:10 BKPepe

No response from the maintainer until now

rolandvans avatar Nov 08 '23 07:11 rolandvans

Try make symlink for libpython3.11.so and libpython3.11.a to libpython3.9.so and libpython3.9.a This working for me ;-)

WLKe001 avatar Nov 14 '23 12:11 WLKe001

Try make symlink for libpython3.11.so and libpython3.11.a to libpython3.9.so and libpython3.9.a This working for me ;-)

That trick solves the libpython part, but in my setup, it still does not start on boot. Syslog shows this message: Fri Nov 17 07:00:40 2023 daemon.notice procd: /etc/rc.d/S95done: Command failed: ubus call service delete { "name": "domoticz" } (Not found) Starting it manually does work. Any idea what could be the problem here?

rolandvans avatar Nov 17 '23 12:11 rolandvans

PIng @dwmw2.

Let's ping previous contributors, who was interested in it as well - @lucize, @stintel.

BKPepe avatar Nov 24 '23 11:11 BKPepe

Apologies for the delayed response. I've updated to 2023.2 on the master branch, will look at backporting just the libpython3.11 fix to stable, once I've got local builds of 23.05 actually working on my hardware.

Not sure about @rolandvans's issue with it not starting though. That seems to be something different.

dwmw2 avatar Nov 29 '23 12:11 dwmw2

@rolandvans Could your other startup issue be caused by https://github.com/openwrt/openwrt/issues/9545 ?

dwmw2 avatar Dec 01 '23 12:12 dwmw2

@rolandvans Could your other startup issue be caused by openwrt/openwrt#9545 ?

If I am the only one affected, it must be something related to my setup. For you it all runs smoothly after the 'python' fix? Then I will check the link and see what I can do.

rolandvans avatar Dec 01 '23 13:12 rolandvans

For me it ran smoothly anyway; I don't use python plugins. But yes, the update should fix python.

dwmw2 avatar Dec 05 '23 17:12 dwmw2

Sorry to be late to the party. I just upgraded openwrt on my Zyxel NSA325 (Kirkwood) to 23.05.3 and experience the very same behaviour. Only manual start is possible.

rumburak001 avatar Mar 28 '24 13:03 rumburak001