[mythtv-commits] Ticket #7762: Autoshutdown slave feature enhanced

MythTV mythtv at cvs.mythtv.org
Thu Feb 18 21:35:29 UTC 2010


#7762: Autoshutdown slave feature enhanced
-------------------------------+--------------------------------------------
 Reporter:  gmembre@…          |       Owner:  cpinkham
     Type:  enhancement        |      Status:  assigned
 Priority:  minor              |   Milestone:          
Component:  MythTV - General   |     Version:  unknown 
 Severity:  medium             |     Mlocked:  0       
-------------------------------+--------------------------------------------

Comment(by simonwalls@…):

 Hi,
 Now I'm using svn 22882 (just mythbackend for now, hope that is not a big
 problem) with v0.3 of the patch. SBE does shut down, but according to
 MythWeb it goes to "currently not connected" and log entries are as
 follows:

 MBE
 {{{
 2010-02-18 21:02:57.766 Scheduler, Checking for slaves that can be wake up
 2010-02-18 21:02:57.768 Scheduler, Checking for slaves that can be shut
 down
 2010-02-18 21:02:57.769   Getting list of slaves that will be active in
 the next 15 minutes.
 2010-02-18 21:02:57.770 Checking scheduler's reclist
 2010-02-18 21:02:57.772 2  Checking inuseprograms table:
 2010-02-18 21:02:57.780     Asking Server to go to sleep.
 2010-02-18 21:02:58.708 adding: Server as a client (events: 0)
 2010-02-18 21:02:58.711 adding: Server as a client (events: 1)
 2010-02-18 21:03:27.782 MythSocket(9b73830:31): readStringList: Error,
 timed out after 30000 ms.
 2010-02-18 21:03:27.788 Slave backend: Server no longer connected
 2010-02-18 21:03:27.791 MythSocket(9b73830:-1): writeStringList: Error,
 called with unconnected socket.
 2010-02-18 21:03:27.793 MythSocket(9b73830:-1): readStringList: Error,
 called with unconnected socket.
 2010-02-18 21:03:27.795 PlaybackSock::SendReceiveStringList(): No
 response.
 2010-02-18 21:03:27.796 PlaybackSock, Error: GetEncoderState:
 QUERY_REMOTEENCODER 4 gave us no response.
 2010-02-18 21:03:27.791 PlaybackSock::SendReceiveStringList(): No
 response.
 2010-02-18 21:03:27.809 Scheduler, Error: Unable to shutdown Server slave
 backend, setting sleep status to undefined.
 2010-02-18 21:03:27.821 BuildWorkList...
 2010-02-18 21:03:27.822 AddNewRecords...
 2010-02-18 21:03:27.967  |-- Start DB Query...
 2010-02-18 21:03:28.207  |-- 198 results in 0.234584 sec. Processing...
 2010-02-18 21:03:28.297  +-- Cleanup...
 }}}

 and SBE
 {{{
 2010-02-18 21:03:17.413 JobQueue: Currently set to run new jobs from 15:00
 to 21:00
 2010-02-18 21:03:17.414 JobQueue: Currently Running 0 jobs.  Jobs in
 Queue, but we are outside of the Job Queue time window, no new jobs can be
 started.
 2010-02-18 21:03:17.415 JobQueue: Skipping 'Flag Commercials' job for
 chanid 1009 @ 20100218200600, current time is outside of the Job Queue
 processing window.

 Broadcast message from root at Server
         (unknown) at 21:03 ...

 The system is going down for halt in 3 minutes!
 2010-02-18 21:03:26.804 CheckShutdownServer returned - OK to shutdown
 2010-02-18 21:03:26.819 Received a request to shut down this machine....
 response is OK.
 2010-02-18 21:03:26.822 Running the command to shutdown this computer :-
                                                 /sbin/shutdown -h +3
 2010-02-18 21:03:26.823 MainServer, Warning: Unknown socket closing
 MythSocket(0x95f51a0)
 2010-02-18 21:03:26.825 MythSocket(95f51a0:-1): writeStringList: Error,
 socket went unconnected.
                         We wrote 0 of 10 bytes with 1 errors
 2010-02-18 21:03:27.416 JobQueue: Currently set to run up to 1 job(s) max.
 2010-02-18 21:03:27.419 JobQueue: GetJobsInQueue: findJobs search bitmask
 4, found 10 total jobs
 2010-02-18 21:03:27.422 JobQueue: GetJobsInQueue: Ignore 'User Job - Save
 to MythVideo' Job for chanid 1001 @ 20090112223400 in Finished state.
 }}}

 (The broadcast message from root announcing the shutdown on SBE appears on
 my terminal where I am running a tail -f mythbackend.log , and is not in
 the file).

 It does seem as though the slave backend breaks the connection with the
 master too quickly, since some socket comms fail immediately after it
 disconnects at 21:03:27

 Cheers, Simon.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7762#comment:15>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list