Tvheadend occasionally not recording - not listing as failed
Added by Xaver Wur over 6 years ago
Hi all,
my (OSMC+Kodi+) Tvheadend 4.2.4 works great most of the time. Strangely it sometimes 'silently' fails to record, and this seems to be happening more and more often now :-( Unfortunately these recording (schedules) do not show up in the web interface as "Failed recordings", so I did not notice it everytime - they just disappear from the upcoming recordings list and that's it.
I have been browsing the /home/osmc/.hts directory today to get some more information today, and found the log files in .hts/tvheadend/dvr/log . I noticed that all 'silenty failed' recordings have the lines
"errorcode": 0,
"errors": 1,
(and also, a non-zero dvb_eid but I guess that's not the point).
So I see there has been some kind of error, but I do not know where to go from here. Is there some log file I did not find that might track the errors? Why could there be no error code? Why do these not show up in the web interface as 'failed'?
I realize there is probably some kind of general log file, the one which you can display in the bottom section of the web interface, but could not find it.
My hard drive sd card has plenty of space so that should not be the point.
Any help appreciated.
Regards
Xaver
Replies (8)
RE: Tvheadend occasionally not recording - not listing as failed - Added by Mark Clarkstone over 6 years ago
- Check the service log.
- I suspect either a permission or write speed issue are the cause, but without more info hard to tell.
- Use the debugging feature, set a filepath with subsystems to "dvr".
RE: Tvheadend occasionally not recording - not listing as failed - Added by Xaver Wur over 6 years ago
Hi,
could you tell me where to usually find the service log(s)? As I wrote I could not find them, although I browsed manually, searched the wiki and asked google.
Thanks
RE: Tvheadend occasionally not recording - not listing as failed - Added by Mark Clarkstone over 6 years ago
The systemd service log. or try "cat /var/log/daemon.log | grep tvheadend"
RE: Tvheadend occasionally not recording - not listing as failed - Added by Xaver Wur over 6 years ago
It seems osmc has no classic /var/log's and everything should be in systemd. However,
sudo journalctl
just dates back about 24 hours (although /etc/systemd/journald.conf shows default values) and my last failed recording was six days ago. The tvheadend entries from the last hours look normal.
Any other ideas? Or though luck and I'll have to wait for the next failing recording and immediately check journalctl?
As failing is rather occasional, permissions issues sound not very probable, or am I wrong?
Best
RE: Tvheadend occasionally not recording - not listing as failed - Added by Mark Clarkstone over 6 years ago
Use the debugging tab & get a trace
RE: Tvheadend occasionally not recording - not listing as failed - Added by Xaver Wur over 6 years ago
Thanks Mark. I don't consider myself a computer/linux newbie, but it always takes me an hour to figure out what you meant :-D You're not a verbose person right? ;-) Just kidding.
So, for others trying to follow, I found out that by setting the 'expert view' option in the web interface I get a Configuration->Debugging tab there. In the Configuration tab below that, I set:
Filename (including path): /home/osmc/tvh_debug.log
Activate Syslog: (yes)
Debug nach Syslog: (no)
Debug subsystems: +dvr
Debug Trace: (yes)
Trace subsystems: +dvr
Debug libav-Log: (no)
...would that be about right?
RE: Tvheadend occasionally not recording - not listing as failed - Added by Mark Clarkstone over 6 years ago
Xaver Wur wrote:
Thanks Mark. I don't consider myself a computer/linux newbie, but it always takes me an hour to figure out what you meant :-D You're not a verbose person right? ;-) Just kidding.
Sorry I should've added more.
So, for others trying to follow, I found out that by setting the 'expert view' option in the web interface I get a Configuration->Debugging tab there. In the Configuration tab below that, I set:
Filename (including path): /home/osmc/tvh_debug.log
Activate Syslog: (yes)
Debug nach Syslog: (no)
Debug subsystems: +dvr
Debug Trace: (yes)
Trace subsystems: +dvr
Debug libav-Log: (no)...would that be about right?
no need for the pluses, but yes, that should work.
RE: Tvheadend occasionally not recording - not listing as failed - Added by Xaver Wur over 6 years ago
You're alright mate :-) I very much appreciate you donating your free time for supporting me and others.
I'll let you know if/as soon as another recording fails. The last three worked like a charm, thanks to Murphy's Law.
Best