[Solved]MythBackend keeps Crashing

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
thestraw0039
Junior
Posts: 15
Joined: Wed Jun 01, 2016 1:00 am
United States of America

[Solved]MythBackend keeps Crashing

Post by thestraw0039 »

I have upgraded to MythTV 29 and also went from Mythbuntu 14.04 to 16.04. The upgrade seemed to go fine, but for some reason mythtv-backend is in an endless loop of starting and then crashing. If I check out the log it is a these lines over and over again.

Code: Select all

Sep  9 00:13:58 Server mythbackend: mythbackend[4280]: N CoreContext mainserver.cpp:7981 (reconnectTimeout) MainServer: Connecting to master server: 192.168.1.100:6543
Sep  9 00:13:58 Server mythbackend: mythbackend[4280]: N CoreContext mainserver.cpp:7992 (reconnectTimeout) MainServer: Connected successfully
Sep  9 00:14:28 Server mythbackend: mythbackend[4280]: E MythSocketThread(-1) mythsocket.cpp:827 (ReadStringListReal) MythSocket(1dcff50:102): ReadStringList: Error, timed out after 30000 ms.
Sep  9 00:14:28 Server mythbackend: mythbackend[4280]: W MythSocketThread(-1) mainserver.cpp:7694 (connectionClosed) MainServer: Unknown socket closing MythSocket(0x1dcff50)
Sep  9 00:14:28 Server mythbackend: mythbackend[4280]: E CoreContext mythsocket.cpp:369 (SendReceiveStringList) MythSocket(1dcff50:-1): No response.
Sep  9 00:14:28 Server mythbackend: mythbackend[4280]: E CoreContext mainserver.cpp:8030 (reconnectTimeout) MainServer: Failed to open master server socket, timeout
Sep  9 00:14:28 Server mythbackend: mythbackend[4280]: I MythSocketThread(102) mainserver.cpp:7683 (connectionClosed) Control sock(1dd1b10) disconnected
Any help would be appreciated.
Last edited by thestraw0039 on Sat Sep 09, 2017 6:13 pm, edited 1 time in total.
User avatar
pgbennett
Developer
Posts: 511
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythBackend keeps Crashing

Post by pgbennett »

I suggest you run mythtv-setup, General, Host Address Backend Setup. It looks like the master backend settings are wrong. Make sure "This server is the master backend" is set on the master backend and IP addresses are correct.
thestraw0039
Junior
Posts: 15
Joined: Wed Jun 01, 2016 1:00 am
United States of America

Re: MythBackend keeps Crashing

Post by thestraw0039 »

pgbennett wrote:I suggest you run mythtv-setup, General, Host Address Backend Setup. It looks like the master backend settings are wrong. Make sure "This server is the master backend" is set on the master backend and IP addresses are correct.
I was doing some reading and some people were having a problem with the mythtv-backend.service, so I stopped it via systemctl and ran both mythtv-setup and mythbackend from a terminal and noticed this in both logs

Code: Select all

Sep  9 07:43:01 Server mythbackend: mythbackend[15673]: I CoreContext dbcheck.cpp:480 (UpgradeTVDatabaseSchema) Waiting for database schema upgrade lock
I then realized I still had a frontend on I was going to upgrade that had crashed and said it was going to restart mythfrontend but it didn't, it was just sitting at the desktop. I then decided to turn the frontend computer off and try again. After that I was able to do the database upgrade and have successfully started mythbackend, seems to be working fine so far.
Post Reply