[mythtv-users] frontend fails

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Feb 27 09:39:59 UTC 2017


On Mon, 27 Feb 2017 12:00:06 +0800, you wrote:

>
>
>On 25/2/17 5:05 am, mythtv-users-request at mythtv.org wrote:
>>>> Hi
>>>> I'm building a myth system for a mate.
>>>> Because of hastles with mythbuntu I've built from source (MythTV Version
>>>> : v0.28.1-3-gfc737ff-dirty) and made a deb and am running on ubuntu 16.04.
>>>> Backend / Frontend machine works normally.
>>>>
>>>> A seperate frontend machine cannot find the backend.
>>>>
>>>> myth at slave:~$ telnet ws132 6543
>>>> Trying 192.168.5.132...
>>>> telnet: Unable to connect to remote host: Connection refused
>>>>
>>>> OK that's clearly the reason
>>>>
>>>> myth at master:~$ netstat -anp |grep 6543
>>>> tcp        0      0 127.0.0.1:6543          0.0.0.0:* LISTEN      -
>>>> tcp6       0      0 fe80::fc70:940a:21:6543 :::* LISTEN      -
>>>> tcp6       0      0 ::1:6543                :::* LISTEN      -
>>>>
>>>> Hmm nothing in setup mentions 127... or localhost.
>>>> I see nothing in config that would say localhost.
>>>> My own master backend (also compiled from source  MythTV Version :
>>>> v0.28.1-3-gfc737ff) is quite different:
>>>>
>>>> [sandypit] /home/jam [628]% netstat -anp |grep 6543
>>>> tcp        0      0 192.168.5.33:6543       0.0.0.0:* LISTEN      -
>>>> tcp        0      0 127.0.0.1:6543          0.0.0.0:* LISTEN      -
>>>> tcp        0      0 ::1:6543                :::* LISTEN      -
>>>>
>>>> Can anyone cast light light on what is happening, more importantly why?
>
>[snip]
>
> >>> I have also found that with 0.28, if the backend starts up before 
> >>> the network, 2 things happen:
>
> >>> 1.  It only binds to localhost and never binds to the interface IP
> >>> even after it comes up.
>
> > That was the problem, thanks so.
> > My systemd rule says:
> > After=network.target mysql.service
>
>With revolving media this works just fine, on a flash disk systemd does 
>NOT do what is expected!!!
>
>Importing files into Music is very much slower on revolving media
>Now to resolve this issue (not importing being slower)
>
>James

No, "After=network.target" will not work with revolving media either.
It will only work for when you are using localhost, not when you want
to use an externally accessible IP address on a real Ethernet or WiFi
port.

If you are using Mythbuntu 16.04 with Network Manager (the default
install), then using "After=NetworkManager-wait-online.service" should
work.  Network Manager is responsible for getting the IP addresses via
DHCP and the NetworkManager-wait-online.service target only becomes
ready after the IP addresses are available.

This has been discussed before on this mailing list several times now.
See:

https://lists.gt.net/mythtv/users/602775
https://lists.gt.net/mythtv/users/605211

Also, these pages:

http://mythtvinstall.blogspot.co.nz
https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration


More information about the mythtv-users mailing list