> I made a new fresh installation and now it seems to work again.
That's interesting. I've been upgrading the same installation for a while now. I didn't bother with the script to move from 3.4 to 3.9, just added back my scheduled recordings as that gave me a chance to clear some rubbish and duplicates out. Running
ls -lR /home/hts/.hts/tvheadend/ | awk '{print $3}' | sort | uniq
showed that I had files owned by two users in the tvheadend directory tree, hts and root
find /home/hts/.hts/tvheadend/ -user root
came up with a dozen or so log entries from May 2013, and I did a bulk
chown hts:video /home/hts/.hts/tvheadend/dvr/log/*
to change them all. Now the help for DVR Log retention time says:
> Time that Tvheadend will keep information about the recording in its internal database. Notice that the actual recorded file will not be deleted when the log entry is deleted.
I've got it set to 900, because I'd like to keep the log information for as long as I keep the recording, and I've got some old stuff that I've not yet got round to watching. I had however assumed that deleting the recorded file deleted the log. Maybe that's just a glitch from May 2013 that's long been corrected. Or maybe I was doing something I shouldn't have back then. Anyway, I'm just putting this up in case it may help someone else. Given that default permissions have worked OK for over a year for me, and presumably everyone else, and that this problem was caused by some orphaned rubbish, maybe the backup routines could be tweaked to skip similar files, rather than repeatedly trying and failing. I guess that's one for the developers.