[mythtv-users] Frontend Raspberry Pi setup issues
networks1 at cox.net
networks1 at cox.net
Fri Feb 3 23:50:26 UTC 2017
---- 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
> mythtv-users mailing list
> mythtv-users at mythtv.org
> 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.
More information about the mythtv-users