<div class="gmail_quote">On Sun, Aug 21, 2011 at 3:04 AM, Christopher Kerr <span dir="ltr"><<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.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="gmail_quote"><div><div></div><div class="h5">On Sun, Aug 21, 2011 at 2:48 AM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com" target="_blank">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>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><br>
Mike<br></div></div></blockquote><div><br></div></div></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></blockquote><div><br></div><div>And, soon enough, it has done.</div><div><br></div><div>2011-08-21 22:58:01.471639 I [22891/22905] Scheduler scheduler.cpp:2465 (HandleRecordingStatusChange) - Tuning recording: "Notes on a Scandal": channel 2010 on cardid 4, sourceid 2</div>
<div>2011-08-21 22:58:01.644600 E [22891/24091] ProcessRequest programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 22:58:01.645972 E [22891/25994] ProcessRequest programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 22:58:02.099483 E [22891/24091] ProcessRequest programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 22:58:02.125792 E [22891/25994] ProcessRequest programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 22:58:03.107283 E [22891] ProcessRequest programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 22:58:03.179789 E [22891/25994] ProcessRequest programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 22:59:56.690004 I [22891/22906] HouseKeeping housekeeper.cpp:225 (RunHouseKeeping) - Running housekeeping thread</div><div>2011-08-21 23:03:01.606537 I [22891/22905] Scheduler scheduler.cpp:2465 (HandleRecordingStatusChange) - Canceled recording (Recorder Failed): "Notes on a Scandal": channel 2010 on cardid 4, sourceid 2</div>
<div>2011-08-21 23:03:01.606934 I [22891/22905] Scheduler scheduler.cpp:2017 (HandleReschedule) - Reschedule requested for id 0.</div><div>2011-08-21 23:03:01.657716 E [22891/22891] CoreContext programinfo.cpp:2158 (GetPlaybackURL) - ProgramInfo(2010_20110821225800.mpg): GetPlaybackURL: '2010_20110821225800.mpg' should be local, but it can not be found.</div>
<div>2011-08-21 23:03:01.667954 I [22891/22899] TVRecEvent tv_rec.cpp:992 (HandleStateChange) - TVRec(4): Changing from RecordingOnly to None</div><div>2011-08-21 23:03:01.711924 I [22891/22891] CoreContext scheduler.cpp:560 (UpdateRecStatus) - Updating status for "Notes on a Scandal" on cardid 4 (Recorder Failed => Recorded)</div>
<div>2011-08-21 23:03:01.781302 I [22891/22891] CoreContext scheduler.cpp:610 (UpdateRecStatus) - Updating status for "Notes on a Scandal" on cardid 4 (Recorded => Recorder Failed)</div><div><br></div><div>So: The actual failure is one of my tuners, so I'll have to fix that.</div>
<div><br></div><div>However, despite the status being updated to "Recorder Failed", MythTV still considers this show to be Previously Recorded, which is clearly wrong.</div><div><br></div><div>- Chris</div></div>