Pi4, headless, Domoticz 2024.4, 3 docker containers for Domoticz, MQTT and Zwavejs-UI
System is running well.
I followed the procedures on:
https://zigbeefordomoticz.github.io/wik ... ocker.html and
https://zigbeefordomoticz.github.io/wik ... tings.html
I have several troubles and I have a problem seeing what is in fact cause and was is effect.
But I think the first one to solve is this, what I find in the domoticz logfile:
My docker-compose.yml on /opt/domoticz contains:2024-02-07 19:50:16.514 Error: Z4D-ConBee3: (Zigate) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/Domoticz-Zigbee/:/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'.
volumes:
- ./config:/opt/domoticz/userdata
which, as far as I understand, means:
/opt/domoticz/config on the host is mapped on:
/opt/domoticz/userdata in the docker container
Apart from "config maps to userdata", the further directory tree is the same.
See:
The path: /opt/domoticz/userdata/plugins/Domoticz-Zigbee/ definitely exists, with plugin.py in it.rpi4@raspi4:~ $ ls -al /opt/domoticz/config/plugins/Domoticz-Zigbee/plugin.py
-rwxr-xr-x 1 root root 75218 Feb 6 21:08 /opt/domoticz/config/plugins/Domoticz-Zigbee/plugin.py
rpi4@raspi4:~ $ docker exec -it domoticz sh
# ls -al /opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py
-rwxr-xr-x 1 root root 75218 Feb 6 21:08 /opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py
The plugin.py has execute permission.
In docker-speak this path exists. But, of course, in host-speak (in the domoticz.log file) indeed it doesn't exist.
To me this is pretty confusing, but it is now also confusing for the Pi?
What is wrong here?
Furthermore I found this (already earlier) in the domoticz logfile:
Indeed, regardless of the previous discussion on config vs userdata, the path exists, there are files in it, but this file is simply not present!2024-02-07 12:52:17.892 Error: Z4D-ConBee3: Cannot access path: /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Conf/PluginConf.txt
Any thoughts?