<br><br><div class="gmail_quote">On Sun, Sep 20, 2009 at 10:09 AM, Udo van den Heuvel <span dir="ltr">&lt;<a href="mailto:udovdh@xs4all.nl">udovdh@xs4all.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
I found that the backend just stopped.<br>
These are the logfile lines preceding this:<br>
<br>
2009-09-13 16:13:13.568 Reschedule requested for id 0.<br>
2009-09-13 16:14:27.244 Scheduled 81 items in 73.7 = 0.01 match + 73.65<br>
place<br>
2009-09-13 16:14:27.283 Reschedule requested for id 0.<br>
2009-09-13 16:15:37.497 Scheduled 81 items in 70.2 = 0.01 match + 70.20<br>
place<br>
2009-09-13 16:18:11.600 AutoExpire: CalcParams(): Max required Free<br>
Space: 3.0 GB w/freq: 5 min<br>
2009-09-13 16:20:04.491 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090325102900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.508 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090601112400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.522 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090603112800.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.530 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090606105400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.541 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090625221400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.559 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090722154900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.572 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090801035900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.580 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090806195400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.587 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090807123400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.595 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090819215900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:04.604 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090824195400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:05.303 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090911144900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:05.465 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090913014900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.156 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090325102900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.189 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090601112400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.210 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090603112800.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.221 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090606105400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.230 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090625221400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.252 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090722154900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.263 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090801035900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.273 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090806195400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.281 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090807123400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.292 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090819215900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.300 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;2_20090824195400.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:07.979 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090911144900.mpg&#39; should be local, but it can not be found.<br>
2009-09-13 16:20:08.123 ProgramInfo, Error: GetPlaybackURL:<br>
&#39;3_20090913014900.mpg&#39; should be local, but it can not be found.<br>
<br>
<br>
What happened?<br>
<br>
<br>
Udo<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><div><br></div>I created a cron job to monitor the backend and restart it if it crashes.  <div><br></div><div>I start it with this entery into cron.d</div><div><div>* * * * * root /usr/bin/mythmon</div>

<div><br></div><div>Here is the script.</div><div><br></div><div><br></div><div><div>#!/bin/bash</div><div>LOG=/var/log/mythtv/mythbackend.log</div><div><br></div><div># comment out the line below after testing that the script runs when it should</div>

<div># date &quot;+%Y-%m-%d %H:%M:%S Checking&quot; &gt;&gt; /tmp/mythmon.log</div><div><br></div><div>if ! ps -ef | grep [m]ythbackend &gt;/dev/null; then</div><div><br></div><div> # Check whether setup utility is running</div>

<div> if ps -ef | grep [m]ythtv-setup &gt;/dev/null; then</div><div>   date &quot;+%Y-%m-%d %H:%M:%S mythtv-setup running&quot; &gt;&gt; /tmp/mythmon.log</div><div>   exit 0</div><div> fi</div><div><br></div><div> # Mythbackend has crashed, log and restart</div>

<div> date &quot;+%Y-%m-%d %H:%M:%S Crash detected - restarting mythbackend&quot; &gt;&gt; $LOG</div><div> date &quot;+%Y-%m-%d %H:%M:%S Crash detected - restarting mythbackend&quot; &gt;&gt;/tmp/mythmon.log</div><div> chown mythtv:mythtv $LOG</div>

<div> /etc/init.d/mythtv-backend restart</div><div>fi</div><div><br></div><div>The funny thing is that the system has not crashed since I installed this with the exception of the one time I killed it to test the script.</div>

<div><br></div><div>Allen</div><div><br></div></div></div>