TVheadend server broken after May update

Really strange: I’m running tvheadend on a headless RPi2 which I installed utilizing OSMC’s app shop (quite some time ago now) having service.mediacenter disabled. I always had it running using a Windows smb share to write its recordings to (fstab).

Before upgrading to the April update I have read about the Badlock patch problems which many users ran into, but as I already had updated my other Pi’s (running OSMC for real), I just gave it a try - and my smb share still worked without problems.

So I just today updated to OSMC’s May update on my tvheadend-“server” (using VNC and OSMC itself) - and after a reboot, tvheadend won’t startup any more.

First thing I thought of was the smb share, and in deed: it was gone.

Well, got it back after some fiddling with my fstab, and dmesg doesn’t show any errors concerning cifs.

But systemctl only gives me this:

osmc@tvhead:/$ sudo systemctl status tvheadend -l
● tvheadend.service - TVHeadend Server
   Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled)
   Active: activating (start-pre) since Mo 2016-05-02 22:21:00 CEST; 3s ago
  Process: 1138 ExecStop=/usr/bin/rm /run/tvheadend.pid (code=exited, status=203/EXEC)
  Process: 1123 ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video (code=exited, status=0/SUCCESS)
 Main PID: 1126 (code=killed, signal=ABRT);         : 1142 (sleep)
   CGroup: /system.slice/tvheadend.service
           └─control
             └─1142 /bin/sleep 10

osmc@tvhead:/$ sudo systemctl status tvheadend -l
● tvheadend.service - TVHeadend Server
   Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled)
   Active: activating (start-pre) since Mo 2016-05-02 22:21:17 CEST; 2s ago
  Process: 1163 ExecStop=/usr/bin/rm /run/tvheadend.pid (code=exited, status=203/EXEC)
  Process: 1148 ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video (code=exited, status=0/SUCCESS)
 Main PID: 1151 (code=killed, signal=ABRT);         : 1167 (sleep)
   CGroup: /system.slice/tvheadend.service
           └─control
             └─1167 /bin/sleep 10

osmc@tvhead:/$ sudo systemctl status tvheadend -l
● tvheadend.service - TVHeadend Server
   Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled)
   Active: activating (auto-restart) (Result: exit-code) since Mo 2016-05-02 22:21:28 CEST; 430ms ago
  Process: 1189 ExecStop=/usr/bin/rm /run/tvheadend.pid (code=exited, status=203/EXEC)
  Process: 1173 ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video (code=exited, status=0/SUCCESS)
  Process: 1167 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
 Main PID: 1177 (code=killed, signal=ABRT)

Mai 02 22:21:28 tvhead systemd[1]: Unit tvheadend.service entered failed state.`

The service now is stuck in a 10s loop trying to come up. And I really don’t know where or for what to look further in order to find out what might has been gone wrong. I tried to use a backup of /home/osmc/.hts (automatically created on a daily basis), but to no avail.

Any suggestions anybody?

Sam helpded me figuring it out: some files inside /home/osmc/.hts must have gotten corrupted.

Luckily I had a backup from the last weekend which didn’t contain those corrupted files and now tvheadend works again.