TVHeadend Service Crashing Regularly on Ubuntu Server 32bit
Added by Hush Pup over 2 years ago
Howdy folks,
I have been running an old Netbook as a PVR server on Ubuntu Server 18.04.3 for a couple of years without too much trouble, but lately I seem to have issues with the TVHeadend service crashing for no particular reason, and my WebUI is no longer accessible. This seemed to start after I performed some updates around a month ago, and it has continued since, around once a day. Running TVHeadend manually doesn't seem to bring it up (instead I get an error about the port being in use). My hardware is OK, replaced the hard drive last year.
Before I dig deeper, has anyone else had a similar issue? For now I am resorting to rebooting once a day.
Replies (1)
RE: TVHeadend Service Crashing Regularly on Ubuntu Server 32bit - Added by Hiro Protagonist over 2 years ago
Can you correlate the crash to any particular event?
I had a problem a year or three back, when I moved TVH to new hardware. It began crashing whenever a client connected. Moved it back to the old hardware - same result.
I ended up renaming the tvheadend directory and letting it start up clean - this didn't crash. Then I'd shut it down, mv the old directories into the new tvheadend dir one at a time until I isolated the problem to the dvr/log directory. Then I did a binary search by deleting half the log entries [I had a backup copy of course], restart TVH, delete half the remaining entries, repeat, until it stopped crashing. By this process I was able to reasonably quickly narrow the problem down to a handful of entries [all from 1 channel] that had a very large 'duration' value. It seems TVH was fine writing this to disk, but hit an abort() when reading it. I guess it was serving that data to clients from memory until I shut it down to switch to different hardware.
HTH