Hello,<div><br></div><div>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:</div>
<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
"Could not connect to the master backend server. Is it running? Is the IP address set for it in mythtv-setup correct?"</blockquote><div><br></div><div>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.</div>
<div><br></div><div>Checking the logs, the frontend log:</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Feb 15 01:55:35 supermario mythfrontend[1509]: Connected to database 'mythconverg' at host: localhost<br>Feb 15 01:55:35 supermario mythfrontend[1509]: MythCoreContext: Connecting to backend server: <a href="http://192.168.1.147:6543">192.168.1.147:6543</a> (try 1 of 1)<br>
Feb 15 01:55:35 supermario mythfrontend[1509]: Using protocol version 72<br>Feb 15 01:55:35 supermario mythfrontend[1509]: Bonjour: Service registration complete: name 'Mythfrontend on supermario' type '_mythfrontend._tcp.' domain: 'local.'<br>
Feb 15 01:55:50 supermario mythfrontend[1509]: Using protocol version 72<br>Feb 15 01:55:50 supermario mythfrontend[1509]: Using protocol version 72<br>Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Creating TV object<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Created TvPlayWindow.<br>Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Attempting to change from None to WatchingLiveTV<br>Feb 15 01:56:14 supermario mythfrontend[1509]: MythCoreContext: Connecting to backend server: :6543 (try 1 of 1)<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: MythSocket(89cef78:74): Unable to lookup: <br>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<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::Setup(): Failed to connect to backend<br>Feb 15 01:56:14 supermario mythfrontend[1509]: MythCoreContext: Connecting to backend server: :6543 (try 1 of 1)<br>Feb 15 01:56:14 supermario mythfrontend[1509]: MythSocket(89bf5c0:74): Unable to lookup: <br>
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<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::Setup(): Failed to connect to backend<br>Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::SendReceiveStringList(): Failed to reconnect with backend.<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Spawning LiveTV Recorder -- begin<br>Feb 15 01:56:14 supermario mythfrontend[1509]: MythCoreContext: Connecting to backend server: :6543 (try 1 of 1)<br>Feb 15 01:56:14 supermario mythfrontend[1509]: MythSocket(8db1b20:74): Unable to lookup: <br>
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<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::Setup(): Failed to connect to backend<br>Feb 15 01:56:14 supermario mythfrontend[1509]: RemoteEncoder::SendReceiveStringList(): Failed to reconnect with backend.<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Spawning LiveTV Recorder -- end<br>Feb 15 01:56:14 supermario mythfrontend[1509]: GetEntryAt(-1) failed.<br>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.<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: EntryToProgram(0@Wed Dec 31 18:00:00 1969) failed to get pginfo<br>Feb 15 01:56:14 supermario mythfrontend[1509]: TV: HandleStateChange(): LiveTV not successfully started<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: TV: LiveTV not successfully started<br>Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Main UI disabled.<br>Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Entering main playback loop.<br>
Feb 15 01:56:14 supermario mythfrontend[1509]: TV: Exiting main playback loop.</blockquote></div><div><br></div><div><br></div><div>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:</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Feb 15 02:03:30 supermario mythbackend[2080]: Connected to database 'mythconverg' at host: localhost<br>Feb 15 02:03:31 supermario mythbackend[2080]: Bonjour: Service registration complete: name 'Mythbackend on supermario' type '_mythbackend-master._tcp.' domain: 'local.'<br>
Feb 15 02:03:32 supermario mythbackend[2080]: Database connection created: DBManager7<br>Feb 15 02:03:32 supermario mythbackend[2080]: New DB connection, total: 7<br>Feb 15 02:03:32 supermario mythbackend[2080]: Connected to database 'mythconverg' at host: localhost<br>
Feb 15 02:03:32 supermario mythbackend[2080]: Reschedule requested for id -1.<br>Feb 15 02:03:32 supermario mythbackend[2080]: MainServer::ANN Monitor<br>Feb 15 02:03:32 supermario mythbackend[2080]: adding: toad as a client (events: 0)<br>
Feb 15 02:03:32 supermario mythbackend[2080]: MainServer::ANN Monitor<br>Feb 15 02:03:32 supermario mythbackend[2080]: adding: toad as a client (events: 1)<br>Feb 15 02:03:34 supermario mythbackend[2080]: Scheduled 107 items in 1.9 = 0.10 match + 1.76 place<br>
Feb 15 02:03:34 supermario mythbackend[2080]: Scheduler: Seem to be woken up by USER<br>Feb 15 02:03:38 supermario mythbackend[2080]: Database connection created: DBManager8<br>Feb 15 02:03:38 supermario mythbackend[2080]: New DB connection, total: 8<br>
Feb 15 02:03:38 supermario mythbackend[2080]: Connected to database 'mythconverg' at host: localhost<br>Feb 15 02:03:39 supermario mythbackend[2080]: Database connection created: DBManager9<br>Feb 15 02:03:39 supermario mythbackend[2080]: New DB connection, total: 9<br>
Feb 15 02:03:39 supermario mythbackend[2080]: Connected to database 'mythconverg' at host: localhost<br>Feb 15 02:03:39 supermario mythbackend[2080]: No address defined for host: supermario<br>Feb 15 02:03:39 supermario mythbackend[2080]: Database connection created: DBManager10<br>
Feb 15 02:03:39 supermario mythbackend[2080]: New DB connection, total: 10<br>Feb 15 02:03:39 supermario mythbackend[2080]: Connected to database 'mythconverg' at host: localhost<br>Feb 15 02:03:39 supermario mythbackend[2080]: Running housekeeping thread<br>
Feb 15 02:03:48 supermario mythbackend[2080]: Database connection created: DBManager11<br>Feb 15 02:03:48 supermario mythbackend[2080]: New DB connection, total: 11<br>Feb 15 02:03:48 supermario mythbackend[2080]: Connected to database 'mythconverg' at host: localhost<br>
Feb 15 02:04:48 supermario mythbackend[2080]: AutoExpire: CalcParams(): Max required Free Space: 20.0 GB w/freq: 15 min<br>Feb 15 02:05:39 supermario mythbackend[2080]: Closing DB connection named 'DBManager8'<br>
Feb 15 02:05:59 supermario mythbackend[2080]: Closing DB connection named 'DBManager9'<br>Feb 15 02:06:30 supermario mythbackend[2080]: Closing DB connection named 'DBManager6'</blockquote></div><div><br></div>
<div><br></div><div>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.</div>
<div><br></div><div><div>$ cat /etc/hosts</div><div>127.0.0.1<span class="Apple-tab-span" style="white-space:pre">        </span>localhost</div><div>::1<span class="Apple-tab-span" style="white-space:pre">        </span>supermario<span class="Apple-tab-span" style="white-space:pre">        </span>localhost6</div>
<div>127.0.1.1<span class="Apple-tab-span" style="white-space:pre">        </span>supermario</div><div><br></div><div># The following lines are desirable for IPv6 capable hosts</div><div>::1 localhost ip6-localhost ip6-loopback</div>
<div>fe00::0 ip6-localnet</div><div>ff00::0 ip6-mcastprefix</div><div>ff02::1 ip6-allnodes</div><div>ff02::2 ip6-allrouters</div><div>ff02::3 ip6-allhosts</div></div><div><br></div><div><br></div>