Having an issue with TVHeadend backend service that fails to run and will restart itself forever.
After digging a bit around the issue and lauching the program manually, it seems to be related to a timeout occuring during startup.
Namely TVheadend is trying to figure out "satips" and eventual throw the error
before continuing. (It runs fine after)
The problem is that this hiccup, about 2 minutes of pause, is causing systemd to think the service fails and triggers a restart.
Here is an extract from systemd logs:
Code
LibreELEC:~/.kodi/addons/service.multimedia.tvheadend/bin # journalctl -f
-- Logs begin at Sun 2016-10-09 09:06:14 CEST. --
Oct 09 10:32:29 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Main process exited, code=exited, status=1/FAILURE
Oct 09 10:32:29 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Unit entered failed state.
Oct 09 10:32:29 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Failed with result 'exit-code'.
Oct 09 10:32:31 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Service hold-off time over, scheduling restart.
Oct 09 10:32:31 LibreELEC systemd[1]: Stopped TVHeadend Service.
Oct 09 10:32:31 LibreELEC systemd[1]: Started TVHeadend Service.
Oct 09 10:32:38 LibreELEC systemd[1]: Stopping TVHeadend Service...
Oct 09 10:32:38 LibreELEC systemd[1]: Stopped TVHeadend Service.
Oct 09 10:34:20 LibreELEC systemd[1]: Reloading.
Oct 09 10:34:24 LibreELEC systemd[1]: Started TVHeadend Service.
Oct 09 10:36:32 LibreELEC tvheadend[1868]: main: Log started
Oct 09 10:36:32 LibreELEC tvheadend[1868]: satips: Unable to determine the HTTP/RTSP address
Oct 09 10:36:32 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Main process exited, code=exited, status=1/FAILURE
Oct 09 10:36:32 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Unit entered failed state.
Oct 09 10:36:32 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Failed with result 'exit-code'.
Oct 09 10:36:34 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Service hold-off time over, scheduling restart.
Oct 09 10:36:34 LibreELEC systemd[1]: Stopped TVHeadend Service.
Oct 09 10:36:34 LibreELEC systemd[1]: Started TVHeadend Service.
Oct 09 10:38:41 LibreELEC tvheadend[1901]: main: Log started
Oct 09 10:38:41 LibreELEC tvheadend[1901]: satips: Unable to determine the HTTP/RTSP address
Oct 09 10:38:41 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Main process exited, code=exited, status=1/FAILURE
Oct 09 10:38:41 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Unit entered failed state.
Oct 09 10:38:41 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Failed with result 'exit-code'.
Oct 09 10:38:43 LibreELEC systemd[1]: service.multimedia.tvheadend.service: Service hold-off time over, scheduling restart.
Oct 09 10:38:43 LibreELEC systemd[1]: Stopped TVHeadend Service.
Oct 09 10:38:43 LibreELEC systemd[1]: Started TVHeadend Service.
Display More
it'll repeat forever
Relevant version information:
Code
LibreELEC:~/.kodi/addons/service.multimedia.tvheadend/bin # tvheadend -v
tvheadend: version 4.0.9 ~ LibreELEC Tvh-addon v7.0.101
see also this thread where it seems to be exactly what is happening in my case:
Tvheadend delay during startup - Tvheadend