[mythtv-users] frontend fails

James Linder jam at tigger.ws
Tue Feb 28 03:14:17 UTC 2017



On 27/2/17 5:40 pm, mythtv-users-request at mythtv.org wrote:
>>>>> 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
Stephen thank you for all the information and links.

> No, "After=network.target" will not work with revolving media either
but it *does* presumably the timing for revolving media changes enough things to make this true.

As discussed in your references, I do *not* use NetworkManager but /etc/network/interfaces for a static IP address.
What could I do to show that
NetworkManager-wait-online.service
is working rather than the system works by chance.
Thepingnetwork.service seems much more certain! (but I need to do some learning)

Thanks
James



More information about the mythtv-users mailing list