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

Kevin Kuphal kkuphal at gmail.com
Tue Sep 23 15:41:23 UTC 2008


On Tue, Sep 23, 2008 at 2:40 AM, Marc MERLIN <marc_mtv at merlins.org> wrote:

> So, restarting the master backend didn't help, and deleting and re-adding
> all the encoders didn't help either :(
>
> Mmmh, after that things even got worse on the master:
> 2008-09-23 00:09:57.503 Empty LocalHostName.
> 2008-09-23 00:09:57.504 Using localhost value of myth
> 2008-09-23 00:09:57.510 New DB connection, total: 1
> 2008-09-23 00:09:57.513 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:09:57.514 Closing DB connection named 'DBManager0'
> 2008-09-23 00:09:57.515 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:09:57.516 New DB connection, total: 2
> 2008-09-23 00:09:57.517 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:09:57.518 Current Schema Version: 1214
> Running as a slave backend.
> 2008-09-23 00:09:57.523 mythbackend: MythBackend started as a slave backend
> ^^^^^^^^^^^^^^^^^^^^^^^^^
>
> This was due to your telling me that
> > > i) The Master Backend should have value='MasterServerIP',
> > > data=''your.ip.address' and hostname='NULL'
>
> I set the hostname back:
> MasterServerIP          192.168.205.61          myth
> and that part got fixed:
> Starting up as the master server.
> 2008-09-23 00:12:20.788 mythbackend: MythBackend started as master server
>
> and I'm back at square one:
> Encoders:
> myth (1) - Idle
> myth (2) - Idle
> myth (3) - Idle
> myth (4) - Idle
> gargamel.svh.merlins.org (5) - -1 (Disconnected)
> gargamel.svh.merlins.org (6) - -1 (Disconnected)
> and
> 2008-09-23 00:15:00.827 PlaybackBox::play(): Error, myth://
> 192.168.205.3:6543/1068_20080919220000.mpg file not found
> and my frontend still clearly decides that nothing is on 192.168.205.3,
> because strace on that server does not show a single connection or anything
> happening on that mythbackend process.
>
> Clearly, communication between myth (192.168.205.61) and gargamel
> (192.168.205.3) is failing in some way, but gargamel does connect
> to the right DB:
> gargamel:~# /etc/init.d/mythtv-backend start
> Starting MythTV server: mythbackend .
> gargamel:~# 2008-09-23 00:24:24.669 Using runtime prefix = /usr, libdir =
> /usr/lib
> 2008-09-23 00:24:24.706 Empty LocalHostName.
> 2008-09-23 00:24:24.738 Using localhost value of gargamel.svh.merlins.org
> 2008-09-23 00:24:24.752 Testing network connectivity to myth
> 2008-09-23 00:24:24.794 New DB connection, total: 1
> 2008-09-23 00:24:24.833 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:24:24.842 Closing DB connection named 'DBManager0'
> 2008-09-23 00:24:24.857 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:24:24.872 New DB connection, total: 2
> 2008-09-23 00:24:24.892 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:24:24.909 Current Schema Version: 1214
> Running as a slave backend.
> 2008-09-23 00:24:24.951 New DB connection, total: 3
> 2008-09-23 00:24:24.968 Connected to database 'mythconverg' at host: myth
> 2008-09-23 00:24:25.664 Main::Registering HttpStatus Extension
> 2008-09-23 00:24:25.680 mythbackend version: 0.21.20080304-1
> www.mythtv.org
> 2008-09-23 00:24:25.691 Enabled verbose msgs:  important general
> 2008-09-23 00:24:26.713 Connecting to master server: :6543
> 2008-09-23 00:24:26.745 Connected successfully
>
> although I'm not sure what this means afterwards:
> 2008-09-23 00:24:56.760 MythSocket(827e650:11): readStringList: Error,
> timeout.
> 2008-09-23 00:24:56.905 adding: gargamel.svh.merlins.org as a slave
> backend server
> 2008-09-23 00:24:56.925 MythSocket(8298d58:-1): writeStringList: Error,
> socket went unconnected.
>
> At this point, I should see my slave backend registered on my master
> backend
> in /var/log/mythtv/mythbackend.log, right? but I do not.
>
> That's probably where my problem lies.
> Just to be extra sure, strace of mysql on myth does show gargamel
> connecting to it
> when I start the slave backend, so it's talking to the right DB.
>
> gargamel is running  mythtv-backend 0.21-0.13 (debian)
> myth is running mythtv-backend 0.21.0+fixes16838-0ubuntu3 (ubuntu)
>
> ls -l /var/lib/dpkg/info/mythtv-backend.list
> on both servers shows that the packages date back to 2008-05-14, so they
> didn't just get upgraded and they were able to talk to one another just
> fine
> back then. I doubt the protocol just changed without the packages changing.
> Either way, myth says:
> 2008-09-23 00:10:00.853 mythbackend version: 0.21.20080304-1
> www.mythtv.org
> and gargamel says:
> 2008-09-23 00:27:19.298 mythbackend version: 0.21.20080304-1
> www.mythtv.org
>
> so they are compatible.
>
> I'm really at a loss, what now?


Are you using hostnames or IP addresses?  I'm pretty sure you need to use IP
addresses everywhere.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080923/6190b94c/attachment.htm 


More information about the mythtv-users mailing list