[mythtv-users] connection issue

Daryl McDonald darylangela at gmail.com
Thu Sep 19 23:10:01 UTC 2013


On Thu, Sep 19, 2013 at 3:11 PM, Daryl McDonald <darylangela at gmail.com> wrote:
> On Wed, Sep 18, 2013 at 10:47 PM, Bill Meek <keemllib at gmail.com> wrote:
>> On 09/18/2013 06:23 PM, Daryl McDonald wrote:
>> ...
>>
>>> Here is the backend log:  http://paste.ubuntu.com/6126024/
>>>
>>> And the frontend log:   http://paste.ubuntu.com/6126031/
>>
>> ...
>>
>> I cut the logs down so they fit on a screen (at least on my wide screen.)
>>
>> OK, the frontend 1st tells of a problem here:
>>
>>     Sep 18 18:50:44 ... mythfrontend[2396]: I ... MythCoreContext:
>> Connecting  to backend server: 127.0.0.1:6543 (try 1 of 1)
>>     Sep 18 18:50:44 ... mythfrontend[2396]: E ... Connection to master
>> server timed out. ...Either the server is down or...
>>
>> So look at the backend log and see what it's doing *at that time*:
>>
>>     Sep 18 18:50:39 ... mythbackend[1899]: E ... Failed listening on TCP
>> [fd11:cc97:526d:0:1278:d2ff:fe1d:9989]:6543 - Error 9:...
>>     ...
>>     Sep 18 18:50:39 ... mythbackend[1899]: C ... Backend exiting, MainServer
>> initialization error.
>>     Sep 18 18:50:49 ... mythbackend[1899]: I ... Running housekeeping thread
>>     Sep 18 18:51:59 ... mythbackend[1899]: E ... AutoExpire: Filesystem Info
>> cache is empty, unable to calculate necessary parameters.
>>     ...
>>     Sep 18 18:55:54 ... mythbackend[1899]: I ... Running housekeeping thread
>>     ...
>>     Sep 18 19:09:03 ... mythbackend[2887]: C ... mythbackend version:
>> fixes/0.25 [v0.25.3-49-gb5adf03] www.mythtv.org
>>
>> It's shutting down. Then a new backend is started (PID 2887.) Pay special
>> attention to
>> Note 5 in the link HP-mini posted. It has to do with IPv6 addresses being
>> available
>> at the time the backend starts. Once the machine is running, the problem
>> doesn't
>> occur.
>>
>> Do you use IPv6? Just curious because the address that starts out with fd11:
>> is
>> a manually configured Unique Local Address in my experience.
>>
>> And, you don't need to keep doing the: mythbackend --setverbose idle,system.
>> That was for testing you shutdown problems.
>>
>>
>> --
>> Bill
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> First of all, thanks for directing me to think about this repair,
> instead of giving instruction to be followed blindly, it's the only
> way I'll really learn anything.
> Secondly, I'm wondering, after digesting the wiki, if I haven't misled
> everyone by not relating the whole story.
> This set-up used to start and connect without any problem, until I ran
> an inappropriate command effectively starting the backend a second
> time. (you may recall this Bill)
> What seems to be a functional hack at this point is adding a stop and
> start BE command separated by a sleep 5 in the mythfrontend file.
> The wiki may be the correct fix, however, bit it leaves me wondering
> why did it work before and not now.
>
> Daryl

After confirming that my regular 19:00 recording did start
automatically, I've gone in and had a look at my "mythtv-backend.conf"
file and it looks a lot like the one on the wiki. I would guess that
adding "sleep 5" between "script" and "test -f..." would give the same
fix, but in a more proper way?(my file below)

daryl at daryl-A780L3C:~$ cat /etc/init/mythtv-backend.conf
# MythTV Backend service

description     "MythTV Backend"
author          "Mario Limonciello <superm1 at ubuntu.com>"

start on (local-filesystems and net-device-up IFACE!=lo and started udev-finish)
stop on runlevel [016]

kill timeout 10
respawn
respawn limit 2 3600

pre-start script
    [ -x /usr/sbin/mysqld ] || exit 0
    for i in `seq 1 30` ; do
       /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping && exit 0
       sleep .5
    done
end script

script
<<insert "sleep 5" here?>>
test -f /etc/default/locale && . /etc/default/locale || true
LANG=$LANG exec /usr/bin/mythbackend --syslog local7 --user mythtv
end script
daryl at daryl-A780L3C:~$

Thanks, Daryl


More information about the mythtv-users mailing list