<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
<BR>
Hi Roger!<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    On 07/07/16 10:20, Stephen Worthington wrote:<BR>
    <FONT COLOR="#000000">> On Thu, 7 Jul 2016 05:25:39 +0000, you wrote:</FONT><BR>
    <FONT COLOR="#000000">></FONT><BR>
    <FONT COLOR="#000000">>> On Thu, Jul 7, 2016 at 4:50 AM, Stephen Worthington</FONT><BR>
    <FONT COLOR="#000000">>> <<A HREF="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</A>> wrote:</FONT><BR>
    <FONT COLOR="#000000">>></FONT><BR>
    <FONT COLOR="#000000">>>> The solution is likely to be changing the settings in the file that</FONT><BR>
    <FONT COLOR="#000000">>>> starts mythfrontend so that it waits until after IPv4 networking is</FONT><BR>
    <FONT COLOR="#000000">>>> fully up.</FONT><BR>
    <FONT COLOR="#000000">>></FONT><BR>
    <FONT COLOR="#000000">>> Summary of the issue:</FONT><BR>
    <FONT COLOR="#000000">>></FONT><BR>
    <FONT COLOR="#000000">>> <A HREF="https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/">https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/</A></FONT><BR>
    <FONT COLOR="#000000">>></FONT><BR>
    <FONT COLOR="#000000">>> As noted, any service which is going to start mythfrontend is</FONT><BR>
    <FONT COLOR="#000000">>> going to have to have the appropriate stanzas in them.</FONT><BR>
    <FONT COLOR="#000000">></FONT><BR>
    <FONT COLOR="#000000">> Thanks Gary, that is a very useful page for me too.</FONT><BR>
    <FONT COLOR="#000000">></FONT><BR>
    <FONT COLOR="#000000">> Barry: From my reading of that page, it looks like trying:</FONT><BR>
    <FONT COLOR="#000000">></FONT><BR>
    <FONT COLOR="#000000">>    systemctl enable NetworkManager-wait-online.service</FONT><BR>
    <FONT COLOR="#000000">></FONT><BR>
    <FONT COLOR="#000000">> would be the next thing for you to do.  That will enable</FONT><BR>
    <FONT COLOR="#000000">> NetworkManager waiting for an IP address to be available before</FONT><BR>
    <FONT COLOR="#000000">> starting things, and if you are lucky may be all that you need.</FONT><BR>
     ><BR>
    <BR>
    There's more at:<BR>
    <A HREF="https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration">https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration</A><BR>
    <BR>
    However there's an implication that Mythbuntu is being used and I would <BR>
    have thought the start-up scripts already cover that.<BR>
    <BR>
    The config directory error and fallback to uPnp search points to a <BR>
    deeper misconfiguration, so I would supply further details before <BR>
    hacking any startup scripts.<BR>
</BLOCKQUOTE>
Especially by a newbie!! <g>  <BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    Who owns /home/barry/.mythtv ("ls -ld /home/barry/.mythtv") ?<BR>
    Possibly root because you've previously run the frontend using sudo.<BR>
    Whatever, fix ownership with "sudo chown -R barry:barry /home/barry/.mythtv"<BR>
    <BR>
    Then pastebin a complete log of frontend startup.<BR>
    <A HREF="https://www.mythtv.org/wiki/Posting_Logs">https://www.mythtv.org/wiki/Posting_Logs</A><BR>
</BLOCKQUOTE>
<BR>
Ah poo: did this backwards.  Haven't done the "who own's" thing yet.  These are the logs from when it didn't connect and then it did connect:<BR>
<A HREF="mailto:barry@Lenovo-M58">barry@Lenovo-M58</A>:~$ pastebinit '/media/barry/ADATA UFD/Connected - July 6.odt' <BR>
<A HREF="http://paste.ubuntu.com/18717700/">http://paste.ubuntu.com/18717700/</A><BR>
<A HREF="mailto:barry@Lenovo-M58">barry@Lenovo-M58</A>:~$ pastebinit '/media/barry/ADATA UFD/Connected - didn'\''t July 6.odt' <BR>
<A HREF="http://paste.ubuntu.com/18717760/">http://paste.ubuntu.com/18717760/</A><BR>
<BR>
(And I learned something!  Can drag the file from a directory list to Terminal and it inserts itself!!  I'm impressed!!)<BR>
<BR>
(See below for the who owns thing)<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    Is it a Mythbuntu installation ?<BR>
    Do you have other remote frontends that connect ok ?<BR>
</BLOCKQUOTE>
<BR>
This particular installation is Ubuntu 16.04 and then added MythTV 0.28.  One other Frontend is also Ubuntu + MythTV and works fine.  A second Frontend is Mythbuntu  and works fine.<BR>
<BR>
<BR>
<BR>
Ok, back to the "who owns" thing.  So  "ls -ld /home/barry/.mythtv"  ...<BR>
<BR>
lrwxrwxrwx 1 mythtv mythtv 22 Jun 30 14:32 /home/barry/.mythtv -> /etc/mythtv/config.xml<BR>
<BR>
<BR>
OK, so now run "sudo chown -R barry:barry /home/barry/.mythtv"    ...Goes directly to the next line (no response, which hopefully is good news!)<BR>
<BR>
Run the 'ownership' command again (you did ask but makes some sense to do so)<BR>
lrwxrwxrwx 1 barry barry 22 Jun 30 14:32 /home/barry/.mythtv -> /etc/mythtv/config.xml<BR>
<BR>
Well. see a little change!<BR>
<BR>
...Run 'mythfrontend' at Terminal.  First pass works!!  Woo hoo!  ...Second pass, doesn't.  Post the logs again....<BR>
<BR>
<A HREF="mailto:barry@Lenovo-M58">barry@Lenovo-M58</A>:~$ pastebinit '/media/barry/ADATA UFD/Connect - follow CHOWN July 7.odt' <BR>
<A HREF="http://paste.ubuntu.com/18721022/">http://paste.ubuntu.com/18721022/</A><BR>
<A HREF="mailto:barry@Lenovo-M58">barry@Lenovo-M58</A>:~$ <BR>
<A HREF="mailto:barry@Lenovo-M58">barry@Lenovo-M58</A>:~$ pastebinit '/media/barry/ADATA UFD/Connect - didn'\''t - follow CHOWN July 7.odt' <BR>
<A HREF="http://paste.ubuntu.com/18721078/">http://paste.ubuntu.com/18721078/</A><BR>
<BR>
<BR>
And a <U>BIG</U> thanks in advance to you and whoever else is helping.  I know from the stack of notes on my desk this is a lot of work.  Hopefully also helps others and patches the core code or whatever it's called.  <BR>
<BR>
</BODY>
</HTML>