Status Update:<br><br>I was able to resolve the &quot;ERROR when trying to delete file&quot; error by creating an empty file in the Storage folder.<br><br>As a test, I decided to start recording the news every night, and keep only 5 episodes.  This is also working correctly.<br>

<br>Sesame Street is also working (somewhat).  A maximum of 17 episodes are kept, even though I have it setup to only keep a max of 15.<br><br>So, for some reason or another, this &quot;Delete oldest&quot; issue appears to be local to the Sesame street recording schedule.  Are there any additional parameters that could affect how mythtv determines if certain episodes should be excluded from the &quot;Delete oldest&quot; list?  I only have one episode set to preserved, so I&#39;m not sure why 2 extra episodes are being kept.<br>

<br>-Rob<br><br><br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 12:30 PM, Robert Dege <span dir="ltr">&lt;<a href="mailto:livemotion@gmail.com" target="_blank">livemotion@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The missing recording is in reference to a Cooking show that recorded in February.  I created an empty file in the shows folder to see if that resolves the problem.  I consider that easier than trying to manually remove it from the database.<br>


<br>As for Sesame Street, it looks as if it started expiring episodes on the 26th, but I&#39;m hesitant to believe this:<br><br>Sep 26 11:01:59 ubermyth mythbackend[1515]: N Expire autoexpire.cpp:739 (ExpireEpisodesOverMax) Expiring 4869 MBytes for 1517 at Tue May 22 10:00:00 2012 =&gt; Sesame Street.  Too many episodes, we only want to keep 15.<br>


<br>Sep 27 11:02:20 ubermyth mythbackend[1667]: N Expire autoexpire.cpp:739 (ExpireEpisodesOverMax) Expiring 4938 MBytes for 1517 at Wed May 23 10:00:00 2012 =&gt; Sesame Street.  Too many episodes, we only want to keep 15.<br>


<br>Sep 28 11:05:18 ubermyth mythbackend[1667]: N Expire autoexpire.cpp:739 (ExpireEpisodesOverMax) Expiring 4904 MBytes for 1517 at Mon Jun 25 10:00:00 2012 =&gt; Sesame Street.  Too many episodes, we only want to keep 15.<br>


<br>The next upcoming episode to record isn&#39;t until next Thursday (October 4th), so I won&#39;t know more until then.<br><br>Do you know what the criteria needs to be met for &quot;ExpireEpisodesOverMax&quot; to work properly.  I&#39;m just wondering why it&#39;s keeping 17 episodes, even though I specified to keep 15.<br>


<br>-Rob<div class="HOEnZb"><div class="h5"><br><br><br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 11:56 AM, Dan Wilga <span dir="ltr">&lt;<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-linux1.amherst.edu</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Check the logs again. It&#39;s probably still trying (and failing) to delete these recordings with files its thinks are missing.<div>


<br>
<br>
On 9/28/12 11:49 AM, Robert Dege wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Okay, so now it seems as if &quot;Delete Over Max&quot; is working somewhat.  Sesame Street recorded this morning (18th episode), but after it ended, I noticed that the there were only 17 recordings available.  So the question now becomes, why is it keeping 17, when mythfrontend, mythweb, and even the backend log says to only keep 15?<br>



<br>
I know that I have one episode preserved, but I don&#39;t know if that excludes it from the Max total or not.<br>
<br>
<br>
<br></div><div><div>
On Fri, Sep 28, 2012 at 10:51 AM, Dan Wilga &lt;<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-linux1.<u></u>amherst.edu</a> &lt;mailto:<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-<u></u>linux1.amherst.edu</a>&gt;&gt; wrote:<br>



<br>
    It looks like you are experiencing a different problem from me. In<br>
    your case, the recording file has been deleted (or moved or<br>
    renamed?) somehow, and therefore Myth refuses to delete the<br>
    database entry.<br>
<br>
    If you don&#39;t have any ideas why the file would be missing, I<br>
    suggest you re-post the exact logs you have below to the list.<br>
    Somebody with a better knowledge of why this might be the case<br>
    could reply.<br>
<br>
<br>
    On 9/28/12 10:29 AM, Robert Dege wrote:<br>
<br>
        Thanks for the link, I found it very informative.  I check the<br>
        backend logs, but didn&#39;t find any damaged recordings related<br>
        to Sesame street.  However, I did find other interesting<br>
        information in the logs:<br>
<br>
        mythbackend[1667]: N Expire autoexpire.cpp:739<br>
        (ExpireEpisodesOverMax) Expiring 4938 MBytes for 1517 at Wed<br>
        May 23 10:00:00 2012 =&gt; Sesame Street.  Too many episodes, we<br>
        only want to keep 15.<br>
<br>
        It looks like myth is acknowledging the Max Expisode rule, and<br>
        tries to delete an episode, but fails to perform the action.<br>
<br>
        I also discovered that myth tries to delete an old TV episode<br>
        from Feb 2012 that no longer exists on the system.  Could this<br>
        issue impair auto-expire, or is it unrelated?<br>
        Sep 26 21:38:10 ubermyth mythbackend[1541]: N Expire<br>
        autoexpire.cpp:640 (SendDeleteMessages) Expiring 3173 MB for<br>
        1664 at 2012-02-19T19:28:13 =&gt; &quot;Worst Cooks in America&quot;:&quot;Best<br>
        of the Worst&quot;<br>
        Sep 26 21:38:10 ubermyth mythbackend[1541]: E CoreContext<br>
        programinfo.cpp:2278 (GetPlaybackURL)<br>
        ProgramInfo(1664_<u></u>20120219192813.mpg): GetPlaybackURL:<br>
        &#39;1664_20120219192813.mpg&#39; should be local, but it can not be<br>
        found.<br>
        Sep 26 21:38:10 ubermyth mythbackend[1541]: E CoreContext<br>
        mainserver.cpp:2582 (DoHandleDeleteRecording) ERROR when<br>
        trying to delete file:<br>
        GetPlaybackURL/UNABLE/TO/FIND/<u></u>LOCAL/FILE/ON/ubermyth/1664_<u></u>20120219192813.mpg.<br>
        File doesn&#39;t exist.  Database metadata will not be removed.<br>
<br>
<br>
        -Rob<br>
<br>
<br>
        On Thu, Sep 27, 2012 at 3:37 PM, Dan Wilga<br>
        &lt;<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-linux1.<u></u>amherst.edu</a><br>
        &lt;mailto:<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-<u></u>linux1.amherst.edu</a>&gt;<br></div></div>
        &lt;mailto:<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-<u></u>linux1.amherst.edu</a><div><br>
        &lt;mailto:<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-<u></u>linux1.amherst.edu</a>&gt;&gt;&gt; wrote:<br>
<br>
            On 9/27/12 11:09 AM, Robert Dege wrote:<br>
<br>
                Hello,<br>
<br>
                I want to keep exactly 15 episodes of Sesame Street on<br>
        mythtv.<br>
                As new episodes record, the oldest shows should be<br>
        deleted,<br>
                with the exception of ones that specifically preserve.<br>
         I&#39;ve<br>
                been trying to get this to work over the past two<br>
        weeks, with<br>
                little success.<br>
<br>
            This sounds like an issue with recording quality I hit a while<br>
            ago, in this thread:<br>
<br>
        <a href="http://www.gossamer-threads.com/lists/mythtv/users/521454" target="_blank">http://www.gossamer-threads.<u></u>com/lists/mythtv/users/521454</a><br>
<br>
            I&#39;m currently using the patch Daniel provided, and it<br>
        works fine<br>
            for this purpose.<br>
<br>
</div></blockquote><span><font color="#888888">
<br>
-- <br>
Dan Wilga                                                        &quot;Ook.&quot;<br>
<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>