[mythtv-users] everyday i have to make sure myth worked the day before

Brian J. Murrell brian at interlinx.bc.ca
Fri Apr 1 16:36:21 UTC 2011


On 11-04-01 07:40 AM, Mark Lord wrote:
> 
> When I first set up Mythtv (0.18, I think, years ago), the back-end would
> mysteriously die from time to time, resulting in missed recordings.

Oh but would it only be as basic as a "just dies" issue.  Those are
relatively easy to solve,

> I don't know if it still does that today (0.24), because I added a "nanny"
> task to babysit the back-end, and restart it whenever it dies abnormally
> (but not for SIGTERM or SIGQUIT, system shutdown).

Right.  An easy workaround for that kind of problem to be sure.  Almost
just as easy to fix the actual problem too though.

But my problem is not a mythbackend that just dies but rather one that
continues to live but is deadlocked and doesn't record and/or doesn't
communicate with frontends necessitating a restart of the backend
process to "right" it.

In one example the backend log reports:


2011-03-30 20:00:20.502 MythCoreContext: Connecting to backend server:
10.75.22.
2:6543 (try 1 of 5)
2011-03-30 20:00:20.553 MythCoreContext: Connecting to backend server:
10.75.22.2:6543 (try 1 of 5)
2011-03-30 20:00:27.503 MythSocket(9c167a8:11): readStringList: Error,
timed out after 7000 ms.
2011-03-30 20:00:27.504 Protocol version check failure.
                        The response to MYTH_PROTO_VERSION was empty.
                        This happens when the backend is too busy to
respond,
                        or has deadlocked in due to bugs or hardware
failure.
2011-03-30 20:00:27.554 MythSocket(9c16ba0:12): readStringList: Error,
timed out after 7000 ms.
2011-03-30 20:00:27.555 Protocol version check failure.
                        The response to MYTH_PROTO_VERSION was empty.
                        This happens when the backend is too busy to
respond,
                        or has deadlocked in due to bugs or hardware
failure.
2011-03-30 20:00:27.556 MythCoreContext: Connecting to backend server:
10.75.22.2:6543 (try 1 of 5)
2011-03-30 20:00:34.561 MythSocket(9c733b8:11): readStringList: Error,
timed out after 7000 ms.
2011-03-30 20:00:34.562 Protocol version check failure.
                        The response to MYTH_PROTO_VERSION was empty.
                        This happens when the backend is too busy to
respond,
                        or has deadlocked in due to bugs or hardware
failure.
2011-03-30 20:00:34.563 Unable to find active recorder for this
recording, realtime flagging will not be enabled.
2011-03-30 20:00:34.631 MythCoreContext: Connecting to backend server:
10.75.22.2:6543 (try 1 of 5)
2011-03-30 20:00:41.643 MythSocket(9c16ba0:11): readStringList: Error,
timed out after 7000 ms.
2011-03-30 20:00:41.643 Protocol version check failure.
                        The response to MYTH_PROTO_VERSION was empty.
                        This happens when the backend is too busy to
respond,
                        or has deadlocked in due to bugs or hardware
failure.
2011-03-30 20:00:41.644 MythCoreContext: Connecting to backend server:
10.75.22.2:6543 (try 1 of 5)
2011-03-30 20:00:42.068 AFD: Opened codec 0x9c71aa0, id(MPEG2VIDEO)
type(Video)
2011-03-30 20:00:42.070 AFD: codec AC3 has 2 channels
2011-03-30 20:00:42.071 AFD: Opened codec 0x9c72680, id(AC3) type(Audio)
2011-03-30 20:00:42.072 AFD: codec AC3 has 0 channels
2011-03-30 20:00:42.073 AFD: Opened codec 0x9c72c30, id(AC3) type(Audio)
2011-03-30 20:00:48.649 MythSocket(9c64610:11): readStringList: Error,
timed out after 7000 ms.
2011-03-30 20:00:48.650 Protocol version check failure.
                        The response to MYTH_PROTO_VERSION was empty.
                        This happens when the backend is too busy to
respond,
                        or has deadlocked in due to bugs or hardware
failure.
2011-03-30 20:16:59.863 UPnpMedia: BuildMediaMap VIDEO scan starting in
:/video/mythvideo:
2011-03-30 20:17:00.023 UPnpMedia: BuildMediaMap Done. Found 118 objects
2011-03-30 20:47:00.098 UPnpMedia: BuildMediaMap VIDEO scan starting in
:/video/mythvideo:
2011-03-30 20:47:00.271 UPnpMedia: BuildMediaMap Done. Found 118 objects
2011-03-30 21:00:00.538 TVRec(2): Changing from RecordingOnly to None

and so on and so on until the backend is restarted.  Meanwhile frontends
cannot connect and in this particular instance, recordings failed to start.

b.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20110401/a7286c6b/attachment.bin 


More information about the mythtv-users mailing list