<div class="gmail_quote">On Sun, Apr 5, 2009 at 3:29 PM, Questiony McAskerton From Queryville <span dir="ltr">&lt;<a href="mailto:djm-list@maccormack.net">djm-list@maccormack.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi.  I&#39;m having trouble adding a new mythfrontend to an existing installation.  Here&#39;s my setup.  I have a backend (named mythserver) happily recording shows.  I&#39;ve been using an Xbox running XBMC (with both native and the XBMCMythTV python script) as a frontend successfully for a while now.  This works fine.  Now I want to add a new frontend.  This frontend is a ``normal&#39;&#39; mythfrontend running under gentoo (also on an xbox but it&#39;s a native installation of Gentoox so it should act just like Linux on any other i386 box).  Since I already have a working<br>

frontend + backend setup this should be pretty easy, however, I get the following when running mythfronend:<br>
<br>
------------------------------------------------------------------------<br>
2009-04-05 00:13:37.550 Using runtime prefix = /usr<br>
2009-04-05 00:13:38.614 DPMS is active.<br>
2009-04-05 00:13:38.687 Empty LocalHostName.<br>
2009-04-05 00:13:38.687 Using localhost value of jen-xbox<br>
2009-04-05 00:13:38.690 Testing network connectivity to mythserver<br>
2009-04-05 00:13:39.179 New DB connection, total: 1<br>
2009-04-05 00:13:39.330 Connected to database &#39;mythconverg&#39; at host: mythserver<br>
2009-04-05 00:13:39.361 Closing DB connection named &#39;DBManager0&#39;<br>
2009-04-05 00:13:39.377 Primary screen 0.<br>
2009-04-05 00:13:39.380 Connected to database &#39;mythconverg&#39; at host: mythserver<br>
2009-04-05 00:13:39.383 Using screen 0, 640x480 at 0,0<br>
2009-04-05 00:13:39.574 New DB connection, total: 2<br>
2009-04-05 00:13:39.577 Connected to database &#39;mythconverg&#39; at host: mythserver<br>
2009-04-05 00:13:39.586 mythfrontend version: 0.21.20080304-1 <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a><br>
2009-04-05 00:13:39.586 Enabled verbose msgs:  important general<br>
2009-04-05 00:13:42.203 No theme dir: /home/djm/.mythtv/themes/G.A.N.T<br>
2009-04-05 00:13:42.206 Primary screen 0.<br>
2009-04-05 00:13:42.208 Using screen 0, 640x480 at 0,0<br>
2009-04-05 00:13:42.210 No theme dir: /home/djm/.mythtv/themes/G.A.N.T<br>
2009-04-05 00:13:42.212 Switching to square mode (G.A.N.T)<br>
Xlib:  extension &quot;GLX&quot; missing on display &quot;:0.0&quot;.<br>
Xlib:  extension &quot;GLX&quot; missing on display &quot;:0.0&quot;.<br>
Xlib:  extension &quot;GLX&quot; missing on display &quot;:0.0&quot;.<br>
2009-04-05 00:13:42.414 Using the Qt painter<br>
2009-04-05 00:13:42.422 JoystickMenuClient Error: Joystick disabled - Failed to read /home/djm/.mythtv/joystickmenurc<br>
Xlib:  extension &quot;GLX&quot; missing on display &quot;:0.0&quot;.<br>
2009-04-05 00:13:45.153 Loading from: /usr/share/mythtv/themes/G.A.N.T/base.xml<br>
2009-04-05 00:13:45.336 Loading from: /usr/share/mythtv/themes/default/base.xml<br>
2009-04-05 00:13:45.640 Registering Internal as a media playback plugin.<br>
2009-04-05 00:13:45.752 No theme dir: /home/djm/.mythtv/themes/G.A.N.T<br>
2009-04-05 00:13:51.865 Connecting to backend server: mythserver:6543 (try 1 of 5)<br>
2009-04-05 00:13:51.866 Connection timed out.<br>
                        You probably should modify the Master Server<br>
                        settings in the setup program and set the<br>
                        proper IP address.<br>
------------------------------------------------------------------------<br>
<br>
The usual reason for the above error is because one has specified localhost or 127.0.0.1 in mythtv-setup&#39;s General Setup page on the backend, however, I have set this up correctly.  Also note that this is not an error connecting to the database.  The new mythfrontend prints a message saying that it connects to the database just fine and I can connect to it from the new frontend via ``mysql -umythtv -p -h mythserver&#39;&#39; with the same credentials.<br>

<br>
Also,<br>
    mysql&gt; SELECT * FROM settings WHERE data=&#39;localhost&#39;;<br>
    Empty set (0.02 sec)<br>
<br>
    mysql&gt; SELECT * FROM settings WHERE data=&#39;127.0.0.1&#39;;<br>
    Empty set (0.02 sec)<br>
<br>
So, this has nothing to do with trying to connect to localhost.<br>
<br>
    mysql&gt; SELECT * FROM settings WHERE value=&#39;MasterServerIP&#39;;<br>
<br>
    +----------------+------------+----------+<br>
    | value          | data       | hostname |<br>
    +----------------+------------+----------+<br>
    | MasterServerIP | mythserver | NULL     |<br>
    +----------------+------------+----------+<br>
    1 row in set (0.00 sec)<br>
<br>
That&#39;s the value in question and it has the correct data.  This is not a DNS issue because I can ping mythserver from the new frontend just fine (and, as I said, it connects to the mysql server running on mythserver just fine).  It&#39;s not a firewall issue because I do not have one installed on mythserver (and because my current/working frontend uses the exact same settings, on the same lan, and works just fine).  It&#39;s not a protocol version problem because:<br>

<br>
mythserver&gt; mythbackend --version<br>
MythTV Version   : export?(C)<br>
MythTV Branch    : branches/release-0-21-fixes<br>
Library API      : 0.21.20080304-1<br>
Network Protocol : 40<br>
Options compiled in:<br>
 linux profile using_oss using_alsa using_arts using_jack using_backend using_dbox2 using_dvb using_firewire using_frontend using_hdhomerun using_iptv using_ivtv using_joystick_menu using_libfftw3 using_lirc using_opengl_vsync using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmcw using_xvmc_vld using_bindings_perl using_bindings_python using_opengl using_ffmpeg_threads using_libavc_5_3 using_live<br>

<br>
new-frontend&gt; mythfrontend --version<br>
MythTV Version   : 18314<br>
MythTV Branch    : branches/release-0-21-fixes<br>
Library API      : 0.21.20080304-1<br>
Network Protocol : 40<br>
Options compiled in:<br>
 linux profile using_oss using_alsa using_backend using_dbox2 using_frontend using_hdhomerun using_iptv using_ivtv using_joystick_menu using_opengl_vsync using_v4l using_x11 using_xrandr using_xv using_glx_proc_addr_arb using_bindings_perl using_bindings_python using_opengl using_ffmpeg_threads using_live<br>

<br>
I seached the mailing list and the closest hit I found was:<br>
    <a href="http://www.gossamer-threads.com/lists/mythtv/users/331580" target="_blank">http://www.gossamer-threads.com/lists/mythtv/users/331580</a><br>
<br>
However, his problem was that his frontend was trying to connect to localhost; that isn&#39;t my problem.  The log message clearly shows that the new frontend is trying to connect to mythserver:6543 and failing.  On mythserver, ``netstat -l -p&#39;&#39; tells me that mythbackend is listening for tcp connections on <a href="http://0.0.0.0:6543" target="_blank">0.0.0.0:6543</a>, <a href="http://0.0.0.0:6544" target="_blank">0.0.0.0:6544</a>, and udp connections on <a href="http://0.0.0.0:6549" target="_blank">0.0.0.0:6549</a>.<br>

<br>
Running netcat from the new frontend against mythserver:6543 via<br>
``nc -q0 -v mythserver 6543 &lt; /dev/null&#39;&#39; tells me that it can make connections just fine from the new frontend to mythserver on the port in question.<br>
<br>
So, I&#39;m stumped.<br>
<br>
Any ideas?<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><br><br>Are you using an IP, or a hostname?<br>