<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Michael T. Dean wrote:
<blockquote cite="mid440B38D6.8090602@thirdcontact.com" type="cite">
  <pre wrap="">On 03/04/2006 09:54 PM, Jim O'Neill wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I would appreciate some guidance trouble-shooting a problem i'm having with
recording within MythTV.

Consistently after mythbackend is started it will record the next scheduled
recording as it should but any scheduled recordings after the first are not
recorded.  There are no obvious (to me) symptoms.  If i restart mythbackend,
it will the begin to record the program missed either automatically or after
it is reactivated.   According to the date/time stamp of the 'Housekeeping'
messages, mythbackend is not hung but if mythfrontend is running it will be
unable to connect to mythbackend.

I believe this problem may be unique to my installation as i haven't been
able to find a similiar problem although i've searched extensively.  The
problem has persisted from my first installation of mythtv .18.1 as well as
.19, and the svn branch installed yesterday.  I am having some other
problems but i think that they are unrelated.  These are intermitted
playback problems which appear to be a problem with some AMD64 installations
and a problem with transcoding.  These are of secondary concern, i mention
them only on the off chance there is a relationship.
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
MySQL 5?  If so, perhaps you're losing the connection in the scheduler, 
so your scheduled recordings list goes blank.

Mike
_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>

  </pre>
</blockquote>
Mike, thank you for taking the time to response.&nbsp; I didn't want to
reply until i had something to report back.&nbsp; <br>
<br>
While i knew MySQL 5 wasn't my problem as i'm using 4.1.11 your
suspicion that it might be a database problem matched my own so i
thought i'd better dig deeper.&nbsp; I monitored connections using
mysql-admin and i'm not dropping connections - this likely supported by
the fact that the housekeeping thread continues to run even though
mythbackend stops recording and mythfrontend loses connection to the
backend.&nbsp;&nbsp; I backed up the my database, and tried with an empty
database but i had the same problem.&nbsp; I don't believe i have a database
problem.<br>
<br>
In my MySQL related travels i did read that gcc 3.4 was reportedly
buggy so i recompiled Myth with 3.3.&nbsp; <br>
<br>
Then noticed i was receiving DMA errors and read that my mobo has a
problem with the APIC so i disabled this via within the kernel
command-line .&nbsp; No more DMA errors but still no luck with Myth.&nbsp; <br>
<br>
I needed more diskspace so i purchase a new harddrive, this one SATA,
and moved the recordings directory there.&nbsp; Still no luck.<br>
<br>
On nothing more than a hunch, i upgraded to NVIDIA driver version
8178.&nbsp; Still no luck.<br>
<br>
I upgraded through a few subversions of Myth.<br>
<br>
Probably tried several other things which i backed out of when they
didn't help.&nbsp; <br>
<br>
I don't know where to go from here. This is fast becoming very
frustrating although i took this on a project in part as an opportunity
to learn Linux and this i'm doing &lt;g&gt;. The fact that the backend
always stops upon finishing the first recording after the backend is
started/restarted seems to point to Myth as the source of the problem.
It never stops mid recording, is not random in any way, and the
recording it does complete are of good quality.&nbsp; <br>
<br>
Below is the most recent log entry with some additional logging options
turned on.&nbsp; I turned off autoexpire and the jobqueue only to remove the
noise from the log, they don't make a difference to whether it works or
doesn't.&nbsp; I'd appreciate any suggestions from anyone reading this.&nbsp;
Thanks.&nbsp; Jim<br>
<br>
mythbackend -v all,nodatabase --noautoexpire --nojobqueue<br>
2006-03-14 21:59:59.008 write -&gt; 18 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0[]:[]99525<br>
2006-03-14 22:00:00.007 read&nbsp; &lt;- 18 39&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QUERY_RECORDER
1[]:[]GET_FRAMES_WRITTEN<br>
2006-03-14 22:00:00.008 write -&gt; 18 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0[]:[]99555<br>
2006-03-14 22:00:00.689 TVRec(1): ClearFlags(FinishRecording,) -&gt;
FrontendReady,RunMainLoop,RecorderRunning,RingBufferReady,<br>
2006-03-14 22:00:00.689 TVRec(1): Changing from RecordingOnly to None<br>
2006-03-14 22:00:00.689 TVRec(1):
ClearFlags(FrontendReady,CancelNextRecording,) -&gt;
RunMainLoop,RecorderRunning,RingBufferReady,<br>
2006-03-14 22:00:00.689 TVRec(1): SetFlags(AskAllowRecording,) -&gt;
RunMainLoop,AskAllowRecording,RecorderRunning,RingBufferReady,<br>
2006-03-14 22:00:00.689 TVRec(1): Request: Program(no) channel()
input() flags(CloseRec,KillRingBuffer,)<br>
2006-03-14 22:00:00.782 TVRec(1): FinishedRecording(402 MMORE - 9:00 PM
(Manual Record)) in recgroup: Default<br>
2006-03-14 22:00:00.808 Finished recording 402 MMORE - 9:00 PM (Manual
Record) "Tue Mar 14 21:00:00 2006": channel 1402<br>
2006-03-14 22:00:00.825 New DB connection, total: 4<br>
2006-03-14 22:00:00.842 Connected to database 'mythconverg' at host:
localhost<br>
2006-03-14 22:00:00.878 scheduler: Finished recording<br>
2006-03-14 22:00:00.915 write -&gt; 14 51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
BACKEND_MESSAGE[]:[]DONE_RECORDING 1 3322[]:[]empty<br>
2006-03-14 22:00:00.957 TVRec(1): ClearFlags(RecorderRunning,) -&gt;
RunMainLoop,AskAllowRecording,RingBufferReady,<br>
2006-03-14 22:00:01.088 TVRec(1): FinishedRecording(402 MMORE - 9:00 PM
(Manual Record)) in recgroup: Default<br>
2006-03-14 22:00:01.088 Finished recording 402 MMORE - 9:00 PM (Manual
Record) "Tue Mar 14 21:00:00 2006": channel 1402<br>
2006-03-14 22:00:01.132
RingBuf(/media/mythtv/recordings/1402_20060314210500.mpg):
OpenFile(/media/mythtv/recordings/1402_20060314210500.mpg, 0)<br>
2006-03-14 22:00:01.206 TVRec(1): ClearFlags(RecorderRunning,) -&gt;
RunMainLoop,AskAllowRecording,RingBufferReady,<br>
2006-03-14 22:00:01.206 TVRec(1): Tearing down RingBuffer<br>
2006-03-14 22:00:01.206 write -&gt; 14 51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty<br>
2006-03-14 22:00:01.221 read&nbsp; &lt;- 18 35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QUERY_RECORDER
1[]:[]FRONTEND_READY<br>
2006-03-14 22:00:02.879 TVRec(1): StartRecording(The Simpsons)<br>
2006-03-14 22:00:21.272 read&nbsp; &lt;- 13 33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
MESSAGE[]:[]RECORDING_LIST_CHANGE<br>
2006-03-14 22:00:21.272 write -&gt; 13 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK<br>
2006-03-14 22:00:21.272 write -&gt; 14 51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty<br>
2006-03-14 22:00:21.318 read&nbsp; &lt;- 13 21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QUERY_RECORDINGS Play<br>
<br>
&lt;At this point or somewhere shortly before this the backend stops
responding to the frontend.&gt;<br>
<br>
<br>
</body>
</html>