Wrong permissions for tvheadend.
Raspberry Pi 3B, Alpine linux version 3.9.5 (alpine-rpi-3.9.5 200123) in diskless mode. An older version of alpine was needed in order to use the TV-specific hardware (Raspberry Pi TV-Hat).
According to its APKBUILD, the package tvheadend installs config files in
/etc/tvheadend. Immediately after installation this directory belongs to
tvheadend:tvheadend, even if
tvheadendgroup is never created.
/etc/init.d/tvheadend, the package tvheadend-openrc runs the daemon by using the user
tvheadend:video. Accordingly after the first run of the software the contents of
After the installation and configuration, and after a reboot of the system the directory
root:root, while its contents belong to
tvheadend:video. This causes the software to malfunction with
START: configuration path /etc/tvheadend is not r/w for UID:101 GID:27 [e=Permission denied], settings will not be saved
I am not sure if points  and  are connected. In any case, I think
/etc/tvheadend should belong to
tvheadend:video by default to be consistent with point .
Regarding point , the problem could be fixed by changing ownership to
/etc/tvheadend and by performing an
lbu ci -d. I do not understand why the directory belongs to
root:root after first reboot even if all configuration is correctly saved by
lbu ci -d.