<div class="gmail_quote">On Sun, Aug 21, 2011 at 2:48 AM, Michael T. Dean <span dir="ltr">&lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 08/20/2011 12:38 PM, Christopher Kerr wrote:<br>
&gt; Checked the script, it&#39;s definitely supposed to be logging to<br>
&gt; /var/log/mythtv/mythbackend.log. It also definitely isn&#39;t.<br>
&gt;<br>
&gt; I tried starting mythbackend from the command line with the --logfile switch<br>
&gt; - should I expect to see errors in the console if there are file permission<br>
&gt; problems?<br>
<br>
</div>Yeah, I&#39;m guessing you would.  I&#39;ll check to make sure a bit later.<br>
<br>
And, FWIW, on master, you shouldn&#39;t be using --logfile /path/to/file .<br>
You should be using --logpath /path/to/directory (or -l<br>
/path/to/directory).  I will likely remove --logfile (and remove the<br>
code that allows --logpath/-l to accept a file path), forcing you to<br>
specify a logging directory (just making sure stakeholders are OK with<br>
the change).  If you specify a log file, then /only/ mythbackend logging<br>
is written to disk.  All logging from child processes (mythtranscode,<br>
mythpreviewgen, mythmetadatalookup, ...) is discarded because you<br>
haven&#39;t given us permission to write to other log files.<br>
<br>
See, also,<br>
<a href="http://www.mythtv.org/wiki/Category:Syslog_Configuration_Files" target="_blank">http://www.mythtv.org/wiki/Category:Syslog_Configuration_Files</a> for<br>
another approach to logging in master.<br>
<br>
Unfortunately, though, I don&#39;t have any other guesses on what could be<br>
causing the issues with recordings.  I hope you can get the logs working<br>
so we can get more information.<br>
<br>
I&#39;m guessing the following would work:<br>
<br>
sudo chown -R mythtv:mythtv /var/log/mythtv &amp;&amp;<br>
sudo chmod 775 /var/log/mythtv &amp;&amp;<br>
sudo chmod 664 /var/log/mythtv/*.log<br>
<br>
for fixing permissions (though I&#39;m not sure how your system is<br>
configured, so you may have to change user/group name or something).<br>
<div><div></div><div class="h5"><br>
Mike<br></div></div></blockquote><div><br></div><div>Thanks Mike, a closer look showed that user and group were set correctly, but for some reason the file didn&#39;t have write permissions - presumably something went awry back when I upgraded to Master.</div>
<div><br></div><div>Now to wait for something to go wrong again...</div><div><br></div><div>- Chris</div></div>