[mythtv-users] Brand new install - Mythbackend doesn't start

Ashu Desai ashu.desai at gmail.com
Thu Aug 3 04:51:02 UTC 2017


On Wed, Aug 2, 2017 at 10:55 PM, Mark Perkins <perkins1724 at hotmail.com>
wrote:

>
>
> On 03/08/17 13:02, Ashu Desai wrote:
>
>
>
> On Wed, Aug 2, 2017 at 8:33 PM, Mark Perkins <perkins1724 at hotmail.com>
> wrote:
>
>>
>>
>> On 03/08/17 09:57, Ashu Desai wrote:
>>
>>
>>
>>
>>
>> This "working" one is running as slave, I think your IP addressing is
>>> still wrong.
>>>
>>> Aug 02 16:04:16 mythmaster.localdomain mythbackend[4869]: 2017-08-02
>>> 16:04:16.375473 E  MythSocket(9ea740:-1): Failed to connect to (
>>> 127.0.0.1:6543) Connection refused
>>>
>>> Aug 02 16:04:16 mythmaster.localdomain mythbackend[4869]: 2017-08-02
>>> 16:04:16.377114 N  MythBackend: Running as a slave backend.
>>>
>>
>> How do I address this? this is a brand new install - so all i have done
>> is just install the myth packages and done mythtv-setup. I haven't tried
>> making any slave backend.
>>
>> mythtv-setup, general, make sure both the Local Backend and Master
>> Backend IP address fields are the same and are 172.16.10.54 (assuming that
>> is the static assigned IP address for your machine).
>> If the two are different it will assume it is a slave.
>>
>>
>>
> Both had same IP - it didn't work.
> So I put 127.0.0.1 for the Local Backend, and 172.16.10.54as Master
> backend  (still same machine)
>
>
>
> As I understand it the logic for starting as a slave is a simple
> comparison of the local backend address and the master backend address
> fields. If they are different in any way (even if 127.0.0.1 in one and
> localhost in the other) it will start as a slave.
>
>
It works if it is in the "slave" mode. If I have Backend as 127.0.0.1 and
Master backend as the actual IP - it works. Currently both are the actual
IP, it doesn't.



> If it is 'not working' with 172.16.10.54 in both master and local BE
> fields then need to troubleshoot what other bad config exists rather than
> keep changing back to localhost / 127.0.0.1 and masking the problem /
> creating further problems.
>
> What do you get in the log file (clean pastebin from startup to shutdown)
> when you have 172.16.10.54 in both local and master BE fields?
>

https://pastebin.com/SGy5xv3C


> Is mysql listening on more than localhost (sudo netstat -peanut | grep
> 3306)?
>

[root at mythmaster ~]# netstat -peanut | grep 3306
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
     27         53896      10897/mysqld


> Is your mythbackend.service file starting the BE as user root or user
> mythtv?
>

Currently running as root. However, not sure why when I look at the log
files, it shows some created by "mythtv" as well.

[root at mythmaster ~]# ls -lrd /var/log/mythtv/mythbackend.*
-rw-r--r--  1 root   root   157929 Aug  2 23:22
/var/log/mythtv/mythbackend.log
-rw-r--r--  1 root   root     3969 Aug  2 23:22
/var/log/mythtv/mythbackend.20170803042250.11886.log
-rw-r--r--  1 root   root     3969 Aug  2 23:20
/var/log/mythtv/mythbackend.20170803042012.11778.log
-rw-r--r--  1 root   root     3969 Aug  2 23:13
/var/log/mythtv/mythbackend.20170803041306.11352.log
-rw-r--r--  1 root   root     4580 Aug  2 23:05
/var/log/mythtv/mythbackend.20170803040547.11062.log
-rw-r--r--  1 root   root     4593 Aug  2 23:01
/var/log/mythtv/mythbackend.20170803040127.10948.log
-rw-r--r--  1 root   root     4593 Aug  2 23:01
/var/log/mythtv/mythbackend.20170803040100.10627.log
-rw-r--r--  1 root   root     4593 Aug  2 22:59
/var/log/mythtv/mythbackend.20170803035917.10563.log
-rw-r--r--  1 root   root     3966 Aug  2 17:13
/var/log/mythtv/mythbackend.20170802221308.6964.log
-rw-r--r--  1 root   root     3966 Aug  2 17:11
/var/log/mythtv/mythbackend.20170802221121.6693.log
-rw-r--r--  1 root   root     3966 Aug  2 17:03
/var/log/mythtv/mythbackend.20170802220356.6581.log
-rw-r--r--  1 root   root     3966 Aug  2 17:03
/var/log/mythtv/mythbackend.20170802220309.6545.log
-rw-r--r--  1 root   root     3966 Aug  2 17:03
/var/log/mythtv/mythbackend.20170802220305.6513.log
-rw-r--r--  1 root   root     3966 Aug  2 17:02
/var/log/mythtv/mythbackend.20170802220258.6489.log
-rw-r--r--  1 root   root     3966 Aug  2 17:01
/var/log/mythtv/mythbackend.20170802220139.6328.log
-rw-r--r--  1 root   root     3966 Aug  2 16:54
/var/log/mythtv/mythbackend.20170802215417.6002.log
-rw-r--r--  1 root   root     3966 Aug  2 16:10
/var/log/mythtv/mythbackend.20170802211054.5186.log
-rw-r--r--  1 root   root     3954 Aug  2 16:09
/var/log/mythtv/mythbackend.20170802210957.5130.log
-rw-r--r--  1 root   root     3966 Aug  2 16:09
/var/log/mythtv/mythbackend.20170802210928.5106.log
-rw-r--r--  1 root   root    19635 Aug  2 16:09
/var/log/mythtv/mythbackend.20170802210416.4869.log
-rw-r--r--  1 root   root     3966 Aug  2 15:58
/var/log/mythtv/mythbackend.20170802205837.4441.log
-rw-r--r--  1 root   root    70629 Aug  2 15:58
/var/log/mythtv/mythbackend.20170802202803.3763.log
-rw-r--r--  1 root   root     3966 Aug  2 15:27
/var/log/mythtv/mythbackend.20170802202736.3696.log
-rw-r--r--  1 root   root     3954 Aug  2 15:26
/var/log/mythtv/mythbackend.20170802202639.3542.log
-rw-r--r--  1 root   root     4439 Aug  2 13:00
/var/log/mythtv/mythbackend.20170802180020.4357.log
-rw-r--r--  1 root   root     4434 Aug  2 13:00
/var/log/mythtv/mythbackend.20170802180008.4311.log
-rw-r--r--  1 root   root     4435 Aug  2 12:48
/var/log/mythtv/mythbackend.20170802174817.4110.log
-rw-r--r--  1 root   root     4081 Aug  2 12:47
/var/log/mythtv/mythbackend.20170802174736.4090.log
-rw-r--r--  1 root   root     4093 Aug  2 12:45
/var/log/mythtv/mythbackend.20170802174502.3977.log
-rw-r--r--  1 root   root     4093 Aug  2 12:43
/var/log/mythtv/mythbackend.20170802174349.3844.log
-rw-r--r--  1 root   root     4093 Aug  2 12:43
/var/log/mythtv/mythbackend.20170802174337.3820.log
-rw-r--r--  1 root   root     4093 Aug  2 12:43
/var/log/mythtv/mythbackend.20170802174330.3802.log
-rw-r--r--  1 root   root     4093 Aug  2 12:33
/var/log/mythtv/mythbackend.20170802173344.3480.log
-rw-r--r--  1 root   root     4093 Aug  2 12:33
/var/log/mythtv/mythbackend.20170802173328.3448.log
-rw-r--r--  1 root   root     4093 Aug  2 12:32
/var/log/mythtv/mythbackend.20170802173251.3369.log
-rw-r--r--. 1 root   root     4154 Aug  2 00:58
/var/log/mythtv/mythbackend.20170802055841.25829.log
-rw-r--r--. 1 mythtv mythtv   4400 Aug  1 22:44
/var/log/mythtv/mythbackend.20170802034418.24205.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 22:40
/var/log/mythtv/mythbackend.20170802034037.24103.log
-rw-r--r--. 1 root   root     4928 Aug  1 22:37
/var/log/mythtv/mythbackend.20170802033749.24025.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 22:37
/var/log/mythtv/mythbackend.20170802033730.23979.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 22:27
/var/log/mythtv/mythbackend.20170802032732.23638.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 22:24
/var/log/mythtv/mythbackend.20170802032433.23504.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 22:14
/var/log/mythtv/mythbackend.20170802031438.22934.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 22:03
/var/log/mythtv/mythbackend.20170802030354.21908.log
-rw-r--r--. 1 mythtv mythtv 149339 Aug  1 22:03
/var/log/mythtv/mythbackend.20170802015555.20659.log
-rw-r--r--. 1 mythtv mythtv  36682 Aug  1 20:55
/var/log/mythtv/mythbackend.20170802014357.20104.log
-rw-r--r--. 1 mythtv mythtv  93166 Aug  1 20:37
/var/log/mythtv/mythbackend.20170802005849.17703.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 19:58
/var/log/mythtv/mythbackend.20170802005822.17628.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 19:22
/var/log/mythtv/mythbackend.20170802002223.11459.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 18:07
/var/log/mythtv/mythbackend.20170801230726.15280.log
-rw-r--r--. 1 mythtv mythtv   4928 Aug  1 17:43
/var/log/mythtv/mythbackend.20170801224330.14074.log
-rw-r--r--. 1 mythtv mythtv   4942 Aug  1 17:41
/var/log/mythtv/mythbackend.20170801224101.13876.log


>
> _______________________________________________
> 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
>
>


-- 
http://about.me/adesai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170802/683b59ab/attachment.html>


More information about the mythtv-users mailing list