[mythtv-users] Frontend Raspberry Pi setup issues

networks1 at cox.net networks1 at cox.net
Sat Feb 4 15:33:11 UTC 2017


---- Peter Bennett <cats22 at comcast.net> wrote: 

> >> 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.
> 
> Peter

Alright guys, thanks for all the feedback. Will update the backend.  As for the frontend, I don't quite understand how it got configured to run as root.  I followed the install instructions in the wiki, or thought I did.  I would un/re-install, but not sure how to prevent the root configuration again.



More information about the mythtv-users mailing list