[mythtv-users] Upgrading from old versions and preserving the database

Michael T. Dean mtdean at thirdcontact.com
Sat Jul 30 14:31:12 UTC 2011


On 07/30/2011 06:55 AM, David Fishburn wrote:
> From: "Michael T. Dean"
>> If you've already run any MythTV apps on the system with the new host
>> name, that will almost definitely fail (as described in the wiki entry
>> you quoted).
>>
>> If so, you need to re-restore the database, as above, then change host
>> name, then start your MythTV programs.
>>
>> Also, are you really using IP addresses as host names?  (Normally,
>> MythTV uses the same value as would be output by the command 'hostname',
>> but you can override the name using a LocalHostName override in
>> mysql.txt or config.xml.)
>>
>> If all that changed is your IP address--and your host name is the
>> same--just run mythtv-setup and correct the IP address for the master
>> backend and "this" backend.
> Okay, restored the database, used the --drop_database
> --create_database when restoring.
> Then I ran the change host values and everything seems to come up.
>
> Now I have copied over one of my recordings and made sure it plays on
> the test system.
>
> So at this point, things are looking like the restoring are going to
> be just fine.

Great.

> I have been running into an issue on the test (VM) instance of myth
> though.  After about a minute and a half, my frontend says it cannot
> find the backend.
>
> mythtv-backend.log
> -----
> 2011-07-30 06:33:33.093 New DB connection, total: 3
> 2011-07-30 06:33:33.094 Connected to database 'mythconverg' at host: localhost
> 2011-07-30 06:33:33.098 Connected to database 'mythconverg' at host: localhost
> 2011-07-30 06:33:33.168 MainServer::ANN Monitor
> 2011-07-30 06:33:33.176 adding: mythbuntu-test1104 as a client (events: 0)
> 2011-07-30 06:33:33.182 MainServer::ANN Monitor
> 2011-07-30 06:33:33.196 adding: mythbuntu-test1104 as a client (events: 1)
> 2011-07-30 06:33:34.107 Connecting to master server: 192.168.1.96:6543
> 2011-07-30 06:33:34.138 Connected successfully
> 2011-07-30 06:34:04.159 MythSocket(9de3968:31): readStringList: Error,
> timed out after 30000 ms.
> -----
>
> mythtv-frontend.log
> ----
> Starting mythfrontend.real..
> 2011-07-30 06:44:14.776 mythfrontend version: fixes/0.24
> [v0.24-243-g9ba3ece] www.mythtv.org
> 2011-07-30 06:44:14.777 Using runtime prefix = /usr
> 2011-07-30 06:44:14.777 Using configuration directory = /home/fishburn/.mythtv
> 2011-07-30 06:44:14.779 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
> 2011-07-30 06:44:15.585 Empty LocalHostName.
> 2011-07-30 06:44:15.585 Using localhost value of mythbuntu-test1104
> 2011-07-30 06:44:15.605 New DB connection, total: 1
> 2011-07-30 06:44:15.616 Connected to database 'mythconverg' at host: localhost
> 2011-07-30 06:44:15.632 Closing DB connection named 'DBManager0'
> 2011-07-30 06:44:15.633 Connected to database 'mythconverg' at host: localhost
> 2011-07-30 06:44:15.637 Current locale en_CA
> 2011-07-30 06:44:15.637 Reading locale defaults from
> /usr/share/mythtv//locales/en_ca.xml
> 2011-07-30 06:44:15.873 ScreenSaverX11Private: XScreenSaver support enabled
> 2011-07-30 06:44:15.884 DPMS is disabled.
> 2011-07-30 06:44:15.952 Desktop video mode: 1024x768 60.004 Hz
> 2011-07-30 06:44:16.009 Enabled verbose msgs:  important general
> 2011-07-30 06:44:16.014 Loading en_ca translation for module mythfrontend
> 2011-07-30 06:44:16.033 LIRC, Error: Failed to connect to Unix socket
> '/var/run/lirc/lircd'
>                          eno: No such file or directory (2)
> 2011-07-30 06:44:16.033 LIRC, Error: Failed to connect to Unix socket
> '/var/run/lirc/lircd'
>                          eno: No such file or directory (2)
> 2011-07-30 06:44:16.033 JoystickMenuThread: Joystick disabled - Failed
> to read /home/fishburn/.mythtv/joystickmenurc
> 2011-07-30 06:44:16.103 Using Frameless Window
> 2011-07-30 06:44:16.103 Using Full Screen Window
> 2011-07-30 06:44:16.120 Using the Qt painter
> 2011-07-30 06:44:16.770 New DB connection, total: 2
> 2011-07-30 06:44:16.771 Connected to database 'mythconverg' at host: localhost
> 2011-07-30 06:44:16.777 Current MythTV Schema Version (DBSchemaVer): 1264
> 2011-07-30 06:44:16.995 ThemeInfo, Warning: Unable to open
> themeinfo.xml for
> /usr/share/mythtv/themes/BlackCurves-OSD/themeinfo.xml
> 2011-07-30 06:44:16.996 ThemeInfo, Error: The theme
> (/usr/share/mythtv/themes/BlackCurves-OSD) is missing a themeinfo.xml
> file.
> 2011-07-30 06:44:16.997 ThemeInfo, Warning: Unable to open
> themeinfo.xml for /usr/share/mythtv/themes/Gray-OSD/themeinfo.xml
> 2011-07-30 06:44:16.997 ThemeInfo, Error: The theme
> (/usr/share/mythtv/themes/Gray-OSD) is missing a themeinfo.xml file.
> 2011-07-30 06:44:17.629 Registering Internal as a media playback plugin.
> 2011-07-30 06:44:17.679 MediaMonitorUnix::AddDevice() - empty device path.
> 2011-07-30 06:44:17.681 MediaMonitorUnix::AddDevice() - empty device path.
> 2011-07-30 06:44:17.682 MediaMonitorUnix::AddDevice() - empty device path.
> 2011-07-30 06:44:17.681 MediaMonitorUnix::AddDevice() - empty device path.
> 2011-07-30 06:44:17.682 MediaMonitorUnix::AddDevice() - empty device path.
> 2011-07-30 06:44:17.684 MonitorRegisterExtensions(0x100, gif,jpg,png)
> 2011-07-30 06:44:17.685 Loading en_ca translation for module mythgallery
> 2011-07-30 06:44:17.723 Current MythMusic Schema Version
> (MusicDBSchemaVer): 1017
> 2011-07-30 06:44:17.824 MonitorRegisterExtensions(0x40,
> mp3,mp2,ogg,oga,flac,wma,wav,ac3,oma,omg,atp,ra,dts,aac,m4a,aa3,tta,mka,aiff,swa,wv)
> 2011-07-30 06:44:17.842 Loading en_ca translation for module mythmusic
> 2011-07-30 06:44:17.865 Current MythVideo Schema Version
> (mythvideo.DBSchemaVer): 1038
> 2011-07-30 06:44:17.907 Loading en_ca translation for module mythvideo
> 2011-07-30 06:44:17.919 Loading en_ca translation for module mythweather
> 2011-07-30 06:44:17.923 NetworkControl: Listening for remote
> connections on port 6546
> 2011-07-30 06:44:18.172 Found mainmenu.xml for theme 'Terra'
> 2011-07-30 06:44:18.237 MythCoreContext: Connecting to backend server:
> 192.168.1.96:6543 (try 1 of 1)
> 2011-07-30 06:44:25.245 MythSocket(87cb7d8:43): readStringList: Error,
> timed out after 7000 ms.
> 2011-07-30 06:44:25.246 Protocol version check failure.
>                          The response to MYTH_PROTO_VERSION was empty.
>                          This happens when the backend is too busy to respond,
>                          The response to MYTH_PROTO_VERSION was empty.
>                          This happens when the backend is too busy to respond,
>                          or has deadlocked in due to bugs or hardware failure.
> 2011-07-30 06:44:25.246 MythCoreContext: Connecting to backend server:
> 192.168.1.96:6543 (try 1 of 1)
> 2011-07-30 06:44:32.250 MythSocket(923f530:43): readStringList: Error,
> timed out after 7000 ms.
> 2011-07-30 06:44:32.250 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 in due to bugs or hardware failure.
> 2011-07-30 06:44:32.348 MythCoreContext: Connecting to backend server:
> 192.168.1.96:6543 (try 1 of 1)
> 2011-07-30 06:44:39.351 MythSocket(93e07e8:43): readStringList: Error,
> timed out after 7000 ms.
> 2011-07-30 06:44:39.351 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 in due to bugs or hardware failure.
> 2011-07-30 06:44:39.352 MythCoreContext: Connecting to backend server:
> 192.168.1.96:6543 (try 1 of 1)
...
> ----

I was going to say that this is the "socket issue" that no developer has 
been able to reproduce, but ...

> dmesg
> ----
> [ 2982.827292] mythbackend[3275]: segfault at 50 ip 05feb65c sp
> bf974c40 error 4 in libQtCore.so.4.7.2[5f8f000+28a000]
> ----
>
> Any ideas, or additional logs I can gather?
>
> Mythbuntu 11-04.

If all that's happening is mythbackend is segfaulting, you'd expect that 
mythfrontend and mythpreviewgen and myth<whatever> couldn't connect to 
the backend because it's no longer running.

If so, we need you to get a debug backtrace, as described at 
http://www.mythtv.org/wiki/Debugging .  Note that you can install 
packages with the debug symbols, so there's no need for you to stop 
using packages or compile a package yourself or anything.

Mike


More information about the mythtv-users mailing list