[mythtv-users] auto-expire after N days isn't expiring

Michael T. Dean mtdean at thirdcontact.com
Fri Apr 14 00:18:04 UTC 2017


On 04/13/2017 01:42 PM, Jerome Yuzyk wrote:
> On Thursday, April 13, 2017 11:17:52 AM MDT Jerome Yuzyk wrote:
>> [0.28.10 on Fedora 23]
>>
>> I upgraded to 0.28.10 the other day and now my deleted recordings aren't
>> expiring after 2 days like they used to. I've had this problem before but a
>> backend restart solved it. This time a restart doesn't solve it - I've done
>> a couple and seen several "AutoExpire: CalcParams(): Max required Free
>> Space: 1.0 GB w/freq: 15 min" messages logged. I've checked my settings and
>> they are as before.
>>
>> What to check next?
> I thought I'd try manually deleting one of the recordings queued for expiry
> and saw this logged:
>
> Apr 13 11:36:23 tv mythbackend: 2017-04-13 11:36:23.692065 N
> DeleteRecordedFiles - recording id 138 filename /recording/tv/
> 2041_20170412090000.mpg
> Apr 13 11:36:23 tv mythbackend: 2017-04-13 11:36:23.694149 N  DoDeleteINDB -
> recording id 138 (chanid 2041 at 2017-04-12T09:00:00Z)
> Apr 13 11:36:28 tv mythbackend: 2017-04-13 11:36:27.976324 C  ProgramInfo():
> Failed to find recorded entry for 138.
>
> The recording appears to have been deleted though, according to disk activity
> - reads and intermittent writes for slow-delete file truncation. But whatever
> controls expiry hasn't woken up.

Orphaned recording metadata for a ready-to-expire recording has been 
known to cause problems with expiration (stopping it altogether in some 
cases).  I suggest running find_orphans.py .

https://www.mythtv.org/wiki/Find_orphans.py

Mike


More information about the mythtv-users mailing list