Mythtv misbehaving- please help!

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

Moderator: Forum Moderators

Mythtv misbehaving- please help!

Postby itlarson » Mon May 15, 2017 11:34 pm

I have a combined frontend/backend that's causing all kinds of problems. Sometimes programs don't record, another time one kept recording for 12 hours. The frontend will act hung sometimes, and the folowing apears in the logs, repeatint over and over:

May 15 12:00:38 jsmyth mythfrontend.real[1483]: mythfrontend[1483]: I Reconnect mythcorecontext.cpp:436 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
May 15 12:00:45 jsmyth mythfrontend.real[1483]: mythfrontend[1483]: E MythSocketThread(-1) mythsocket.cpp:858 (ReadStringListReal) MythSocket(7ff8f4009210:39): ReadStringList: Error, timed out after 7000 ms.
May 15 12:00:45 jsmyth mythfrontend.real[1483]: mythfrontend[1483]: C Reconnect mythcorecontext.cpp:1549 (CheckProtoVersion) 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 due to bugs or hardware failure.

Any ideas what is causing this? This is a machine that was upgraded to mythbuntu 16.04 a few weeks ago. I used the database from the old install- could something have gone wrong with the restore?
United States of Americaitlarson
Newcomer
 
Posts: 6
Joined: Tue Dec 20, 2016 5:41 pm

Re: Mythtv misbehaving- please help!

Postby dizygotheca » Tue May 16, 2017 8:19 am

That's just indicating that the backend isn't happy about something.
Please pastebin a backend log https://www.mythtv.org/wiki/Posting_Logs
And confirm you're not low on disk-space.
User avatar
Great Britaindizygotheca
Developer
 
Posts: 219
Joined: Wed Sep 03, 2014 9:02 am

Re: Mythtv misbehaving- please help!

Postby itlarson » Wed May 17, 2017 1:25 am

Here's the backup log from the time period of the previous post:
https://pastebin.com/RPHAhZcd

Unfortunately the frontend log doesn't go that far back, and even a single day is too much for pastebin. anyway it's entirely full of stuff like this:

May 15 01:50:48 jsmyth mythfrontend.real: mythfrontend[1483]: E MythSocketThread(-1) mythsocket.cpp:858 (ReadStringListReal) MythSocket(7ff8f404a270:39): ReadStringList: Error, timed out after 7000 ms.
May 15 01:50:48 jsmyth mythfrontend.real: mythfrontend[1483]: C Reconnect mythcorecontext.cpp:1549 (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.
May 15 01:50:48 jsmyth mythfrontend.real: mythfrontend[1483]: I PlaybackBoxHelper mythcorecontext.cpp:436 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
May 15 01:50:55 jsmyth mythfrontend.real: mythfrontend[1483]: E MythSocketThread(-1) mythsocket.cpp:858 (ReadStringListReal) MythSocket(7ff99c003f70:39): ReadStringList: Error, timed out after 7000 ms.
May 15 01:50:55 jsmyth mythfrontend.real: mythfrontend[1483]: C PlaybackBoxHelper mythcorecontext.cpp:1549 (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.
May 15 01:50:55 jsmyth mythfrontend.real: mythfrontend[1483]: I Reconnect mythcorecontext.cpp:436 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
May 15 01:51:02 jsmyth mythfrontend.real: mythfrontend[1483]: E MythSocketThread(-1) mythsocket.cpp:858 (ReadStringListReal) MythSocket(7ff8f40043a0:39): ReadStringList: Error, timed out after 7000 ms.
May 15 01:51:02 jsmyth mythfrontend.real: mythfrontend[1483]: C Reconnect mythcorecontext.cpp:1549 (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.
May 15 01:51:07 jsmyth mythfrontend.real: mythfrontend[1483]: I Reconnect mythcorecontext.cpp:436 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
May 15 01:51:14 jsmyth mythfrontend.real: mythfrontend[1483]: E MythSocketThread(-1) mythsocket.cpp:858 (ReadStringListReal) MythSocket(7ff8f4009210:39): ReadStringList: Error, timed out after 7000 ms.
May 15 01:51:14 jsmyth mythfrontend.real: mythfrontend[1483]: C Reconnect mythcorecontext.cpp:1549 (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.
May 15 01:51:14 jsmyth mythfrontend.real: mythfrontend[1483]: I PlaybackBoxHelper mythcorecontext.cpp:436 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
May 15 01:51:21 jsmyth mythfrontend.real: mythfrontend[1483]: E MythSocketThread(-1) mythsocket.cpp:858 (ReadStringListReal) MythSocket(7ff99c010a60:39): ReadStringList: Error, timed out after 7000 ms.
May 15 01:51:21 jsmyth mythfrontend.real: mythfrontend[1483]: C PlaybackBoxHelper mythcorecontext.cpp:1549 (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
United States of Americaitlarson
Newcomer
 
Posts: 6
Joined: Tue Dec 20, 2016 5:41 pm

Re: Mythtv misbehaving- please help!

Postby MikeB2013 » Wed May 17, 2017 10:32 am

From a quick look at the mythbackend log you have multiple issues:

1. The version of mythtv running is old (April 2016)
Code: Select all
May 11 17:58:05 jsmyth mythbackend: mythbackend[1013]: C thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) mythbackend version: fixes/0.28 [v0.28-2-g15cf421] www.mythtv.org

2. There is a problem with one of your dvb tuners
Code: Select all
May 11 17:58:08 jsmyth mythbackend: mythbackend[1013]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[11](): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)


3. There are multiple write permission errors in StorageGroups for user mythtv
Code: Select all
May 11 17:58:13 jsmyth mythbackend: mythbackend[1013]: E CoreContext storagegroup.cpp:790 (CheckAllStorageGroupDirs) SG(DB Backups): Group 'DB Backups' wants to use directory '/home/jsl-sll/backup/', but this directory is not writeable.
May 11 17:58:13 jsmyth mythbackend: mythbackend[1013]: E CoreContext storagegroup.cpp:790 (CheckAllStorageGroupDirs) SG(Pictures): Group 'Pictures' wants to use directory '/home/jsl-sll/Pictures/', but this directory is not writeable.
May 11 17:58:13 jsmyth mythbackend: mythbackend[1013]: E CoreContext storagegroup.cpp:790 (CheckAllStorageGroupDirs) SG(Coverart): Group 'Coverart' wants to use directory '/home/jsl-sll/Pictures/', but this directory is not writeable.
May 11 17:58:13 jsmyth mythbackend: mythbackend[1013]: E CoreContext storagegroup.cpp:790 (CheckAllStorageGroupDirs) SG(Fanart): Group 'Fanart' wants to use directory '/home/jsl-sll/Pictures/', but this directory is not writeable.
May 11 17:58:13 jsmyth mythbackend: mythbackend[1013]: E CoreContext storagegroup.cpp:790 (CheckAllStorageGroupDirs) SG(Screenshots): Group 'Screenshots' wants to use directory '/home/jsl-sll/Pictures/', but this directory is not writeable.
May 11 17:58:13 jsmyth mythbackend: mythbackend[1013]: E CoreContext storagegroup.cpp:790 (CheckAllStorageGroupDirs) SG(Banners): Group 'Banners' wants to use directory '/home/jsl-sll/Pictures/', but this directory is not writeable.


First thing you need to do is to update to latest 0.28/fixes, assuming you are running Ubuntu do the following in a terminal
Code: Select all
sudo add-apt-repository ppa:mythbuntu/0.28
sudo apt-get update
sudo apt-get dist-upgrade


Now reboot the pc (may not be strictly necessary but other updates may have been pulled in - a clean boot when trouble shooting is good)

For the other issues more detail on your setup is needed like what tuners you have and what StroageGroups you have setup.
A pastebin of the output from dmesg after the reboot would help

Mike
Great BritainMikeB2013
Senior
 
Posts: 104
Joined: Mon Jul 25, 2016 4:16 pm

Re: Mythtv misbehaving- please help!

Postby itlarson » Thu May 18, 2017 2:32 am

Ok- I did the updates, some chmod 777 's, deleted the entry for a card that is no longer installed and re-scanned both existing tuners. It's workin fine right now, and I will let you know if that changes.
United States of Americaitlarson
Newcomer
 
Posts: 6
Joined: Tue Dec 20, 2016 5:41 pm

Re: Mythtv misbehaving- please help!

Postby itlarson » Sat May 20, 2017 9:16 pm

Seems to be working much better. Thanks for your help.
United States of Americaitlarson
Newcomer
 
Posts: 6
Joined: Tue Dec 20, 2016 5:41 pm


Return to Troubleshooting



Who is online

Users browsing this forum: No registered users and 2 guests