[mythtv-users] Mythbackend always runs at startup

Stephen Worthington stephen_agent at jsw.gen.nz
Sat Nov 26 04:34:35 UTC 2016


On Fri, 25 Nov 2016 22:49:06 -0500, you wrote:

>On 11/25/2016 5:34 PM, Stephen Villano wrote:
>> Check if your database is accepting connections from the network.
>>
>> On 11/25/16, Don Brett <dlbrett at zoominternet.net> wrote:
>>> I've migrated a 14.04 mythtv database over to  a newly built 16.04 box.
>>> All went pretty well, except when I restart the computer, it always
>>> comes into the mythbackend setup program.  I don't see anything wrong
>>> with the settings, so I exit from it, manually start the frontend, and
>>> all is well.  This happens each time I reboot, any suggestions on what
>>> to look for?
>>>
>>>
>>> ---
>>> This email has been checked for viruses by Avast antivirus software.
>>> https://www.avast.com/antivirus
>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums: https://forum.mythtv.org
>>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>>
>
>I'm not sure how to tell, but I can ssh in using putty, then run: mysql 
>-umythtv -p, which works fine.  Also the backend general settings are:
>
>IPv4 address: 192.168.0.124
>IPv6 address = ::1
>IP address: 192.168.0.124 / Port 6543
>
>Does this answer the question?  What else should I look for?

As Hika said, mythbackend is likely getting started at the wrong time
by systemd, before your network is up fully.  So it fails to start,
and is not available when the GUI starts, or is only available on
127.0.0.1.  This happens when you set MythTV up to be available on
your network, rather than just on localhost (127.0.0.1).  Since your
backend settings are for a externally accessible IP address, I think
that is likely what is happening to you.  The solution is to adjust
the systemd settings for mythbackend.  There is a whole thread about
that, where we worked out how to do it.  See here:

http://lists.mythtv.org/pipermail/mythtv-users/2016-August/388541.html

You may also want to have mythbackend wait until its tuners are up, if
you use tuners that are slow to start up (eg slow firmware upload).
Let me know if you need to know how to do that.


More information about the mythtv-users mailing list