[mythtv-users] Mythfrontend will not start

Jack McGee jack at greendesk.net
Wed Aug 31 17:20:22 UTC 2016


On 08/31/2016 11:51 AM, Jack McGee wrote:
> On 08/31/2016 09:26 AM, Bill Meek wrote:
>> On 08/31/2016 07:03 AM, Jack McGee wrote:
>> ...
>>> and on backend:
>>> mythuser at amethi:~$ sudo netstat -tnlp | grep :6543
>>> [sudo] password for mythuser:
>>> tcp        0      0 127.0.0.1:6543          0.0.0.0:* LISTEN      
>>> 3048/mythbackend
>>> tcp6       0      0 ::1:6543                :::* LISTEN 
>>> 3048/mythbackend
>>>
>>> and I stopped and restarted backend:
>> ...
>>> Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I 
>>> CoreContext serverpool.cpp:407 (listen) Listening on TCP 
>>> 192.168.0.105:65<nn>
>>
>> The lines from the backend log are good, did the netstat
>> *after* the reboot look the same (not listening on the Private
>> Network address?)
>>
>> If it's now listening, then try: systemctl cat mythtv-backend.service
>> as I _think_ there are suggested solutions in the comments there.
>>
>> Or here: 
>> https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_network_has_initialized
>>
>>
>
> After restarting backend, the frontend::
> mythuser at mythuser-ZBOX-ID84:~$ nmap -p3306,6543 --reason 192.168.0.105
>
> Starting Nmap 7.01 ( https://nmap.org ) at 2016-08-31 11:33 CDT
> Nmap scan report for 192.168.0.105
> Host is up, received syn-ack (0.00060s latency).
> PORT     STATE SERVICE REASON
> 3306/tcp open  mysql   syn-ack
> 6543/tcp open  mythtv  syn-ack
>
> Nmap done: 1 IP address (1 host up) scanned in 13.15 seconds
> mythuser at mythuser-ZBOX-ID84:~$ systemctl cat mythtv-backend.service
> # /dev/null
> mythuser at mythuser-ZBOX-ID84:~$ locate config.xml
> /etc/mythtv/config.xml
> /home/mythtv/.mythtv/config.xml
> /usr/lib/python3/dist-packages/checkbox_support/parsers/tests/fixtures/submission_info_lspci_standard_config.xml 
>
> /usr/share/mythtv/config.xml
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/bbc_config.xml 
>
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/hulu_config.xml 
>
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/mashups_config.xml 
>
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/pbs_config.xml 
>
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/rev3_config.xml 
>
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/tedtalks_config.xml 
>
> /usr/share/mythtv/internetcontent/nv_python_libs/configs/XML/thewb_config.xml 
>
> mythuser at mythuser-ZBOX-ID84:~$ cat /etc/mythtv/config.xml
> <Configuration>
>   <Database>
>     <PingHost>1</PingHost>
>     <Host>192.168.0.105</Host>
>     <UserName>mythtv</UserName>
>     <Password>Tj4zOBwM</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>
>
> mythuser at mythuser-ZBOX-ID84:~$ cat /home/mythtv/.mythtv/config.xml
> <Configuration>
>   <Database>
>     <PingHost>1</PingHost>
>     <Host>192.168.0.105</Host>
>     <UserName>mythtv</UserName>
>     <Password>Tj4zOBwM</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>
>
>
> But frontend still does not start.
>
> on the backend, I ran:
> mythuser at amethi:/var/log/mythtv$ systemctl cat mythtv-backend.service
> # /lib/systemd/system/mythtv-backend.service
> [Unit]
> Description=MythTV Backend
> Documentation=https://www.mythtv.org/wiki/Mythbackend
> After=mysqld.service network.target
>
> [Service]
> User=mythtv
> EnvironmentFile=-/etc/mythtv/additional.args
> ExecStart=/usr/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS
> StartLimitBurst=10
> StartLimitInterval=10m
> Restart=on-failure
> RestartSec=1
>
> [Install]
> WantedBy=multi-user.target

and the frontend log lines that might be important:

Aug 31 11:41:20 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[18253]: N thread_unknown mythdirs.cpp:194 
(InitializeMythDirs) Using configuration directory = /home/mythuser/.mythtv

I found no config.xml file in that directory.
So I created one:
mythuser at mythuser-ZBOX-ID84:~$ cat .mythtv/config.xml
<Configuration>
   <Database>
     <PingHost>1</PingHost>
     <Host>192.168.0.105</Host>
     <UserName>mythtv</UserName>
     <Password>Tj4zOBwM</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>


and it still crashed:

Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: N thread_unknown mythdirs.cpp:192 
(InitializeMythDirs) Using runtime prefix = /usr
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: N thread_unknown mythdirs.cpp:194 
(InitializeMythDirs) Using configuration directory = /home/mythuser/.mythtv
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I Logger logging.cpp:313 (run) Added logging to the 
console
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I CoreContext mythcorecontext.cpp:266 (Init) Assumed 
character encoding: en_US.UTF-8
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: N CoreContext mythcontext.cpp:505 
(LoadDatabaseSettings) Empty LocalHostName.
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I CoreContext mythcontext.cpp:513 
(LoadDatabaseSettings) Using localhost value of mythuser-ZBOX-ID84
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: E CoreContext mythdbcon.cpp:229 (OpenDatabase) 
[DBManager0] Unable to connect to database!
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: E CoreContext mythdbcon.cpp:230 (OpenDatabase) 
Driver error was [1/1045]:#012QMYSQL: Unable to connect#012Database 
error was:#012Access denied for user 'mythtv'@'192.168.0.163' (using 
password: YES)
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: E CoreContext mythdbcon.cpp:229 (OpenDatabase) 
[DBManager0] Unable to connect to database!
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: E CoreContext mythdbcon.cpp:230 (OpenDatabase) 
Driver error was [1/1045]:#012QMYSQL: Unable to connect#012Database 
error was:#012Access denied for user 'mythtv'@'192.168.0.163' (using 
password: YES)
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I CoreContext mythcontext.cpp:694 (TestDBconnection) 
Testing network connectivity to '192.168.0.105'
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I SystemManager mythsystemunix.cpp:276 (run) 
Starting process manager
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I SystemIOHandlerW mythsystemunix.cpp:92 (run) 
Starting IO manager (write)
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I SystemIOHandlerR mythsystemunix.cpp:92 (run) 
Starting IO manager (read)
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: I SystemSignalManager mythsystemunix.cpp:509 (run) 
Starting process signal handler
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: E CoreContext mythdbcon.cpp:229 (OpenDatabase) 
[DBManager1] Unable to connect to database!
Aug 31 12:14:34 mythuser-ZBOX-ID84 mythfrontend.real: 
mythfrontend[3437]: E CoreContext mythdbcon.cpp:230 (OpenDatabase) 
Driver error was [1/1045]:#012QMYSQL: Unable to connect#012Database 
error was:#012Access denied for user 'mythtv'@'192.168.0.163' (using 
password: YES)



More information about the mythtv-users mailing list