[SOLVED] "MythTV could not connect to the database"

For discussion of topics specific to MythTV on linux
Post Reply
tvuk
Junior
Posts: 36
Joined: Sat Nov 08, 2014 12:29 pm
Great Britain

[SOLVED] "MythTV could not connect to the database"

Post by tvuk »

My instance of MythTV (latest version, running on Mythbuntu) shows me on startup the screen from which I select my country/language and next says "could not connect to the database" and prompts me to "OK" the database config settings.
From that point on, it all seems to work fine and can connect successfully.
But if I (cleanly) restart the machine, it goes back to asking me to pick my country/language and again "could not connect to the database"
Last edited by tvuk on Wed Nov 12, 2014 11:42 pm, edited 1 time in total.
wesnewell
Senior
Posts: 731
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: "MythTV could not connect to the database"

Post by wesnewell »

I've got a frontend box using an SSD drive that does the same thing because it boots too fast for the network to initialize in time I guess. I just hit Escape a couple of times so it reloads and works fine after that. Not enough of a bother for me to fix, but you could put a few seconds wait in the boot process before mythfrontend starts if it bothers you.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.
tvuk
Junior
Posts: 36
Joined: Sat Nov 08, 2014 12:29 pm
Great Britain

Re: "MythTV could not connect to the database"

Post by tvuk »

Thanks!
I have an SSD too. I put this into my /usr/bin/mythfrontend and now its better:

Code: Select all

# sleep if network initialisation is incomplete
ping -c2 192.168.0.3 > /dev/null
if [ $? -ne 0 ]
then 
	sleep 3
fi
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: [SOLVED] "MythTV could not connect to the database"

Post by stuarta »

I had the same thing. I came to the conclusion that Network Manager was too slow setting up the interface, so I went back to the traditional /etc/network/interfaces way of configuring my network. That works just fine as well.
Post Reply