[mythtv-users] Frontend Raspberry Pi setup issues

Peter Bennett cats22 at comcast.net
Sat Feb 4 04:08:09 UTC 2017

On 02/03/2017 08:19 PM, Greg Oliver wrote:
> On Fri, Feb 3, 2017 at 5:50 PM,  <networks1 at cox.net> wrote:
>> ---- Greg Oliver <oliver.greg at gmail.com> wrote:
>>> On Mon, Jan 30, 2017 at 6:40 PM,  <networks1 at cox.net> wrote:
>>>> ---- Greg Oliver <oliver.greg at gmail.com> wrote:
>>>>> On Sun, Jan 29, 2017 at 9:56 PM, Peter Bennett <cats22 at comcast.net> wrote:
>>>>>> On 01/29/2017 07:15 PM, networks1 at cox.net wrote:
>>>>>>> I just checked the backend setup. On the general tab, the local
>>>>>>> backend has the correct IP address with port 6543 and status port
>>>>>>> 6544.  The master backend has the correct IP and port 6543.
>>>>>> Can you explain "local backend" and "master backend". Are you running a
>>>>>> backend on the raspberry Pi? That is not something that I recommend and
>>>>>> definitely not on the same raspberry Pi as runs the front end. Perhaps
>>>>>> you can explain your setup of frontends and backends.
>>>>> The log indicates that the frontend is trying to connect to the
>>>>> backend on localhost:6543.  Your master backend IP address is wrong in
>>>>> the frontend setup.
>>>> Sounds plausible.  The correct backend IP shows in the config screen, and in the config.xml in /home/pi/mythtv so that's not where the problem is.  Is there some other config file where I can correct this?
>>> Do not know unfortunately.  I have never had to look any where else.
>>> If I was troubleshooting, I would do a packet capture on the backend
>>> server locked to the frontend's IP address to start and see what is on
>>> the wire.  Does the backend log show anything when you start the
>>> frontend?
>>> _______________________________________________
>>> 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
>> Sorry for the delay responding.  I had to do actual work, which kept me from this.  So I found a couple of things.  This is from the beginning of the output from the mythfrontend running on RPi
>> 2017-02-03 16:02:39.088872 N  Using configuration directory = /root/.mythtv
>> 2017-02-03 16:02:39.089151 I  Assumed character encoding: en_US.UTF-8
>> 2017-02-03 16:02:39.094823 E  DBHostName is not set in config.xml
>> 2017-02-03 16:02:39.094897 E  DBHostName is not set in config.xml
>> 2017-02-03 16:02:39.094972 N  Empty LocalHostName.
>> 2017-02-03 16:02:39.094999 I  Using localhost value of raspberrypi
>> 2017-02-03 16:02:39.198198 E  [DBManager0] Unable to connect to database!
>> 2017-02-03 16:02:39.198333 E  Driver error was [1/2002]:
>> QMYSQL: Unable to connect
>> Database error was:
>> Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
>> DBHostName is set in /home/pi/.mythtv/config.xml as indicated in an earlier post.  But this says the config directory is /root/.mythtv, According to the GUI file explorer that is empty (it's set to show hidden files).  If I try to look at via command line, I don't have permission to cd into it.  sudo cd /root  says "command not found," and apparently it's not possible to su on the RPi.  So I don't know what if anything is in that location, or why mythtv is using it rather than  /home/pi/.mythtv/config.xml.
>> All the above would seem to indicate that the problem is on the RPi side and it's not even communicating with the backend, but the backend log on the host machine has entries at the same time I tried to connect that say "MainServer::HandleVersion - Client speaks protocol verision 88 but we speak 72!" followed by closing the connection.  So that is obviously a problem.  I haven't update mythtv for a while.
> You have 2 choices.
> 1.  (cd /home/pi && tar cpf - ./.mythtv ) | ( cd /root && tar xvpf - --)
> and run it again
> 2.  su - pi -c mythfrontend
> You are running mythtv as root but the user it is configured for is pi
> _______________________________________________
You should not run the frontend as root. raspbian comes with a default
user id of pi, and it is fine to run with that id.

The version mismatch is a killer. You  cannot run incompatible frontend
and backend versions. Protocol 72 indicates your backend is running
MythTV 0.25. We support raspberry Pi on version 0.28. There is an
unofficial raspberry pi version for 0.27, but no support for older
versions than that. You are a couple of versions behind being able to
use Raspberry Pi for a frontend.


More information about the mythtv-users mailing list