[mythtv-users] Frontend Raspberry Pi setup issues

networks1 at cox.net networks1 at cox.net
Sun Jan 29 22:41:29 UTC 2017


---- Peter Bennett <cats22 at comcast.net> wrote: 
> On 01/29/2017 04:04 PM, networks1 at cox.net wrote:
> > I verified that I can connect to mysql on the backend via the RPi mysql client and run a query.  I then tried starting the frontend on RPi, and same result::  Goes to DB config screen, and on finish it turns off the monitor.  When I turn it back on, it shows the desktop and turns off the monitor again (a detail not in my earlier posts).  Turn it back on again and I have the desktop.  Strange, no?
> >
> Please take a look at your .mythtv/config.xml file, which will be found
> in the home directory on the raspberry Pi of the user that is running
> the frontend. It seems there must be something wrong in there. If you
> have a working frontend on another machine copy the config.xml from
> there or compare them. If the config.xml has a name in the <Host> tag
> make sure that the name is in your hosts file and test that you can
> access it with ping. Check the user id and password in the file and see
> if you can connect with mysql client using those.
> 
> Peter
> 
There is not much in config.xml, but the IP address for the backend and the password are correct, and I can successfully ping the backend from the RPi:

<Configuration>
  <LocalHostName>my-unique-identifier-goes-here</LocalHostName>
  <Database>
    <PingHost>1</PingHost>
    <Host>192.168.1.200</Host>
    <UserName>mythtv</UserName>
    <Password>********</Password>
    <DatabaseName>mythconverg</DatabaseName>
    <Port>3306</Port>
  </Database>
  <WakeOnLAN>
    <Enabled>0</Enabled>
    <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
    <SQLConnectRetry>5</SQLConnectRetry>
    <Command>echo 'WOLsqlServerCommand not set'</Command>
  </WakeOnLAN>
</Configuration>


Per Bill's suggestion I tried starting from the command line with LIBCEC disabled.  That did not seem to work, but it did make me realize that I could get the log from the frontend that way.  Here is the first part of it.  Indicates a connection is being refused, but not on the port for mythconverg:

pi at raspberrypi:~ $ mythfrontend --override-setting LIBCEC_ENABLED=0
2017-01-29 15:10:24.487278 I  Setup Interrupt handler
2017-01-29 15:10:24.487443 I  Setup Terminated handler
2017-01-29 15:10:24.487472 I  Setup Segmentation fault handler
2017-01-29 15:10:24.487502 I  Setup Aborted handler
2017-01-29 15:10:24.487527 I  Setup Bus error handler
2017-01-29 15:10:24.487557 I  Setup Floating point exception handler
2017-01-29 15:10:24.487582 I  Setup Illegal instruction handler
2017-01-29 15:10:24.487624 I  Setup Real-time signal 0 handler
2017-01-29 15:10:24.487661 I  Setup User defined signal 1 handler
2017-01-29 15:10:24.487686 I  Setup User defined signal 2 handler
2017-01-29 15:10:24.487714 I  Setup Hangup handler
2017-01-29 15:10:24.488110 C  mythfrontend version: mythtv-fixes/0.28 [v0.28-97-ge9d0543] www.mythtv.org
2017-01-29 15:10:24.488143 C  Qt version: compile: 5.3.2, runtime: 5.3.2
2017-01-29 15:10:24.488161 N  Enabled verbose msgs:  general
2017-01-29 15:10:24.488227 N  Setting Log Level to LOG_INFO
2017-01-29 15:10:24.499903 I  Added logging to the console
2017-01-29 15:10:24.500034 N  Using runtime prefix = /usr
2017-01-29 15:10:24.500059 N  Using configuration directory = /home/pi/.mythtv
2017-01-29 15:10:24.500301 I  Assumed character encoding: en_US.UTF-8
2017-01-29 15:10:24.501920 N  Empty LocalHostName.
2017-01-29 15:10:24.501947 I  Using localhost value of raspberrypi
2017-01-29 15:10:24.639521 I  Testing network connectivity to '192.168.1.200'
2017-01-29 15:10:24.640895 I  Starting process manager
2017-01-29 15:10:24.644027 I  Starting process signal handler
2017-01-29 15:10:24.644987 I  Starting IO manager (read)
2017-01-29 15:10:24.645244 I  Starting IO manager (write)
2017-01-29 15:10:25.018441 E  X11 ModeLine query returned zeroes
2017-01-29 15:10:25.018951 N  Desktop video mode: 1824x984 60.000 Hz
2017-01-29 15:10:25.251249 E  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2017-01-29 15:10:25.251370 I  No joystick configuration found, not enabling joystick control
2017-01-29 15:10:25.398205 I  CECAdapter: Found 1 CEC devices(s).
2017-01-29 15:10:25.398271 I  CECAdapter: Device 1: path 'Raspberry Pi' com port 'RPI' SELECTED
2017-01-29 15:10:25.398292 I  CECAdapter: Trying to open device Raspberry Pi (RPI).
2017-01-29 15:10:25.399444 I  CECAdapter: connection opened
2017-01-29 15:10:25.653183 I  CECAdapter: registering new CEC client - v3.0.1
2017-01-29 15:10:26.345161 I  CECAdapter: >> source activated: Playback 1 (4)
2017-01-29 15:10:26.345312 I  CECAdapter: CEC client registered: libCEC version = 3.0.1, client version = 3.0.1, firmware version = 1, logical address(es) = Playback 1 (4) , physical address: 2.0.0.0,  compiled on Fri Jul  3 19:20:43 UTC 2015 by pbuilder at mgorven-pc.thefacebook.com on Linux 3.16.0-41-generic (armv7l), features: P8_USB, P8_detect, 'RPi'
2017-01-29 15:10:26.916985 I  CECAdapter: Opened CEC device.
2017-01-29 15:10:26.917126 I  CECAdapter: << powering on 'TV' (0)
2017-01-29 15:10:26.977309 I  CECAdapter: Asked TV to turn on.
2017-01-29 15:10:26.977386 I  CECAdapter: >> source activated: Playback 1 (4)
2017-01-29 15:10:26.977412 I  CECAdapter: Source Playback 1 Activated
2017-01-29 15:10:27.728442 I  CECAdapter: Asked TV to switch to this input.
2017-01-29 15:10:27.728625 I  UDPListener: Enabling
2017-01-29 15:10:27.772578 I  Binding to UDP 127.0.0.1:0
2017-01-29 15:10:27.772748 I  Binding to UDP 192.168.1.166:0
2017-01-29 15:10:27.773042 I  Binding to UDP [::1]:0
2017-01-29 15:10:27.773256 I  Binding to UDP [fe80::4371:b22c:5daa:615f%wlan0]:0
2017-01-29 15:10:27.773387 I  Binding to UDP 192.168.1.255:0
2017-01-29 15:10:27.801808 I  CECAdapter: << powering on 'TV' (0)
2017-01-29 15:10:27.801840 I  CECAdapter: << Playback 1 (4) -> broadcast (F): active source (2000)
2017-01-29 15:10:27.802275 I  CECAdapter: << powering on 'TV' (0)
2017-01-29 15:10:27.802883 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: localhost:6543 (try 1 of 1)
2017-01-29 15:10:27.803377 E  MythCoreContext::GetBackendServerIP(): No address defined for host: localhost
2017-01-29 15:10:27.807094 E  MythSocket(6c90bc80:-1): Failed to connect to (::1:6543) Connection refused
2017-01-29 15:10:27.807680 E  Connection to master server timed out.
			Either the server is down or the master server settings
			in mythtv-settings does not contain the proper IP address

Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
2017-01-29 15:10:27.848708 I  CECAdapter: << Playback 1 (4) -> broadcast (F): active source (2000)
2017-01-29 15:10:27.856771 I  Using Frameless Window
2017-01-29 15:10:27.856793 I  Using Full Screen Window
2017-01-29 15:10:27.870284 I  UI Screen Resolution: 1824 x 984
2017-01-29 15:10:28.060363 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: localhost:6543 (try 1 of 1)
2017-01-29 15:10:28.060725 E  MythCoreContext::GetBackendServerIP(): No address defined for host: localhost
2017-01-29 15:10:28.061979 E  MythSocket(6c90bd38:-1): Failed to connect to (::1:6543) Connection refused
2017-01-29 15:10:28.062204 E  Connection to master server timed out.
			Either the server is down or the master server settings
			in mythtv-settings does not contain the proper IP address

2017-01-29 15:10:28.064051 I  Using the Qt painter
2017-01-29 15:10:28.150722 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: localhost:6543 (try 1 of 1)
2017-01-29 15:10:28.151067 E  MythCoreContext::GetBackendServerIP(): No address defined for host: localhost
2017-01-29 15:10:28.152310 E  MythSocket(6c90bc80:-1): Failed to connect to (::1:6543) Connection refused
2017-01-29 15:10:28.152684 E  Connection to master server timed out.
			Either the server is down or the master server settings
			in mythtv-settings does not contain the proper IP address

2017-01-29 15:10:29.667568 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: localhost:6543 (try 1 of 1)
2017-01-29 15:10:29.667991 E  MythCoreContext::GetBackendServerIP(): No address defined for host: localhost
2017-01-29 15:10:29.669377 E  MythSocket(6c90bc80:-1): Failed to connect to (::1:6543) Connection refused
2017-01-29 15:10:29.669691 E  Connection to master server timed out.
			Either the server is down or the master server settings
			in mythtv-settings does not contain the proper IP address



More information about the mythtv-users mailing list