Ah yes that did it!<br><br>I used 'set HOME=/home/mythtv; /usr/local/bin/mythfilldatabase...' in my crontab line and that fixed it!<br><br>Cheers<br><br><br><div><span class="gmail_quote">On 11/13/05, <b class="gmail_sendername">
ffrr</b> &lt;<a href="mailto:ffrr@tpg.com.au">ffrr@tpg.com.au</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">duckeo wrote:
<br><br>&gt; Okay this one is driving me nuts.<br>&gt;<br>&gt; I've got my local myth user configured to use mythfilldatabase with<br>&gt; tv_grab_au. If I run this manually from the command line as mythtv, it<br>&gt; works fine.
<br>&gt;<br>&gt; I configure up my crontab to run the same job:<br>&gt;<br>&gt; mythtv@mythtv:~$ crontab -l<br>&gt; 00 23 * * * /usr/local/bin/mythfilldatabase<br>&gt;<br>&gt; It was set to run once a day early in the morning (but it's 11:00p for
<br>&gt; testing purposes).<br>&gt;<br>&gt; When I check my mythweb status, it says mythfilldatabase last failed<br>&gt; and I verify this with the guide still not having the correct data.<br>&gt;<br>&gt; I set up the crontab to pipe the output to a file:
<br>&gt;<br>&gt; mythtv@mythtv:~$ crontab -l<br>&gt; 00 23 * * * /usr/local/bin/mythfilldatabase &gt;<br>&gt; /var/log/mythfilldatabase.log<br>&gt;<br>&gt; and in that log, the next day:<br>&gt; mythtv@mythtv :~$ cat /var/log/mythfilldatabase.log
<br>&gt; 2005-11-12 23:00:02.969 New DB connection, total: 1<br>&gt; 2005-11-12 23:00:03.048 New DB connection, total: 2<br>&gt; ----------------- Start of XMLTV output -----------------<br>&gt; 2005-11-12 23:00: 03.170 New DB connection, total: 3
<br>&gt; ------------------ End of XMLTV output ------------------<br>&gt; Updating icons for sourceid: 1<br>&gt; 2005-11-12 23:00:03.207 New DB connection, total: 4<br>&gt;<br>&gt; That's all I see, no reason for a failure. My Crontab log shows it is
<br>&gt; running as the correct user:<br>&gt;<br>&gt; root@mythtv:/home/mythtv# cat /var/log/cron.1<br>&gt; /usr/sbin/crond 2.3.3 dillon, started, log level 8<br>&gt; USER mythtv pid 18998 cmd /usr/local/bin/mythfilldatabase
<br>&gt;<br>&gt; Is there some environment variable I need to set within the cron job<br>&gt; itself?<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>
<br><br>I was getting an error when mythbackend ran mythfilldatabase. In the log<br>I found...<br><br>config file //.mythtv/au.xmltv does not exist, run me with --configure<br><br>The problem was that the 'HOME' environment variable is not defined.
<br>To fix it in /etc/init.d/mythtv-backend<br><br>Add the following line<br>HOME=/home/mythtv<br><br>directly after<br>DESC=&quot;MythTV server&quot;<br><br><br><br>Now, you might need to do something similar?&nbsp;&nbsp;Just a guess...
<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">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>