I've searched the forum, and the web, and have not found any related topic.
The default userdata location for Domoticz on OpenWrt is '/var/lib/domoticz/'. Since that filesystem is volatile, all my hardware and devices configured in Domoticz are lost after a reboot. So, I changed the path for userdata in /etc/config/domoticz by commenting out the default and adding a persistent path:
# option userdata '/var/lib/domoticz/'
option userdata '/mnt/share/storage/domoticz/'
But now, 'service domoticz start' cause Domoticz to go into a crash loop:
Fri Aug 2 13:56:11 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 13:56:11 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 13:56:17 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 13:56:17 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 13:56:22 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 13:56:22 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 13:56:28 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 13:56:28 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 13:56:33 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 13:56:33 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 13:56:39 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 13:56:39 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 13:56:39 2024 daemon.info procd: Instance domoticz::instance1 s in a crash loop 6 crashes, 1 seconds since last crash
Fri Aug 2 15:07:22 2024 daemon.info domoticz: Domoticz is starting up....
Fri Aug 2 15:07:22 2024 daemon.info domoticz: Domoticz running...
Fri Aug 2 15:07:22 2024 daemon.info procd: Instance domoticz::instance1 s in a crash loop 7 crashes, 0 seconds since last crash
I don't find any 'domoticz_crash.log' files anywhere on the system.
I have allowed '/etc/init.d/domoticz' to create the userdata directory structure which also changes ownership of the userdata directory:
ls -l /mnt/share/storage/
drwxrwx--- 2 domoticz domoticz 4096 Aug 2 11:06 domoticz
ls -l /mnt/share/storage/domoticz/
lrwxrwxrwx 1 root root 21 Aug 2 11:06 plugins -> /etc/domoticz/plugins
lrwxrwxrwx 1 root root 21 Aug 2 11:06 scripts -> /etc/domoticz/scripts
If I invoke 'domoticz' directly from the command line, it runs without any apparent error, but images and/or CSS files don't load in the web interface at port 8080. (And it creates a 'plugins' directory in '/usr/bin' for some reason.)
Is there a "correct" way to make Domoticz userdata persistent?
Netgear WNDR4300
OPENWRT_BOARD="ath79/nand"
OPENWRT_ARCH="mips_24kc"
OPENWRT_RELEASE="OpenWrt 22.03.5 r20134-5f15225c1e"