[mythtv-users] 0.25 upgrade, frontend connecting to backend errors now (same box)

Mario Limonciello mario.mailing at gmail.com
Wed Feb 15 08:24:42 UTC 2012


Hello,

I upgraded a working box from 0.24.2(fixes) to a 0.25 snapshot (MythTV
Version : v0.25pre-4537-g567278c) from yesterday.  When in the frontend,
selecting "Watch TV" yields the common error:

"Could not connect to the master backend server.  Is it running?  Is the IP
> address set for it in mythtv-setup correct?"


I went to mythtv-setup and double checked my addresses.  I have the master
backend IP set and the IPv4 IP set to the same IP as always has been set on
the box (192.168.1.147).  For IPv6 it's set to ::1.

Checking the logs, the frontend log:

Feb 15 01:55:35 supermario mythfrontend[1509]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 01:55:35 supermario mythfrontend[1509]: MythCoreContext: Connecting
> to backend server: 192.168.1.147:6543 (try 1 of 1)
> Feb 15 01:55:35 supermario mythfrontend[1509]: Using protocol version 72
> Feb 15 01:55:35 supermario mythfrontend[1509]: Bonjour: Service
> registration complete: name 'Mythfrontend on supermario' type
> '_mythfrontend._tcp.' domain: 'local.'
> Feb 15 01:55:50 supermario mythfrontend[1509]: Using protocol version 72
> Feb 15 01:55:50 supermario mythfrontend[1509]: Using protocol version 72
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Creating TV object
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Created TvPlayWindow.
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Attempting to change
> from None to WatchingLiveTV
> Feb 15 01:56:14 supermario mythfrontend[1509]: MythCoreContext: Connecting
> to backend server: :6543 (try 1 of 1)
> Feb 15 01:56:14 supermario mythfrontend[1509]: MythSocket(89cef78:74):
> Unable to lookup:
> Feb 15 01:56:14 supermario mythfrontend[1509]: Connection to master server
> timed out.#012#011#011#011Either the server is down or the master server
> settings#012#011#011#011in mythtv-settings does not contain the proper IP
> address
> Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::Setup():
> Failed to connect to backend
> Feb 15 01:56:14 supermario mythfrontend[1509]: MythCoreContext: Connecting
> to backend server: :6543 (try 1 of 1)
> Feb 15 01:56:14 supermario mythfrontend[1509]: MythSocket(89bf5c0:74):
> Unable to lookup:
> Feb 15 01:56:14 supermario mythfrontend[1509]: Connection to master server
> timed out.#012#011#011#011Either the server is down or the master server
> settings#012#011#011#011in mythtv-settings does not contain the proper IP
> address
> Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::Setup():
> Failed to connect to backend
> Feb 15 01:56:14 supermario mythfrontend[1509]:
> RemoteEncoder::SendReceiveStringList(): Failed to reconnect with backend.
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Spawning LiveTV
> Recorder -- begin
> Feb 15 01:56:14 supermario mythfrontend[1509]: MythCoreContext: Connecting
> to backend server: :6543 (try 1 of 1)
> Feb 15 01:56:14 supermario mythfrontend[1509]: MythSocket(8db1b20:74):
> Unable to lookup:
> Feb 15 01:56:14 supermario mythfrontend[1509]: Connection to master server
> timed out.#012#011#011#011Either the server is down or the master server
> settings#012#011#011#011in mythtv-settings does not contain the proper IP
> address
> Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::Setup():
> Failed to connect to backend
> Feb 15 01:56:14 supermario mythfrontend[1509]:
> RemoteEncoder::SendReceiveStringList(): Failed to reconnect with backend.
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Spawning LiveTV
> Recorder -- end
> Feb 15 01:56:14 supermario mythfrontend[1509]: GetEntryAt(-1) failed.
> Feb 15 01:56:14 supermario mythfrontend[1509]: It appears that your
> backend may be misconfigured.  Check your backend logs to determine whether
> your capture cards, lineups, channels, or storage configuration are
> reporting errors.  This issue is commonly caused by failing to complete all
> setup steps properly.  You may wish to review the documentation for
> mythtv-setup.
> Feb 15 01:56:14 supermario mythfrontend[1509]: EntryToProgram(0 at Wed Dec
> 31 18:00:00 1969) failed to get pginfo
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: HandleStateChange():
> LiveTV not successfully started
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: LiveTV not successfully
> started
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Main UI disabled.
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Entering main playback
> loop.
> Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Exiting main playback
> loop.



So it makes an initial connection to the backend, does some bonjour
registration and then tries to connect to a broken string.   Checking the
backend log:

Feb 15 02:03:30 supermario mythbackend[2080]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 02:03:31 supermario mythbackend[2080]: Bonjour: Service
> registration complete: name 'Mythbackend on supermario' type
> '_mythbackend-master._tcp.' domain: 'local.'
> Feb 15 02:03:32 supermario mythbackend[2080]: Database connection created:
> DBManager7
> Feb 15 02:03:32 supermario mythbackend[2080]: New DB connection, total: 7
> Feb 15 02:03:32 supermario mythbackend[2080]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 02:03:32 supermario mythbackend[2080]: Reschedule requested for id
> -1.
> Feb 15 02:03:32 supermario mythbackend[2080]: MainServer::ANN Monitor
> Feb 15 02:03:32 supermario mythbackend[2080]: adding: toad as a client
> (events: 0)
> Feb 15 02:03:32 supermario mythbackend[2080]: MainServer::ANN Monitor
> Feb 15 02:03:32 supermario mythbackend[2080]: adding: toad as a client
> (events: 1)
> Feb 15 02:03:34 supermario mythbackend[2080]: Scheduled 107 items in 1.9 =
> 0.10 match + 1.76 place
> Feb 15 02:03:34 supermario mythbackend[2080]: Scheduler: Seem to be woken
> up by USER
> Feb 15 02:03:38 supermario mythbackend[2080]: Database connection created:
> DBManager8
> Feb 15 02:03:38 supermario mythbackend[2080]: New DB connection, total: 8
> Feb 15 02:03:38 supermario mythbackend[2080]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 02:03:39 supermario mythbackend[2080]: Database connection created:
> DBManager9
> Feb 15 02:03:39 supermario mythbackend[2080]: New DB connection, total: 9
> Feb 15 02:03:39 supermario mythbackend[2080]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 02:03:39 supermario mythbackend[2080]: No address defined for host:
> supermario
> Feb 15 02:03:39 supermario mythbackend[2080]: Database connection created:
> DBManager10
> Feb 15 02:03:39 supermario mythbackend[2080]: New DB connection, total: 10
> Feb 15 02:03:39 supermario mythbackend[2080]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 02:03:39 supermario mythbackend[2080]: Running housekeeping thread
> Feb 15 02:03:48 supermario mythbackend[2080]: Database connection created:
> DBManager11
> Feb 15 02:03:48 supermario mythbackend[2080]: New DB connection, total: 11
> Feb 15 02:03:48 supermario mythbackend[2080]: Connected to database
> 'mythconverg' at host: localhost
> Feb 15 02:04:48 supermario mythbackend[2080]: AutoExpire: CalcParams():
> Max required Free Space: 20.0 GB w/freq: 15 min
> Feb 15 02:05:39 supermario mythbackend[2080]: Closing DB connection named
> 'DBManager8'
> Feb 15 02:05:59 supermario mythbackend[2080]: Closing DB connection named
> 'DBManager9'
> Feb 15 02:06:30 supermario mythbackend[2080]: Closing DB connection named
> 'DBManager6'



The only thing that stands out is that "Feb 15 02:03:39 supermario
mythbackend[2080]: No address defined for host: supermario".  I've got that
declared in /etc/hosts as it was declared previously and worked for 0.24
fine.  It also will resolve to the normal IP (192.168.1.147) from DNS
lookups on the network.

$ cat /etc/hosts
127.0.0.1 localhost
::1 supermario localhost6
127.0.1.1 supermario

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120215/cc1c9867/attachment.html 


More information about the mythtv-users mailing list