<p><br>
On Feb 11, 2012 12:07 PM, &quot;Michael T. Dean&quot; &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On 02/10/2012 08:05 PM, Marco Quezada wrote:<br>
&gt; &gt;&gt; On 02/10/2012 05:11 PM, Marco Quezada wrote:<br>
&gt; &gt;&gt;&gt; My backend has trouble reaching an idle timeout so it can shutdown on<br>
&gt; &gt;&gt;&gt; its own. Its logs are filled with entries like these:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:38:57.396 mythbackend: Running housekeeping thread<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:28.000 MainServer::ANN Playback<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:28.002 adding: QMHTPC-1 as a client (events: 0)<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:28.005 MainServer::ANN Monitor<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:28.016 adding: QMHTPC-1 as a client (events: 1)<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:28.019 Reschedule requested for id -1.<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:29.434 Scheduled 144 items in 1.4 = 0.02 match + 1.37 place<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:39:29.441 scheduler: Scheduled items: Scheduled 144<br>
&gt; &gt;&gt;&gt; items in 1.4 = 0.02 match + 1.37 place<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:40:07.397 AutoExpire: CalcParams(): Max required Free<br>
&gt; &gt;&gt;&gt; Space: 1.0 GB w/freq: 15 min<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:42:51.110 MainServer::ANN Monitor<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:42:51.111 adding: QMHTPC-1 as a client (events: 2)<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:42:51.600 MainServer::ANN Monitor<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:42:51.606 adding: QMHTPC-1 as a client (events: 2)<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:45:02.602 MainServer::ANN Monitor<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:45:02.606 adding: QMHTPC-1 as a client (events: 2)<br>
&gt; &gt;&gt;&gt; 2012-02-10 16:55:07.627 AutoExpire: CalcParams(): Max required Free<br>
&gt; &gt;&gt;&gt; Space: 1.0 GB w/freq: 15 min<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; So I suspect that the scheduler is keeping it awake but I am not sure<br>
&gt; &gt;&gt;&gt; which settings I may have messed up. The information I have found<br>
&gt; &gt;&gt;&gt; online seems to indicate an issue with the EIT grabber but I am not<br>
&gt; &gt;&gt;&gt; using EIT, I am using Schedules Direct. I am using mythTV version<br>
&gt; &gt;&gt;&gt; &quot;fixes/0.24 [v0.24-243-g9ba3ece]&quot;.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I&#39;ve reduced the idle timeout to 600 secs and the idle wait for<br>
&gt; &gt;&gt;&gt; recording time to 20 minutes but cannot seem to be able to get ahead<br>
&gt; &gt;&gt;&gt; of the scheduler or the housekeeping thread. The permissions for<br>
&gt; &gt;&gt;&gt; executing the shutdown script and setting the time on the RTC are<br>
&gt; &gt;&gt;&gt; correct, every once in a loooong while the machine seems to reach the<br>
&gt; &gt;&gt;&gt; idle timeout and it does shutdown, but it takes weeks some times.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I&#39;ve tried looking for information on the AutoExpire, Scheduled items<br>
&gt; &gt;&gt;&gt; and housekeeping messages to try to track them down but have not had<br>
&gt; &gt;&gt;&gt; much luck. Am I even on the correct track or might there be another<br>
&gt; &gt;&gt;&gt; issue?<br>
&gt; &gt;&gt; You&#39;ve explicitly disabled EIT on the Video Source using Schedules<br>
&gt; &gt;&gt; Direct data (in mythtv-setup)?<br>
&gt; &gt; Yes, I have only one Video Source configured (Schedules Direct) with<br>
&gt; &gt; the &quot;Perform EIT Scan&quot; box unchecked, and I have both of my input<br>
&gt; &gt; connections (2 tuners on my HDHR) tied to this Video Source.<br>
&gt;<br>
&gt; And don&#39;t have other Video Sources with EIT enabled (even if not<br>
&gt; connected), right?<br>
&gt;</p>
<p>Correct, there is only one declared.<br></p>
<p>&gt; Anyway, reschedules should occur:<br>
&gt;<br>
&gt; a) any time someone runs mythfilldatabase<br>
&gt; b) any time someone changes a recording rule<br>
&gt; c) any time a recording starts or finishes<br>
&gt; d) any time a recording is deleted<br>
&gt; e) every 5 minutes for EIT users<br>
&gt;</p>
<p>Well, is there a way to tell which of these events might be the one queuing the scheduler? Is there a way to increase the verbosity of the log messages and would that be helpful? I have tried to relate the messages with the event but I don&#39;t know enough about the meaning of the messages to make sense of them. I just noticed that my eit crawler timeout is set to 3600. It is a big value but not sure if there is a number that marks it as disabled at all.</p>

<p>&gt; You could see if EIT is involved by checking when these &quot;overactive<br>
&gt; scheduler&quot; runs occur.<br>
&gt;</p>
<p>Right, well the thing is that I can&#39;t find a steady pattern. And which of all the messages would be related to the eit? Is it the ANN monitor, the housekeeping.... The messages don&#39;t seem to happen on a regular schedule.<br>
</p>
<p>&gt; &gt; I did find this snippet in my backend log from earlier in the month<br>
&gt; &gt; when it was still set to look for an idle time of 840 seconds. It<br>
&gt; &gt; seems it really thought it would shut down but got interrupted:<br>
&gt; &gt;<br>
&gt; &gt; 2012-02-04 17:36:39.516 Seem to be woken up by USER<br>
&gt; &gt; 2012-02-04 17:36:44.610 mythbackend: Running housekeeping thread<br>
&gt; &gt; 2012-02-04 17:36:51.324 MainServer::ANN Playback<br>
&gt; &gt; 2012-02-04 17:36:51.333 adding: QMHTPC-1 as a client (events: 0)<br>
&gt; &gt; 2012-02-04 17:36:51.336 MainServer::ANN Monitor<br>
&gt; &gt; 2012-02-04 17:36:51.353 adding: QMHTPC-1 as a client (events: 1)<br>
&gt; &gt; 2012-02-04 17:36:59.528 I&#39;m idle now... shutdown will occur in 840 seconds.<br>
&gt; &gt; 2012-02-04 17:37:54.610 AutoExpire: CalcParams(): Max required Free<br>
&gt; &gt; Space: 1.0 GB w/freq: 15 min<br>
&gt; &gt; 2012-02-04 17:38:50.360 MainServer::ANN Playback<br>
&gt; &gt; 2012-02-04 17:38:50.361 adding: QMHTPC-1 as a client (events: 0)<br>
&gt; &gt; 2012-02-04 17:38:50.364 MainServer::ANN Monitor<br>
&gt; &gt; 2012-02-04 17:38:50.365 adding: QMHTPC-1 as a client (events: 1)<br>
&gt; &gt; 2012-02-04 17:40:37.968 MainServer::ANN Playback<br>
&gt; &gt; 2012-02-04 17:40:37.970 adding: QMHTPC-1 as a client (events: 0)<br>
&gt; &gt; 2012-02-04 17:40:37.972 MainServer::ANN Playback<br>
&gt; &gt; 2012-02-04 17:40:37.973 adding: QMHTPC-1 as a client (events: 0)<br>
&gt; &gt; 2012-02-04 17:40:37.974 MainServer::ANN Monitor<br>
&gt; &gt; 2012-02-04 17:40:37.976 MainServer::ANN Monitor<br>
&gt; &gt;<br>
&gt;<br>
&gt; FWIW, reports suggest that MythWelcome fails to allow shutdown.<br>
&gt;<br>
&gt; <a href="http://code.mythtv.org/trac/ticket/10114">http://code.mythtv.org/trac/ticket/10114</a><br>
&gt; <a href="http://www.gossamer-threads.com/lists/mythtv/users/496118#496118">http://www.gossamer-threads.com/lists/mythtv/users/496118#496118</a><br>
&gt;<br>
&gt; Mike<br>
&gt;</p>
<p>I will take a look at this.  I don&#39;t remember enabling mythwelcome but certainly something I can check.</p>
<p>-Marco</p>
<p> _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</p>