[mythtv-users] How to re-enable disconnected encoders on slave backend

Marc MERLIN marc_mtv at merlins.org
Tue Sep 23 05:17:48 UTC 2008


On Tue, Sep 23, 2008 at 04:24:59AM +0100, Nick Morrott wrote:
> >  However I still can't play old recordings on my slave backend:
> >
> >  2008-09-22 09:29:07.525 PlaybackBox::showActions(): Error, myth://192.168.205.3:6543/1003_20080920232900.mpg file not found
> 
> If you want to check in the database (take a backup first just in case):
> 
> mysql> SELECT DISTINCT `hostname` FROM `recorded` ORDER BY `hostname`;

Looks good:
mysql> SELECT DISTINCT `hostname` FROM `recorded` ORDER BY `hostname`;
+--------------------------+
| hostname                 |
+--------------------------+
| gargamel.svh.merlins.org | 
| myth                     | 
+--------------------------+

> This will list the different hosts that MythTV think recordings are
> stored on. If there are any disparities here between 'what was' and
> 'what is', you will get problems. Does the backend where you believe
> the missing file to reside agree have an IP address of '192.168.205.3'
> ?
 
Yes, and the file is there :)
gargamel:/var/spool/mythtv/recording.gargamel# l 1003_20080920232900.mpg
-rw-r--r-- 1 mythtv mythtv 2927334268 2008-09-21 01:02 1003_20080920232900.mpg
gargamel:~# host gargamel; host 192.168.205.3
gargamel.svh.merlins.org has address 192.168.205.3
3.205.168.192.in-addr.arpa domain name pointer gargamel.svh.merlins.org.

> If you reference this message with my reply to another of your
> messages, you may begin to see how your machines' identities are
> stored in the MythTV database.

Yes, looking at that now.

On Tue, Sep 23, 2008 at 04:13:35AM +0100, Nick Morrott wrote:
> >  Just to make sure, the slave can only get its settings from the mysql server
> >  on my master backend, so if the old IP of my backend has been fixed in all
> >  mythconverg tables in mysql, this shouldn't happen, right?
> >
> >  Is there some other place that I should have looked at/fixed?
> 
> In the settings table:
> 
> i) The Master Backend should have value='MasterServerIP',
> data=''your.ip.address' and hostname='NULL'.
> ii) Each backend (the master backend and any slaves) should have
> value='BackendServerIP', data='backend.ip.address' and
> hostname='your.hostname'.
> 
> mysql> SELECT * FROM `settings` WHERE `value` LIKE '%ServerIP%';
 
MasterServerIP  	192.168.205.61  myth
ZoneMinderServerIP 	192.168.205.61 	myth	(was 127.0.0.1)
BackendServerIP 	192.168.205.61 	myth
BackendServerIP 	192.168.205.3 	gargamel.svh.merlins.org
BackendServerIP 	192.168.205.62 	myth-lvr

Ah, so maybe the MasterServerIP is bad since it has 'myth' and not 'NULL'.
This doesn't seem to have helped though (although I haven't restarted the
master backend yet, due to an ongoing recording).
 
> You can also run:
> 
> mysql> SELECT DISTINCT `hostname` FROM `settings` ORDER BY `hostname`;
> 
> to see whether you have old/conflicting hostname entries in the settings table.

More stuff in there, including other occasional frontends.
mysql> SELECT DISTINCT `hostname` FROM `settings` ORDER BY `hostname`;
+-----------------------------+
| hostname                    |
+-----------------------------+
| NULL                        | 
| (none)                      | 
| gandalf.merlins.org         | 
| gandalfthewhite.merlins.org | 
| gargamel.svh.merlins.org    | 
| myth                        | 
| myth-lvr                    | 
| yourhost                    | 
+-----------------------------+

but I'm not too sure what to do with this since I didn't change hostnames.
 
> Your slave machine will have either a mysql.txt or config.xml
> configuration file for MythTV in ~/.mythtv/ for the frontend and
> backend users (and possibly elsewhere too). To be on the safe side,
> check that these contain the correct settings for your current
> database configuration.
 
Yes, that's good advise, I got bitten by this before, but my deb packages
are good now and have a symlink from ~mythtv/.mythtv/mysql.txt to
/etc/mythtv/mysql.txt

gargamel:~# cat /etc/mythtv/mysql.txt
DBHostName=myth
#DBHostPing=no
DBUserName=mythtv
DBPassword=XXXXXX
DBName=mythconverg
DBType=QMYSQL3

> I'd also recommend the full 'Delete All Capture Cards' on the master
> backend machine, adding back your cards in order of preference,
> highest first. This doesn't touch your channels configuration - you'd
> just need to reconfigure the Input Connections on the master and slave
> backends with the existing video sources.

Ok. Then as soon as the 2nd hour of the new season of Heroes is done
recording, I'll give that a shot :)
(just after I restart the master backend first)

Thanks for the replies,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  


More information about the mythtv-users mailing list