<div class="gmail_quote">On Sun, Aug 21, 2011 at 2:48 AM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>></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>
> Checked the script, it's definitely supposed to be logging to<br>
> /var/log/mythtv/mythbackend.log. It also definitely isn't.<br>
><br>
> I tried starting mythbackend from the command line with the --logfile switch<br>
> - should I expect to see errors in the console if there are file permission<br>
> problems?<br>
<br>
</div>Yeah, I'm guessing you would. I'll check to make sure a bit later.<br>
<br>
And, FWIW, on master, you shouldn'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'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'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'm guessing the following would work:<br>
<br>
sudo chown -R mythtv:mythtv /var/log/mythtv &&<br>
sudo chmod 775 /var/log/mythtv &&<br>
sudo chmod 664 /var/log/mythtv/*.log<br>
<br>
for fixing permissions (though I'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'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>