CvH : I've posed a question on another board thread-5519-post-36819.html#pid36819 that has broken the TVHeadend42 server under LE8. I was directed here (to you) via the #hts irc.
I have installed LE8 and TVHE42 on a RPi 2 microsd (8GB). It is working excellently - but I wanted to move the storage to a 32 GB Sandisk USB flash drive attached to the same device. This disk has the label TV-201702. So I did the following:
# systemctl stop kodi
# rsync -rtv /storage/ /var/media/TV-201702/
# mount -o remount,rw /flash
# nano /flash/cmdline.txt
boot=/dev/mmcblk0p1 disk=LABEL=TV-201702 quiet
Saved the file (ctrl-x y enter).
# mount -o remount,ro /flash
# reboot
LE8 started as normal, Kodi started as normal, checking df shows that the storage was moved to /dev/sda1. But the TVHE42 server did not start.
I've spent some time trying to resolve this. I tried to set up the system via cmdline.txt to point to /dev/sda1 (instead of LABEL=TV-201702). I checked the PATH and HOME environment - they are OK. I've gone through /etc/profile and /etc/profile.d/ to see if there is any issue there. I've also gone through the script /storage/.kodi/addons/service.tvheadend42/bin/tvheadend42.start to see if I could find anything. I tried to manually start tvheadend but no success. Oddly there is not much if anything reported in the logs, from what I can see. However when starting from command line I get the following:
2017-02-27 17:03:34.256 [ INFO] htsp: Got connection from 192.168.1.3
2017-02-27 17:03:34.258 [ INFO] htsp: 192.168.1.3: Welcomed client software: Kodi Media Center (HTSPv25)
2017-02-27 17:03:34.259 [ INFO] htsp: 192.168.1.3 [ Kodi Media Center ]: Unauthorized access
2017-02-27 17:03:39.260 [ INFO] htsp: 192.168.1.3 [ Kodi Media Center ]: Disconnected
2017-02-27 17:03:39.262 [ INFO] htsp: Got connection from 192.168.1.3
2017-02-27 17:03:39.262 [ INFO] htsp: 192.168.1.3: Welcomed client software: Kodi Media Center (HTSPv25)
2017-02-27 17:03:39.264 [ INFO] htsp: 192.168.1.3 [ Kodi Media Center ]: Unauthorized access
and so on ...
I have been working with Linux systems for some years but the LibreElec (presumed derivative of OpenElec/BusyBox) architecture is new to me - I don't understand the init system - perhaps this is where the problem lay, I don't know.
In any case I redirected cmdline.txt back to the microsd and the system is working as before. Any ideas as to why moving storage would break the TVHE42 server?