[mythtv-users] Mythfrontend will not start

Jack McGee jack at greendesk.net
Wed Aug 31 02:14:04 UTC 2016


This is frontend and backend machines both upgraded from Ubuntu 14.04 to 
16.04 and .27 to .28.

Actually I just did clean install on frontend.

I think I finally got the mysql problems squared away on backend.  I can 
run through mythbackend setup and it runs myfilldatabase and mythbackend 
starts.


However, the frontend will not start.  This from the log on frontend:

ug 30 20:53:09 mythuser-ZBOX-ID84 mythfrontend.real: mythfrontend[8562]: 
I CoreContext mythtranslation.cpp:73 (load) Loading en_us translation 
for module mythfrontend
Aug 30 20:53:09 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8562]: I SendMessage mythcorecontext.cpp:436 
(ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): 
Connecting to backend server: localhost:6543 (try 1 of 1)
Aug 30 20:53:09 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8562]: E SendMessage mythcorecontext.cpp:979 
(GetBackendServerIP) MythCoreContext::GetBackendServerIP(): No address 
defined for host: localhost
Aug 30 20:53:09 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8562]: E MythSocketThread(-1) mythsocket.cpp:729 
(ConnectToHostReal) MythSocket(7f7ef801a100:-1): Failed to connect to 
(127.0.0.1:6543) Connection refused
Aug 30 20:53:09 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8562]: E SendMessage mythcorecontext.cpp:506 
(ConnectCommandSocket) Connection to master server timed 
out.#012#011#011#011Either the server is down or the master server 
settings#012#011#011#011in mythtv-settings does not contain the proper 
IP address
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Interrupt handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Terminated handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Segmentation fault handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Aborted handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Bus error handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Floating point exception handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Illegal instruction handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Real-time signal 0 handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup User defined signal 1 handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup User defined signal 2 handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I thread_unknown signalhandling.cpp:194 
(SetHandlerPrivate) Setup Hangup handler
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: C thread_unknown mythcommandlineparser.cpp:2599 
(ConfigureLogging) mythfrontend version: fixes/0.28 [v0.28-2-g15cf421] 
www.mythtv.org
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: C thread_unknown mythcommandlineparser.cpp:2601 
(ConfigureLogging) Qt version: compile: 5.5.1, runtime: 5.5.1
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N thread_unknown mythcommandlineparser.cpp:2603 
(ConfigureLogging) Enabled verbose msgs:  general
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N thread_unknown logging.cpp:920 (logStart) Setting 
Log Level to LOG_INFO
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N thread_unknown mythdirs.cpp:192 
(InitializeMythDirs) Using runtime prefix = /usr
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N thread_unknown mythdirs.cpp:194 
(InitializeMythDirs) Using configuration directory = /home/mythuser/.mythtv
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I Logger logging.cpp:313 (run) Added logging to the 
console
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythcorecontext.cpp:266 (Init) Assumed 
character encoding: en_US.UTF-8
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext mythdbparams.cpp:39 (IsValid) 
DBHostName is not set in config.xml
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext mythdbparams.cpp:39 (IsValid) 
DBHostName is not set in config.xml
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N CoreContext mythcontext.cpp:505 
(LoadDatabaseSettings) Empty LocalHostName.
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythcontext.cpp:513 
(LoadDatabaseSettings) Using localhost value of mythuser-ZBOX-ID84
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext mythdbcon.cpp:229 (OpenDatabase) 
[DBManager0] Unable to connect to database!
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext mythdbcon.cpp:230 (OpenDatabase) 
Driver error was [1/2002]:#012QMYSQL: Unable to connect#012Database 
error was:#012Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythcontext.cpp:809 (UPnPautoconf) 
UPNP Search 2 secs
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I LogForward loggingserver.cpp:295 (SyslogLogger) 
Added syslogging
Aug 30 20:53:13 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythcontext.cpp:824 (UPnPautoconf) 
UPNP Search 1 secs
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythcontext.cpp:834 (UPnPautoconf) No 
UPnP backends found
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: W CoreContext mythuihelper.cpp:1048 (FindThemeDir) 
MythUIHelper: No theme dir: '/usr/share/mythtv/themes/Mythbuntu'
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: W CoreContext mythuihelper.cpp:1067 (FindThemeDir) 
MythUIHelper: No default theme dir: '/usr/share/mythtv/themes/Mythbuntu'
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext mythuihelper.cpp:1076 (FindThemeDir) 
MythUIHelper: Could not find theme: Mythbuntu - Switching to Terra
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N CoreContext DisplayRes.cpp:64 (Initialize) Desktop 
video mode: 1920x1080 60.000 Hz
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext lirc.cpp:208 (Init) LIRC: Failed to 
connect to Unix socket '/var/run/lirc/lircd'#012#011#011#011eno: No such 
file or directory (2)
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext jsmenu.cpp:153 (ReadConfig) No 
joystick configuration found, not enabling joystick control
Aug 30 20:53:15 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E CoreContext cecadapter.cpp:134 (Open) CECAdapter: 
Failed to find any CEC devices.
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext cecadapter.cpp:195 (Close) CECAdapter: 
Closing down CEC.
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythudplistener.cpp:32 (Enable) 
UDPListener: Enabling
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext serverpool.cpp:508 (bind) Binding to 
UDP 127.0.0.1:0
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext serverpool.cpp:508 (bind) Binding to 
UDP 192.168.0.163:0
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext serverpool.cpp:508 (bind) Binding to 
UDP [::1]:0
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext serverpool.cpp:508 (bind) Binding to 
UDP [fe80::9e42:604:3229:25ea%enp1s0]:0
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext serverpool.cpp:508 (bind) Binding to 
UDP 192.168.0.255:0
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythmainwindow.cpp:1041 (Init) Using 
Frameless Window
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythmainwindow.cpp:1052 (Init) Using 
Full Screen Window
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythmainwindow.cpp:1079 (Init) UI 
Screen Resolution: 1920 x 1080
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I CoreContext mythmainwindow.cpp:1185 (Init) Using 
the Qt painter
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I SendMessage mythcorecontext.cpp:436 
(ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): 
Connecting to backend server: localhost:6543 (try 1 of 1)
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:979 
(GetBackendServerIP) MythCoreContext::GetBackendServerIP(): No address 
defined for host: localhost
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E MythSocketThread(-1) mythsocket.cpp:729 
(ConnectToHostReal) MythSocket(7f62e0004a80:-1): Failed to connect to 
(127.0.0.1:6543) Connection refused
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:506 
(ConnectCommandSocket) Connection to master server timed 
out.#012#011#011#011Either the server is down or the master server 
settings#012#011#011#011in mythtv-settings does not contain the proper 
IP address
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: N CoreContext mythcorecontext.cpp:1670 (InitLocale) 
Setting QT default locale to en_US
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I SendMessage mythcorecontext.cpp:436 
(ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): 
Connecting to backend server: localhost:6543 (try 1 of 1)
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:979 
(GetBackendServerIP) MythCoreContext::GetBackendServerIP(): No address 
defined for host: localhost
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E MythSocketThread(-1) mythsocket.cpp:729 
(ConnectToHostReal) MythSocket(7f62e00048b0:-1): Failed to connect to 
(127.0.0.1:6543) Connection refused
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:506 
(ConnectCommandSocket) Connection to master server timed 
out.#012#011#011#011Either the server is down or the master server 
settings#012#011#011#011in mythtv-settings does not contain the proper 
IP address
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I SendMessage mythcorecontext.cpp:436 
(ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): 
Connecting to backend server: localhost:6543 (try 1 of 1)
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:979 
(GetBackendServerIP) MythCoreContext::GetBackendServerIP(): No address 
defined for host: localhost
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E MythSocketThread(-1) mythsocket.cpp:729 
(ConnectToHostReal) MythSocket(7f62e000ac30:-1): Failed to connect to 
(127.0.0.1:6543) Connection refused
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:506 
(ConnectCommandSocket) Connection to master server timed 
out.#012#011#011#011Either the server is down or the master server 
settings#012#011#011#011in mythtv-settings does not contain the proper 
IP address
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I SendMessage mythcorecontext.cpp:436 
(ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): 
Connecting to backend server: localhost:6543 (try 1 of 1)
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:979 
(GetBackendServerIP) MythCoreContext::GetBackendServerIP(): No address 
defined for host: localhost
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E MythSocketThread(-1) mythsocket.cpp:729 
(ConnectToHostReal) MythSocket(7f62e00058b0:-1): Failed to connect to 
(127.0.0.1:6543) Connection refused
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: E SendMessage mythcorecontext.cpp:506 
(ConnectCommandSocket) Connection to master server timed 
out.#012#011#011#011Either the server is down or the master server 
settings#012#011#011#011in mythtv-settings does not contain the proper 
IP address
Aug 30 20:53:16 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[8735]: I SendMessage mythcorecontext.cpp:436 
(ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): 
Connecting to backend server: localhost:6543 (try 1 of 1)


I read

https://www.mythtv.org/wiki/Configuring_Frontend#Starting_the_Frontend

and renamed the ~/.mythtv directory

It also says If you see a screen which asks for your Country and 
Language, then the frontend has failed to find the backend. This could 
be because your backend is not running, or the backend is on a separate 
network from the frontend. Also there could be a firewall preventing 
communication

That is what is happening.

I have specified 192.168.0.105 in mythbackend settings, I believe there 
are two fields for that on one page.

I left IPV6 at the default.

the frontend is at 192.168.0.163

the frontend can ping the backend:

mythuser at mythuser-ZBOX-ID84:~$ ping 192.168.0.105
PING 192.168.0.105 (192.168.0.105) 56(84) bytes of data.
64 bytes from 192.168.0.105: icmp_seq=1 ttl=64 time=0.531 ms
64 bytes from 192.168.0.105: icmp_seq=2 ttl=64 time=0.517 ms
64 bytes from 192.168.0.105: icmp_seq=3 ttl=64 time=0.530 ms

I believe mythbackend is running on 192.168.0.105

mythuser at amethi:~$ ps aux | grep mythbackend
mythtv    3048  0.3  0.5 4871132 97648 ?       Ssl  20:48   0:05 
/usr/bin/mythbackend --quiet --syslog local7
mythuser  9161  0.0  0.0  14224  1092 pts/1    S+   21:12   0:00 grep 
--color=auto mythbackend





More information about the mythtv-users mailing list