[mythtv-commits] Ticket #12988: Auto-expire doesn't delete then loops and retries every time (endless log loop)
MythTV
noreply at mythtv.org
Sun Feb 5 18:35:47 UTC 2017
#12988: Auto-expire doesn't delete then loops and retries every time (endless log
loop)
--------------------------------------+----------------------------------
Reporter: stevenable@… | Owner: wagnerrp
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Housekeeper | Version: 0.27.6
Severity: low | Keywords: autoexpire, log loop
Ticket locked: 0 |
--------------------------------------+----------------------------------
When mythbackend fails to remove an autoexpired recording, it logs the
condition but then tries again every time (approx 15min). Either it
should remove the entry from the database or flag it as attempted/failed.
I took a look at my mythbackend log and found many copies containing the
following (only showing a few lines):
{{{
Feb 5 12:49:00 host mythbackend: mythbackend[3302]: N Expire
autoexpire.cpp:641 (SendDeleteMessages)
Expiring 2606 MB for 1021 at 2016-07-22T22:33:18Z => "NBC Nightly News
With Lester Holt"
Feb 5 12:49:00 host mythbackend: mythbackend[3302]: N Expire
autoexpire.cpp:641 (SendDeleteMessages)
Expiring 2811 MB for 1061 at 2016-09-23T21:59:45Z => "News 6 at 6:00p"
Feb 5 12:49:00 host mythbackend: mythbackend[3302]: N Expire
autoexpire.cpp:641 (SendDeleteMessages)
Expiring 2808 MB for 1061 at 2016-09-23T22:30:00Z => "CBS Evening News
With Scott Pelley"
Feb 5 12:49:00 host mythbackend: mythbackend[3302]: E CoreContext
programinfo.cpp:2358 (GetPlaybackURL)
ProgramInfo(1061_20160722223034.mpg): GetPlaybackURL:
'1061_20160722223034.mpg' should be local, but it can not be found.
Feb 5 12:49:00 host mythbackend: mythbackend[3302]: E CoreContext
mainserver.cpp:2698 (DoHandleDeleteRecording) ERROR when trying to delete
file:
GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/host/1061_20160722223034.mpg.
File doesn't exist. Database metadata will not be removed.
Feb 5 12:49:00 host mythbackend: mythbackend[3302]: E CoreContext
programinfo.cpp:2358 (GetPlaybackURL)
ProgramInfo(1021_20160722223318.mpg): GetPlaybackURL:
'1021_20160722223318.mpg' should be local, but it can not be found.
}}}
From the dates you can see these recordings go back to 2016 and as best I
can tell, this has been logging and failing since that time. The issue
appears to be that by failing to remove database metadata, it shows up for
autoexpire to consider again every 15 minutes. I don't know how the
original shows got deleted without backend knowing; that isn't my concern
here. Rather just seems that if the file does not exist, then removing
metadata is desired. (I don't know the conditions under which retaining
it is desired so care should be taken.)
This is certainly a minor problem, not causing issues other than slowly
filling up my disk; and with a long enough list it may affect overall
processing (not sure if it has throttle to skip if busy). I also
apologize if this is duplicate; i searched but didn't find any other
tickets that referenced this. I might try and investigate it myself if i
have time but figured I'd submit it.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12988>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list