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

David Fishburn dfishburn.mythtv at gmail.com
Sat Jul 30 10:55:43 UTC 2011


> Message: 17
> Date: Fri, 29 Jul 2011 15:25:14 -0400
> From: "Michael T. Dean" <mtdean at thirdcontact.com>
>
> 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.

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)
2011-07-30 06:44:39.355 PlaybackBox Error: SortedList is Empty
2011-07-30 06:44:39.462 PlaybackBox Error: SortedList is Empty
2011-07-30 06:44:39.355 PlaybackBox Error: SortedList is Empty
2011-07-30 06:44:39.462 PlaybackBox Error: SortedList is Empty
2011-07-30 06:44:39.602 Using protocol version 63
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:39.921 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1048_20110728083000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.132 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1048_20110728083000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.144 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1051_20070113120000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.165 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1010_20110727200000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.165 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1010_20110727200000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.173 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1015_20110727150000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.197 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1051_20070113120000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.210 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1010_20110727200000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:40.217 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1015_20110727150000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:41.296 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1048_20110728083000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:41.296 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1048_20110728083000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:41.878 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1007_20070319210000.mpg' file not found
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:44:41.939 PlaybackBoxHelper Error: CHECK_AVAILABILITY
'myth://127.0.0.1:6543/1007_20070319210000.mpg' file not found
2011-07-30 06:44:42.923 TV: Attempting to change from None to
WatchingPreRecorded
2011-07-30 06:44:43.535 AFD Warning: ScanATSCCaptionStreams() called with no PMT
2011-07-30 06:44:43.535 AFD: Opened codec 0x96bb200, id(MPEG2VIDEO) type(Video)
2011-07-30 06:44:43.535 AFD: codec MP2 has 2 channels
2011-07-30 06:44:43.535 AFD: Opened codec 0x96bc370, id(MP2) type(Audio)
2011-07-30 06:44:43.908 AO: Opening audio device 'default' ch 2(2) sr
48000 sf signed 16 bit reenc 0
2011-07-30 06:44:44.088 ALSA, Error: Setting hardware audio buffer size to 128
2011-07-30 06:44:43.908 AO: Opening audio device 'default' ch 2(2) sr
48000 sf signed 16 bit reenc 0
2011-07-30 06:44:44.088 ALSA, Error: Setting hardware audio buffer size to 128
2011-07-30 06:44:44.089 ALSA, Error: Error opening
/proc/asound/card0/pcm0p/sub0/prealloc: Permission denied.
2011-07-30 06:44:44.089 ALSA, Error: Try to manually increase audio
buffer with: echo 128 | sudo tee
/proc/asound/card0/pcm0p/sub0/prealloc
2011-07-30 06:44:44.089 ALSA, Error: Unable to sufficiently increase
ALSA hardware buffer size - underruns are likely
2011-07-30 06:44:44.241 AudioPlayer: Enabling Audio
2011-07-30 06:44:44.388 VideoOutputXv: XVideo Adaptor Name: 'VMware
Video Engine'
2011-07-30 06:44:44.512 OSD: Base theme size: 1280x720
2011-07-30 06:44:44.512 OSD: Scaling factors: 0.375x0.666667
2011-07-30 06:44:44.530 [mpeg2video @ 0x6b2dae0]warning: first frame
is no keyframe
2011-07-30 06:44:44.551 [mpeg2video @ 0x6b2dae0]warning: first frame
is no keyframe
2011-07-30 06:44:44.715 OSD: Base theme size: 1280x720
2011-07-30 06:44:44.716 OSD: Scaling factors: 0.375x0.666667
2011-07-30 06:44:44.747 Player(0): Video timing method: USleep with busy wait
2011-07-30 06:44:44.752 TV: Changing from None to WatchingPreRecorded
2011-07-30 06:44:44.851 VideoOutput: Created YV12 OSD.
2011-07-30 06:44:44.752 TV: Changing from None to WatchingPreRecorded
2011-07-30 06:44:44.851 VideoOutput: Created YV12 OSD.
2011-07-30 06:44:56.267 TV: Attempting to change from
WatchingPreRecorded to None
2011-07-30 06:44:56.347 TV: Changing from WatchingPreRecorded to None
Application asked to unregister timer 0x0 which is not registered in
this thread. Fix application.
2011-07-30 06:45:10.645 Event socket closed. No connection to the backend.
2011-07-30 06:45:11.146 MythCoreContext: Connecting to backend server:
192.168.1.96:6543 (try 1 of 1)
2011-07-30 06:45:11.147 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

2011-07-30 06:45:16.163 MythCoreContext: Connecting to backend server:
192.168.1.96:6543 (try 1 of 1)
2011-07-30 06:45:23.168 MythSocket(950e058:24): readStringList: Error,
timed out after 7000 ms.
2011-07-30 06:45:23.168 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:45:23.169 MythCoreContext: Connecting to backend server:
192.168.1.96:6543 (try 1 of 1)
2011-07-30 06:45:30.174 MythSocket(87ab4e0:24): readStringList: Error,
timed out after 7000 ms.
2011-07-30 06:45:42.351 MythSocket(84e9018:24): readStringList:
Connection died (select).
2011-07-30 06:45:42.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:45:42.376 MythCoreContext: Connecting to backend server:
192.168.1.96:6543 (try 1 of 1)
2011-07-30 06:45:42.376 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

2011-07-30 06:45:42.384 MythCoreContext: Connecting to backend server:
192.168.1.96:6543 (try 1 of 1)
2011-07-30 06:45:42.385 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

2011-07-30 06:45:42.393 MythCoreContext: Connecting to backend server:
192.168.1.96:6543 (try 1 of 1)
2011-07-30 06:45:42.393 Connection to master server timed out.
----

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.

Thanks,
Dave


More information about the mythtv-users mailing list