[mythtv-users] upgraded 0.28 on mythbuntu not finding proper backend

Brian J. Murrell brian at interlinx.bc.ca
Tue Jul 19 18:21:46 UTC 2016


On Tue, 2016-07-19 at 19:20 +0200, Hika van den Hoven wrote:
> Hoi Brian,

Hi,

> You could just try to test.

Sorry.  I meant to say that I did but my thoughts got ahead of my
fingers.

>  The internal frontend

If you are referring to the FE that I have that works, it is not
"internal".  It is as remote as the one that does not work.

>  probably works by
> using localhost,

No, it doesn't.  From my original e-mail:

2016-07-19 07:35:31.934412 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: fd31:aeb1:48df:0:214:d1ff:fe13:52fb:6543 (try 1 of 5)

>  so it is logical that that one works.

Except that it's not.  :-/

>  If it works
> with an ip set,

It doesn't.

I suspect this "localhost" value is coming from:

/**
 * \fn QString GetMasterServerIP(void)
 * Returns the Master Backend IP address
 * If the address is an IPv6 address, the scope Id is removed.
 * If no master server address has been defined in the database, return localhost
 */
QString MythCoreContext::GetMasterServerIP(void)
{
    QString master = resolveSettingAddress("MasterServerIP");

    return master.isEmpty() ? "localhost" : master;
}

But strangely, this FE is not asking for the MasterServerIP just
the BackendServerIP, per "-v debug --loglevel debug".

But even when it gets a value for BackendServerIP:

2016-07-19 14:04:20.877136 I  MSqlQuery::exec(DBManager0) SELECT data FROM settings WHERE value = 'backendserverip' AND hostname IS NULL <<<< Took 1ms, Returned 1 row(s)
2016-07-19 14:04:20.877211 D  MSqlQuery::next(DBManager0) Result: "data = 10.75.22.2"

It's still trying to use localhost:

2016-07-19 14:04:22.241040 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: localhost:6543 (try 1 of 1)
2016-07-19 14:04:22.241875 E  MythCoreContext::GetBackendServerIP(): No address defined for host: localhost
2016-07-19 14:04:22.245938 E  MythSocket(ffffffffaaa07d20:-1): Failed to connect to (::1:6543) Connection refused
2016-07-19 14:04:22.246988 E  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

Cheers,
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160719/93022fe5/attachment.sig>


More information about the mythtv-users mailing list