Mythbuntu 11.04 to 11.10 Upgrade Issues

I run two MythTV combined backend/ frontend servers, one with 1Tb of storage and the main one with 2Tb.

The former also doubles up as my upgrade test server, so this is the one which I’ve upgraded to Mythbuntu 11.10. Previous upgrades have been without fault, unfortunately this was not the case this time around!

Problem #1 – No Display after upgrade or subsequent reboots

This is the guts of the solution to the startx issue. In summary the screen appears to be blank, this can be fixed by do the folowing. I did this via another PC and SSHing into the affected MythTV PC




$ sudo su
# apt-get update
# apt-get upgrade
# apt-get remove unity-greeter
# apt-get install lightdm
# cd /etc/lightdm/
# mv lightdm.conf lightdm.conf.old
# pico lightdm.conf

In the lightdm.conf file put the following:




autologin-user=<<your mythtv user ID, ie: superm1 or whatever>>

Problem #2 – MythTV Backend not automatically starting

I did some digging around and checked out the following:

1. mysql.txt is correctly sym linked and has the right ownership and permissions.

2. I can start mythbackend manually (ALT-F2) or add it in to Application Autostart, although on reboot this gets unticked?!? Using either method Mythbackend works so I think that this is correctly configured.

3. My mythbackend.log file is producing the following when mythbackend fails to start. I’m using a combined front/ backend and a static IP

Would you like to configure the database connection now? [no]
[console is not interactive, using default ‘no’]
2011-10-20 19:20:48.841 Deleting UPnP client…
2011-10-20 19:20:49.555 Failed to init MythContext.
2011-10-20 19:21:04.897 mythbackend version: fixes/0.24 [v0.24.1-80-g1de0431]
2011-10-20 19:21:04.938 Using runtime prefix = /usr
2011-10-20 19:21:04.971 Using configuration directory = /home/mythtv/.mythtv
2011-10-20 19:21:05.005 Empty LocalHostName.
2011-10-20 19:21:05.039 Using localhost value of mythtvtest
2011-10-20 19:21:05.084 New DB connection, total: 1
2011-10-20 19:21:05.114 Unable to connect to database!
2011-10-20 19:21:05.148 Driver error was [1/2002]:
QMYSQL: Unable to connect
Database error was:
Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

………………………………………….. …………………………
2011-10-20 19:21:07.227 UPnPautoconf() – No UPnP backends found
2011-10-20 19:21:07.260 No UPnP backends found

No UPnP backends found

Would you like to configure the database connection now? [no]
[console is not interactive, using default ‘no’]
2011-10-20 19:21:07.505 Deleting UPnP client…
2011-10-20 19:21:08.225 Failed to init MythContext.

If I run mythbackend via ALT-F2, nothing gets written to the log file and MythFrontend works fine.

On the Mythbuntu section on Ubuntu forums it was suggested that Mythbackend may be timing out on MySQL.

This got me thinking! After the upgrade to 11.10, on boot I was always getting the messgesWaiting for Network configuration…

Waiting up to 60 more seconds for network configuration

Whilst this was a pain as it added 2 minutes to the boot, networking was working fine. To find out what was happening I rebooted the PC.

When the Mythbuntu splash screen appeared I pressed a key, I think any key at this stage allows you to toggle between splash and the message screen so you can see boot progress. 

This is what is happening:

Stopping userspace boot splash [ok]
Starting Mythbuntu backend [ok]
Waiting for Network configuration
Starting Mythbuntu backend [ok]
Starting Mythbuntu backend [ok]
Starting Mythbuntu backend [ok]
Starting Mythbuntu backend [fail]
Stopping Mythbuntu backend [ok]
Waiting up to 60 more seconds for network configuration

The “Waiting for Network configuration” was adding a 2 minute time delay, causing mythbackend to time out (reason unknown). My PC has two network cards of which only one is connected and configured.

I checked my /etc/network/interfaces file as this PC uses a static address and historically Network Manager is not static IP address friendly! I found the following:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

# iface eth0 inet static
# address
# netmask
# broadcast
# gateway

auto eth1
# iface eth1 inet dhcp

iface eth1 inet static

I commented out the offending line relating to eth0 which is not connected.

auto eth0
iface eth0 inet dhcp

Rebooted and problem solved, message “Waiting for Network configuration” did not come up, Mythbuntu booted up normally and quickly and MythWelcome worked.

This was not a problem before the upgrade, so I assume Ubuntu 11.10 does more rigorous testing of your network interfaces before giving up. Unfortunately this takes nearly 2 minutes which is enough time for mythbackend to time.

Powered by Blogilo


4 thoughts on “Mythbuntu 11.04 to 11.10 Upgrade Issues

  1. Thanks for the tip regarding startx.

    Use this to watch TV after ditching are satellite provider, as the wife is training to do a PGCE.

    Don’t knowwhat I would have done without this initial fix a lot of time and hassle saved.

    Thanks for posting

  2. thankyou. – re tip for problem 1.
    Incidentally, I used f1 to bring up a terminal on the myth machine, rather than ssh – might be helpful for some,
    I also used nano rather than pico – just because I find it more familiar.
    Lightdm was already installed as the latest version, it seems, so no installation of that happened. Currently start-up, on reboot, stalled at “checking battery state”, but at least I can see a screen…..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s