<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Fri, 5 Oct 2012 18:37:27 -0400<br>
From: R KANNAN &lt;<a href="mailto:rk111810@gmail.com">rk111810@gmail.com</a>&gt;<br>
To: <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
Subject: Re: [mythtv-users] Recordings start but do not complete<br>
Message-ID:<br>
        &lt;<a href="mailto:CABX2cSFTqYn4OXXYYaOnbfvwsoc4JWTY0tr%2BbyAQyS6e%2BDKApw@mail.gmail.com">CABX2cSFTqYn4OXXYYaOnbfvwsoc4JWTY0tr+byAQyS6e+DKApw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Date: Wed, 03 Oct 2012 20:29:54 -0400<br>
&gt; From: &quot;Michael T. Dean&quot; &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt;<br>
&gt; To: Discussion about MythTV &lt;<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>&gt;<br>
&gt; Subject: Re: [mythtv-users] Recordings start but do not complete<br>
&gt; Message-ID: &lt;<a href="mailto:506CD882.50103@thirdcontact.com">506CD882.50103@thirdcontact.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
&gt;<br>
&gt; On 10/03/2012 08:18 PM, R KANNAN wrote:<br>
&gt; &gt; Something seem to have gone wrong with the database and now MythTV<br>
&gt; &gt; thinks there is no space left and cannot autoexpre any programs.<br>
&gt; &gt; Programs start getting recorded but stop after a few minutes. One of<br>
&gt; &gt; the messages in the log is as follows:<br>
&gt; &gt;<br>
&gt; &gt; AutoExpire: Filesystem Info cache is empty, unable to determine what<br>
&gt; &gt; Recordings to expire<br>
&gt; &gt;<br>
&gt; &gt; This started happening after I ran<br>
&gt; &gt; &#39;/usr/share/doc/mythtv-backend/contrib/maintenance/<a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a><br>
&gt; &gt; &lt;<a href="http://optimize_mythdb.pl" target="_blank">http://optimize_mythdb.pl</a>&gt;&#39;.<br>
&gt; &gt;<br>
&gt; &gt; Fortunately, I backed up the database before running this. Should I<br>
&gt; &gt; restore this backup?<br>
&gt;<br>
&gt; Did you have any crashed tables before you ran <a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a>?  If<br>
&gt; not, then running <a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a> is unrelated to the failure.<br>
&gt;<br>
&gt; If you had crashed tables, are you certain that you did the backup<br>
&gt; /before/ you had any crashed tables (because if you have crashed tables,<br>
&gt; they will cause the backup to fail--meaning you&#39;d only have a partial<br>
&gt; backup).<br>
&gt;<br>
&gt; Regardless, you likely just need to go into mythtv-setup and fix your<br>
&gt; Storage Groups configuration.<br>
&gt;<br>
&gt; Mike<br>
&gt;<br>
&gt;<br>
&gt;<br>
There seems to be some issue with the database that is causing the programs<br>
not Auto-epire though they have been marked to auto-epire. I get the<br>
following in the log file..<br>
<br>
2012-10-05 18:26:57.950558 N  AutoExpire: CalcParams(): Max required Free<br>
Space: 1.0 GB w/freq: 15 min<br>
 AND       starttime = ?#012Bindings were:#012:CHANID=1073,<br>
:NEWEND=2012-10-06T23:30:00,<br>
:NEWSTART=2012-10-06T22:30:00,#012:OLDSTART=2012-10-06T22:00:00#012Driver<br>
error was [2/1062]:#012QMYSQL3: Unable to execute statement#012Database<br>
error was:#012Duplicate entry &#39;1073-2012-10-06 22:30:00-0&#39; for key &#39;PRIMARY&#39;<br>
Oct  5 18:26:20 DVR mythbackend[9022]: E Expire autoexpire.cpp:161<br>
(CalcParams) AutoExpire: Filesystem Info cache is empty, unable to<br>
calculate necessary parameters.<br>
Oct  5 18:26:20 DVR mythbackend[9022]: E Expire autoexpire.cpp:421<br>
(ExpireRecordings) AutoExpire: Filesystem Info cache is empty, unable to<br>
determine what Recordings to expire<br>
Oct  5 18:27:49 DVR mythbackend[9022]: I HouseKeeping housekeeper.cpp:225<br>
(RunHouseKeeping) Running housekeep<br>
<br>
<br>
I tried repairing and optimizing tables but that did not help<br></blockquote><div><br>Again the problem seems to be something to do with permissions. mythtv-backend is being run as &#39;root&#39;. When I ran it as a service (under &#39;mythtv&#39; as the user) it worked fine. <br>
</div></div>