[mythtv-users] FrontEnd will connect if feels like it

Barry Martin barry3martin at gmail.com
Thu Jul 7 18:11:07 UTC 2016


Hi Roger!


> On 07/07/16 10:20, Stephen Worthington wrote:
> > On Thu, 7 Jul 2016 05:25:39 +0000, you wrote:
> >
> >> On Thu, Jul 7, 2016 at 4:50 AM, Stephen Worthington
> >> <stephen_agent at jsw.gen.nz> wrote:
> >>
> >>> The solution is likely to be changing the settings in the file
> that
> >>> starts mythfrontend so that it waits until after IPv4 networking
> is
> >>> fully up.
> >>
> >> Summary of the issue:
> >>
> >> https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
> >>
> >> As noted, any service which is going to start mythfrontend is
> >> going to have to have the appropriate stanzas in them.
> >
> > Thanks Gary, that is a very useful page for me too.
> >
> > Barry: From my reading of that page, it looks like trying:
> >
> >    systemctl enable NetworkManager-wait-online.service
> >
> > would be the next thing for you to do.  That will enable
> > NetworkManager waiting for an IP address to be available before
> > starting things, and if you are lucky may be all that you need.
>  >
> 
> There's more at:
> https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration
> 
> However there's an implication that Mythbuntu is being used and I
> would 
> have thought the start-up scripts already cover that.
> 
> The config directory error and fallback to uPnp search points to a 
> deeper misconfiguration, so I would supply further details before 
> hacking any startup scripts.

Especially by a newbie!! <g>  


> Who owns /home/barry/.mythtv ("ls -ld /home/barry/.mythtv") ?
> Possibly root because you've previously run the frontend using sudo.
> Whatever, fix ownership with "sudo chown -R
> barry:barry /home/barry/.mythtv"
> 
> Then pastebin a complete log of frontend startup.
> https://www.mythtv.org/wiki/Posting_Logs


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:
barry at Lenovo-M58:~$ pastebinit '/media/barry/ADATA UFD/Connected - July
6.odt' 
http://paste.ubuntu.com/18717700/
barry at Lenovo-M58:~$ pastebinit '/media/barry/ADATA UFD/Connected -
didn'\''t July 6.odt' 
http://paste.ubuntu.com/18717760/

(And I learned something!  Can drag the file from a directory list to
Terminal and it inserts itself!!  I'm impressed!!)

(See below for the who owns thing)



> Is it a Mythbuntu installation ?
> Do you have other remote frontends that connect ok ?


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.



Ok, back to the "who owns" thing.  So  "ls -ld /home/barry/.mythtv"  ...

lrwxrwxrwx 1 mythtv mythtv 22 Jun 30 14:32 /home/barry/.mythtv
-> /etc/mythtv/config.xml


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!)

Run the 'ownership' command again (you did ask but makes some sense to
do so)
lrwxrwxrwx 1 barry barry 22 Jun 30 14:32 /home/barry/.mythtv
-> /etc/mythtv/config.xml

Well. see a little change!

...Run 'mythfrontend' at Terminal.  First pass works!!  Woo
hoo!  ...Second pass, doesn't.  Post the logs again....

barry at Lenovo-M58:~$ pastebinit '/media/barry/ADATA UFD/Connect - follow
CHOWN July 7.odt' 
http://paste.ubuntu.com/18721022/
barry at Lenovo-M58:~$ 
barry at Lenovo-M58:~$ pastebinit '/media/barry/ADATA UFD/Connect -
didn'\''t - follow CHOWN July 7.odt' 
http://paste.ubuntu.com/18721078/


And a BIG 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.  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160707/83b76cd9/attachment.html>


More information about the mythtv-users mailing list