Mailing List Archive

Random Master backend issues since upgrading to v29
I've now had the master backend stop responding a couple of times since
upgrading, mythweb stops responding, Frontends cant playback, theres
nothing of note in the backend logs and system load is normal (I may need
to add extra logging can anyone suggest what logging) and the only fix is
to restart the backend service

*Backend Before service restart*
Dec 18 18:37:55 mythtv mythbackend: mythbackend[13556]: N Expire
autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required Free
Space: 3.0 GB w/freq: 14 min
Dec 18 18:37:55 mythtv mythbackend: mythbackend[13556]: N Expire
autoexpire.cpp:637 (SendDeleteMessages) Expiring 273 MB for 4022 at
2017-11-08T05:53:00Z => "Thomas The Tank Engine & Friends":"Thomas the
Quarry Engine"
*(Have fixed permission on this file now)*

*Backend After service restart*
Dec 18 18:41:18 mythtv mythbackend: mythbackend[8071]: C thread_unknown
mythcommandlineparser.cpp:2619 (ConfigureLogging) mythbackend version:
fixes/29 [v29.0-59-g61d331c] www.mythtv.org
Dec 18 18:41:18 mythtv mythbackend: mythbackend[8071]: C thread_unknown
mythcommandlineparser.cpp:2621 (ConfigureLogging) Qt version: compile:
5.5.1, runtime: 5.5.1

*Frontend Logs*
Dec 18 18:36:08 zmythbox mythfrontend.real: mythfrontend[3849]: N
CoreContext mythmainwindow.cpp:3047 (ExitStandby) Leaving standby mode
Dec 18 18:36:08 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext tv_play.cpp:1094 (TV) TV::TV(): Creating TV object
Dec 18 18:36:08 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext mythdbcon.cpp:435 (PurgeIdleConnections) New DB connection,
total: 4
Dec 18 18:36:08 zmythbox mythfrontend.real: mythfrontend[3849]: N
CoreContext mythmainwindow.cpp:2963 (PauseIdleTimer) Suspending idle timer
Dec 18 18:36:08 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext tv_play.cpp:1316 (Init) TV::Init(): Created TvPlayWindow.
Dec 18 18:36:08 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext tv_play.cpp:2277 (HandleStateChange) TV::HandleStateChange():
Attempting to change from None to WatchingPreRecorded
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: E
MythSocketThread(-1) mythsocket.cpp:827 (ReadStringListReal)
MythSocket(be67510:52): ReadStringList: Error, timed out after 5000 ms.
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: C
CoreContext mythcorecontext.cpp:1636 (CheckProtoVersion) Protocol version
check failure.#012#011#011#011The response to MYTH_PROTO_VERSION was
empty.#012#011#011#011This happens when the backend is too busy to
respond,#012#011#011#011or has deadlocked due to bugs or hardware failure.
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: E
CoreContext remotefile.cpp:177 (openSocket) RemoteFile::openSocket(control
socket): Failed validation to server mythtv.seven.lan:6543
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: E
CoreContext fileringbuffer.cpp:371 (OpenFile)
FileRingBuf(myth://mythtv.seven.lan/4093_20171214164000.mpg):
RingBuffer::RingBuffer(): Failed to open remote file
(myth://mythtv.seven.lan/4093_20171214164000.mpg)
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext tv_play.cpp:2640 (HandleStateChange) TV::HandleStateChange():
Main UI disabled.
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext tv_play.cpp:426 (StartTV) TV::StartTV(): Entering main playback
loop.
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: I
CoreContext tv_play.cpp:428 (StartTV) TV::StartTV(): Exiting main playback
loop.
Dec 18 18:36:13 zmythbox mythfrontend.real: mythfrontend[3849]: N
CoreContext mythmainwindow.cpp:2968 (PauseIdleTimer) Resuming idle timer

any help or suggestions are welcome.

Cheers,

Anthony
Re: Random Master backend issues since upgrading to v29 [ In reply to ]
On 18/12/17 23:03, Anthony Giggins wrote:
> I've now had the master backend stop responding a couple of times since
> upgrading, mythweb stops responding, Frontends cant playback, theres
> nothing of note in the backend logs and system load is normal (I may
> need to add extra logging can anyone suggest what logging) and the only
> fix is to restart the backend service


Sounds like it's deadlocked for some reason.

You'll need to capture a core file and do some debugging so we can
try to identify what is deadlocking.

# gcore `pidof mythbackend`

to create the core file


Regards
Stuart
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Random Master backend issues since upgrading to v29 [ In reply to ]
On 19 December 2017 at 21:26, Stuart Auchterlonie <stuarta@squashedfrog.net>
wrote:

> On 18/12/17 23:03, Anthony Giggins wrote:
> > I've now had the master backend stop responding a couple of times since
> > upgrading, mythweb stops responding, Frontends cant playback, theres
> > nothing of note in the backend logs and system load is normal (I may
> > need to add extra logging can anyone suggest what logging) and the only
> > fix is to restart the backend service
>
>
> Sounds like it's deadlocked for some reason.
>
> You'll need to capture a core file and do some debugging so we can
> try to identify what is deadlocking.
>
> # gcore `pidof mythbackend`
>
> to create the core file
>
>
> Regards
> Stuart
>
>
Thanks I'll try both next time this happens.

Cheers,

Anthony