[mythtv-users] Frontend unable to connect to Backend
OJ
olejl77 at gmail.com
Mon Sep 28 22:53:44 UTC 2009
2009/9/27 OJ <olejl77 at gmail.com>:
> I have used a combined FE/BE system. Recently I bought a separate FE
> computer. The problem now is that I'm not able to connect the FE to
> the BE.
>
> - I'm running r22067 on both machines (trunk).
> - The firewall is disabled on both computers.
> - I'm able to access the mythconverg database from the remote machine
> using the following command: mysql -h 192.168.0.3 mythconverg -u
> mythtv -p
> - mythtv-setup on the BE is setup with 192.168.0.3 as IP address for
> both Local Backend and Master Backend
> - mythtv-setup on the FE is using 192.168.0.3 as Database Server
>
> This is a snippet from the BE:
> mythbackend -v all
> ...
> 2009-09-27 19:49:22.126 MythSocket(e959b0:38): new socket
> 2009-09-27 19:49:22.126 MythSocket(e959b0:38): setSocket: 37
> 2009-09-27 19:49:22.126 MSocketDevice::close: Closed socket 38
> 2009-09-27 19:49:22.126 MSocketDevice::setBlocking(false)
> 2009-09-27 19:49:22.126 MythSocket(e959b0:37): state change Idle -> Connected
> 2009-09-27 19:49:22.126 MythSocketThread: readyread thread start
> 2009-09-27 19:49:22.126 MythSocket(e959b0:37): UpRef: 1
> 2009-09-27 19:49:22.127 MythSocketThread(sock 0xe959b0:37): socket is readable
> 2009-09-27 19:49:22.127 MythSocketThread(sock 0xe959b0:37): socket closed
> 2009-09-27 19:49:22.127 MythSocket(e959b0:37): state change Connected -> Idle
> 2009-09-27 19:49:22.127 MSocketDevice::close: Closed socket 37
> 2009-09-27 19:49:22.127 MythSocket(e959b0:-1): calling m_cb->connectionClosed()
> 2009-09-27 19:49:22.127 MainServer, Warning: Unknown socket closing
> MythSocket(0xe959b0)
> 2009-09-27 19:49:22.127 MythSocketThread: Total read time: 0ms, on
> sockets {37,0ms}
I did a log when starting the FE on the same machine as the BE. What
differs is this:
> 2009-09-27 19:49:22.127 MythSocketThread(sock 0xe959b0:37): socket is readable
> 2009-09-27 19:49:22.127 MythSocketThread(sock 0xe959b0:37): socket closed
In any case the first line gets printed. On the remote FE the second
line gets printed instead of:
MythSocketThread(sock 0x135af80:37): calling m_cb->readyRead()
This indicateslibs/libmythdb/mythsocketthread.cpp. If I look in
libs/libmythdb/mythsocketthread.cpp, it differs in this function:
void MythSocketThread::ReadyToBeRead(MythSocket *sock)
{
VERBOSE(VB_SOCKET, SLOC(sock) + "socket is readable");
int bytesAvail = sock->bytesAvailable();
if (bytesAvail == 0)
{
VERBOSE(VB_SOCKET, SLOC(sock) + "socket closed");
sock->close();
}
else if (sock->m_cb)
{
sock->m_notifyread = true;
VERBOSE(VB_SOCKET, SLOC(sock) + "calling m_cb->readyRead()");
sock->m_cb->readyRead(sock);
}
}
When it failes, bytesAvail == 0. Anyone know what the cause of this could be?
More information about the mythtv-users
mailing list