I don't have ssd unfortunately, but for some reason mythbackend starts late on my config. Meanwhile I have been digging into my system to try and cure this. I have added the following to /usr/share /mythtv/mythfrontend.sh (replace the logfile with whatever you like.)
LOGFILE="/var/log/winebox.log" LOGENTRY="$(date +"%b %d %T") Mythfrontend.sh:" echo $LOGENTRY "Are mysql, mythbackend and lirc runnning" | tee -a $LOGFILE delay=30 while [ ! "$(pidof mysqld)" ] && [ "$delay" -gt "0" ]; do let delay-- sleep 1 echo $LOGENTRY No mysqld yet. Delay: $delay | tee -a $LOGFILE done if [ "$(pidof mysqld)" ]; then echo $LOGENTRY mysqld started. pid is $(pidof mysqld) | tee -a $LOGFILE fi while [ -z "$(pidof mythbackend)" ] && [ "$delay" -gt "0" ]; do let delay-- sleep 1 echo $LOGENTRY No mythbackend yet. Delay: $delay | tee -a $LOGFILE done if [ "$(pidof mythbackend)" ]; then echo $LOGENTRY mythbackend started. pid is $(pidof mythbackend) | tee -a $LOGFILE fi while [ ! "$(pidof lircd)" ] && [ "$delay" -gt "0" ]; do let delay-- sleep 1 echo $LOGENTRY No lircd yet. Delay: $delay | tee -a $LOGFILE done if [ "$(pidof lircd)" ]; then echo $LOGENTRY lircd started. pid is $(pidof lircd) | tee -a $LOGFILE fi The following is from the winbox.log at startup at 1:00 at night (for getting the EPG) Nov 16 01:00:51 Startdvb: Winebox starting up. Nov 16 01:00:54 Mythfrontend.sh: Are mysql, mythbackend and lirc runnning Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 30 Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 29 Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 28 Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 27 Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 26 Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 25 Nov 16 01:00:54 Mythfrontend.sh: No mysqld yet. Delay: 24 Nov 16 01:00:54 Mythfrontend.sh: mysqld started. pid is 2506 Nov 16 01:00:54 Mythfrontend.sh: mythbackend started. pid is 2525 Nov 16 01:00:54 Mythfrontend.sh: No lircd yet. Delay: 23 Nov 16 01:00:54 Mythfrontend.sh: No lircd yet. Delay: 22 Nov 16 01:00:54 Mythfrontend.sh: No lircd yet. Delay: 21 Nov 16 01:00:54 Mythfrontend.sh: lircd started. pid is 2892 Nov 16 01:30:30 Setwakeup: Setting wake-up time to Mon Nov 16 20:45:00 CET 2009 Still I get an error that the backend is not found in either mythwelcome or mythfrontend (they start close after eachother and I can't be certain who gives the error). The error disappears quickly and the system works from then on. >From mythwelcome.log I have: 2009-11-16 01:01:04.705 Using runtime prefix = /usr 2009-11-16 01:01:04.705 Using configuration directory = /home/mythuser/.mythtv 2009-11-16 01:01:04.706 Empty LocalHostName. 2009-11-16 01:01:04.706 Using localhost value of winebox 2009-11-16 01:01:04.706 Configuration::Load - Error parsing: /home/mythuser/.mythtv/config.xml at line: 1 col\ umn: 1 2009-11-16 01:01:04.706 Configuration::Load - Error Msg: unexpected end of file 2009-11-16 01:01:04.709 New DB connection, total: 1 2009-11-16 01:01:04.711 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:04.711 Closing DB connection named 'DBManager0' 2009-11-16 01:01:04.774 ScreenSaverX11Private: Gnome screen saver support enabled 2009-11-16 01:01:04.775 DPMS is active. 2009-11-16 01:01:04.795 Primary screen: 0. 2009-11-16 01:01:04.795 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:04.796 Using screen 0, 1920x1080 at 0,0 2009-11-16 01:01:04.833 MythUI Image Cache size set to 20971520 bytes 2009-11-16 01:01:04.860 Primary screen: 0. 2009-11-16 01:01:04.860 Using screen 0, 1920x1080 at 0,0 2009-11-16 01:01:04.884 Using theme base resolution of 1280x720 2009-11-16 01:01:04.910 LIRC: Successfully initialized '/dev/lircd' using '/home/mythuser/.mythtv/lircrc' conf\ ig 2009-11-16 01:01:04.910 JoystickMenuThread Error: Joystick disabled - Failed to read /home/mythuser/.mythtv/jo\ ystickmenurc 2009-11-16 01:01:05.290 Using the Qt painter 2009-11-16 01:01:05.602 Loaded base theme from /usr/share/mythtv/themes/Mythbuntu/base.xml 2009-11-16 01:01:05.639 Loaded base theme from /usr/share/mythtv/themes/default-wide/base.xml 2009-11-16 01:01:05.660 Loaded base theme from /usr/share/mythtv/themes/default/base.xml 2009-11-16 01:01:05.661 Unable to load window 'backgroundwindow' from base 2009-11-16 01:01:05.664 Loading window theme from /usr/share/mythtv/themes/Mythbuntu/welcome-ui.xml 2009-11-16 01:01:05.892 MythContext: Connecting to backend server: 192.168.0.45:6543 (try 1 of 1) 2009-11-16 01:01:05.898 Connection to master server timed out. Either the server is down or the master server settings in mythtv-settings does not contain the proper IP address 2009-11-16 01:01:05.984 mythshutdown --startup returned: 0 2009-11-16 01:01:10.900 MythContext: Connecting to backend server: 192.168.0.45:6543 (try 1 of 1) 2009-11-16 01:01:10.918 Using protocol version 50 2009-11-16 01:01:10.918 Using protocol version 50 2009-11-16 01:04:01.596 MythWelcome received a SCHEDULE_CHANGE event 2009-11-16 01:06:54.730 MythWelcome received a SCHEDULE_CHANGE event 2009-11-16 01:11:02.206 MythWelcome received a SCHEDULE_CHANGE event 2009-11-16 01:15:59.451 MythWelcome received a SCHEDULE_CHANGE event 2009-11-16 01:22:01.193 MythWelcome received a SCHEDULE_CHANGE event 2009-11-16 01:28:00.595 MythWelcome received a SCHEDULE_CHANGE event 2009-11-16 01:30:30.971 MythWelcome received a SHUTDOWN_NOW event The corresponding entries in mythbackend.log are : 2009-11-16 01:00:47.312 mythbackend version: branches/release-0-22-fixes [22814] www.mythtv.org 2009-11-16 01:00:47.766 Using runtime prefix = /usr 2009-11-16 01:00:48.046 Using configuration directory = /home/mythtv/.mythtv 2009-11-16 01:00:48.324 Empty LocalHostName. 2009-11-16 01:00:48.821 Using localhost value of winebox 2009-11-16 01:00:49.867 New DB connection, total: 1 2009-11-16 01:00:50.357 Unable to connect to database! 2009-11-16 01:00:51.000 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) ................................................................................ 2009-11-16 01:00:54.126 UPnPautoconf() - No UPnP backends found 2009-11-16 01:00:55.117 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'] 2009-11-16 01:01:00.040 Deleting UPnP client... 2009-11-16 01:01:00.619 Failed to init MythContext, exiting. 2009-11-16 01:01:00.796 mythbackend version: branches/release-0-22-fixes [22814] www.mythtv.org 2009-11-16 01:01:00.907 Using runtime prefix = /usr 2009-11-16 01:01:01.091 Using configuration directory = /home/mythtv/.mythtv 2009-11-16 01:01:01.161 Empty LocalHostName. 2009-11-16 01:01:01.205 Using localhost value of winebox 2009-11-16 01:01:01.211 New DB connection, total: 1 2009-11-16 01:01:01.500 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:01.605 Closing DB connection named 'DBManager0' 2009-11-16 01:01:01.760 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:02.250 Current MythTV Schema Version (DBSchemaVer): 1244 2009-11-16 01:01:02.379 MythBackend: Starting up as the master server. 2009-11-16 01:01:03.506 New DB connection, total: 2 2009-11-16 01:01:03.609 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:04.359 New DB connection, total: 3 2009-11-16 01:01:04.397 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:05.574 New DB scheduler connection 2009-11-16 01:01:05.664 Connected to database 'mythconverg' at host: localhost 2009-11-16 01:01:05.976 Enabling Upnpmedia rebuild thread. 2009-11-16 01:01:07.383 Main::Registering HttpStatus Extension 2009-11-16 01:01:07.384 Enabled verbose msgs: important general 2009-11-16 01:01:07.421 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min 2009-11-16 01:01:08.940 Reschedule requested for id -1. 2009-11-16 01:01:10.788 Scheduled 27 items in 1.8 = 1.50 match + 0.34 place 2009-11-16 01:01:10.797 AUTO-Startup assumed 2009-11-16 01:01:10.924 MainServer::ANN Monitor 2009-11-16 01:01:10.933 adding: winebox as a client (events: 0) 2009-11-16 01:01:10.934 MainServer::ANN Monitor 2009-11-16 01:01:10.937 adding: winebox as a client (events: 1) I hope this can shed some light on the bugs we see. -- mythbuntu starts frontend to fast https://bugs.launchpad.net/bugs/470672 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs