<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div class="gmail-h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-m_-4982277484967932584gmail-h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
MariaDB [mythconverg]> select distinct hostname from settings;<br>
+-----------+<br>
| hostname  |<br>
+-----------+<br>
| mypvr     |<br>
| savaidh   |<br>
| NULL      |<br>
| jubalcho  |<br>
| localhost |<br>
+-----------+<br>
5 rows in set (0.01 sec)<br></blockquote><div><br></div></div></div><div>I get this:</div><div><br></div><div><br></div><div>+------------------------+</div><div>| hostname               |</div><div>+------------------------+</div><div>| mythmaster.localdomain |</div><div>| NULL                   |</div><div>| mythmaster             |</div><div>+------------------------+</div><span class="gmail-m_-4982277484967932584gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
In that list, mypvr is the main backend/frontend box, and savaidh and<br>
jubalcho are boxes that have had remote frontends on them in the past.<br>
I am not sure where localhost came from, but there is only one<br>
settings entry using it:<br>
<br>
MariaDB [mythconverg]> select * from settings where<br>
hostname='localhost';<br>
+-------+-----------+---------<wbr>--+<br>
| value | data      | hostname  |<br>
+-------+-----------+---------<wbr>--+<br>
| Theme | Mythbuntu | localhost |<br>
+-------+-----------+---------<wbr>--+<br>
1 row in set (0.00 sec)<br></blockquote><div><br></div><div>MariaDB [mythconverg]> select * from settings where hostname='localhost';</div></span><div>Empty set (0.00 sec)</div><span class="gmail-m_-4982277484967932584gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I think that if you have entries using an FQDN, then at some point<br>
your box must have lacked an /etc/hostname file, and then got the<br>
hostname from /etc/hosts or some other place that might have had an<br>
FQDN.<br>
<div class="gmail-m_-4982277484967932584gmail-m_-6718028273687900334gmail-HOEnZb"><div class="gmail-m_-4982277484967932584gmail-m_-6718028273687900334gmail-h5">______________________________<wbr>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailma<wbr>n/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing<wbr>_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></span></div><br>I also did this:
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">MariaDB [mythconverg]> select * from settings where value like '%ServerIP';</div><div class="gmail_extra">+-----------------+-----------<wbr>+------------------------+</div><div class="gmail_extra">| value           | data      | hostname               |</div><div class="gmail_extra">+-----------------+-----------<wbr>+------------------------+</div><div class="gmail_extra">| BackendServerIP | 172.16.10.54 | mythmaster.localdomain |</div><div class="gmail_extra">| MasterServerIP  | 172.16.10.54 | NULL                   |</div><div class="gmail_extra">+-----------------+-----------<wbr>+------------------------+</div><div><div>MariaDB [mythconverg]> select * from settings where data='0.0.0.0';</div><div>Empty set (0.00 sec)</div><div><br></div><div>MariaDB [mythconverg]> select * from settings where data='127.0.0.1';</div><div>Empty set (0.00 sec)</div></div><div><br></div><div><br></div></div></div></blockquote></div></div></div></div></div></blockquote><div><br></div><div>Seems my message was stuck in line - so sending again.</div><div><br></div><div>Even after changing user as root, environment as root, the ONLY time mythbackend starts is if I make backend IP as 127.0.0.1 </div></div><div class="gmail_extra"><br></div><div class="gmail_extra" style="font-size:12.8px">#journalctl -xe:</div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px"><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.804675 N  <span style="background-color:rgb(255,255,0)">Using configuration directory = /root/.mythtv</span></div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.804729 I  Assumed character encoding: en_US.UTF-8</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.805027 I  Using localhost value of mythmaster</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.810400 I  Testing network connectivity to '172.16.10.54'</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.811876 I  Starting process signal handler</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.812017 I  Starting process manager</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.813008 I  Starting IO manager (read)</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.813040 I  Starting IO manager (write)</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.868743 N  Setting QT default locale to en_US</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.868775 I  Current locale en_US</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.868877 N  Reading locale defaults from /usr/share/mythtv//locales/en_<wbr>us.xml</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.880781 I  Loading en_us translation for module mythfrontend</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.893328 I  Current MythTV Schema Version (DBSchemaVer): 1344</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.893721 I  Loading en_us translation for module mythfrontend</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.896078 <span style="background-color:rgb(255,255,0)">E  MythSocket(1973b60:-1): Failed to connect to (<a href="http://127.0.0.1:6543/" target="_blank">127.0.0.1:6543</a>) Connection refused</span></div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.899611 E  MythCoreContext::<wbr>GetBackendServerIP(): No address defined for host: mythmaster</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.904841 I  Added logging to /var/log/mythtv/mythbackend.<wbr>20170802180020.4357.log</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain mythbackend[4357]: 2017-08-02 13:00:20.906364 I  Removed logging to /var/log/mythtv/mythbackend.<wbr>20170802180020.4357.log</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain systemd[1]: mythbackend.service: main process exited, code=exited, status=138/n/a</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain systemd[1]: Unit mythbackend.service entered failed state.</div><div class="gmail_extra">Aug 02 13:00:20 mythmaster.localdomain systemd[1]: mythbackend.service failed.</div><div><br></div><div><br></div><div>The above is after i changed the mythbackend.service to have Environment point to /root/.mythtv/ folder instead of /etc/mythtv</div></div>
As seen above, even though I am putting the IP, it is looking for 127.0.0.1</div><div class="gmail_extra"><br></div><div class="gmail_extra">However, when I look in the DB:</div><div class="gmail_extra"><div class="gmail_extra" style="font-size:12.8px">I also did this:</div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px"><div class="gmail_extra">MariaDB [mythconverg]> select * from settings where value like '%ServerIP';</div><div class="gmail_extra">+-----------------+-----------<wbr>+------------------------+</div><div class="gmail_extra">| value           | data      | hostname               |</div><div class="gmail_extra">+-----------------+-----------<wbr>+------------------------+</div><div class="gmail_extra">| BackendServerIP | 172.16.10.54 | mythmaster.localdomain |</div><div class="gmail_extra">| MasterServerIP  | 172.16.10.54 | NULL                   |</div><div class="gmail_extra">+-----------------+-----------<wbr>+------------------------+</div><div><div>MariaDB [mythconverg]> select * from settings where data='0.0.0.0';</div><div>Empty set (0.00 sec)</div><div><br></div><div>MariaDB [mythconverg]> select * from settings where data='127.0.0.1';</div><div>Empty set (0.00 sec)</div></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>