[mythtv-users] Mythfrontend will not start

Jack McGee jack at greendesk.net
Wed Aug 31 12:03:53 UTC 2016


On 08/31/2016 06:29 AM, Jack McGee wrote:
> On 08/30/2016 11:28 PM, Bill Meek wrote:
>> On 08/30/2016 09:14 PM, Jack McGee wrote:
>>> 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
>>
>> I would start looking at the line above and see why
>> /home/mythuser/.mythtv/config.xml doesn't have the
>> information needed to access the backend.
>>
>> This may help: https://www.mythtv.org/wiki/Config.xml#Troubleshooting
>>
>
> I changed <Host> from local host to 192.168.0.105, but that did not 
> fix the problem.
>
> 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>
>
>
>
>> And much like the ping you tried, this is a nice
>> independent test:
>>
>>     nmap -p3306,6543 --reason yourBackendAndDbHost
>>
>> You expect something like this in the response:
>>
>> PORT     STATE SERVICE REASON
>> 3306/tcp open  mysql   syn-ack
>> 6543/tcp open  mythtv  syn-ack
>>
>
> This might be a problem:
> mythuser at mythuser-ZBOX-ID84:~$ nmap -p3306,6543 --reason 192.168.0.105
>
> Starting Nmap 7.01 ( https://nmap.org ) at 2016-08-31 05:48 CDT
> Nmap scan report for 192.168.0.105
> Host is up, received syn-ack (0.00067s latency).
> PORT     STATE  SERVICE REASON
> 3306/tcp open   mysql   syn-ack
> 6543/tcp closed mythtv  conn-refused

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:36 amethi mythbackend: mythbackend[3048]: C CoreContext 
signalhandling.cpp:305 (handleSignal) Received Terminated: Code 0, PID 
1, UID 0, Value 0x00000000
Aug 31 07:01:36 amethi mythbackend: mythbackend[3048]: I CoreContext 
mythdbcon.cpp:422 (PurgeIdleConnections) New DB connection, total: 11
Aug 31 07:01:36 amethi mythbackend: mythbackend[3048]: N CoreContext 
main_helpers.cpp:730 (run_backend) MythBackend exiting
Aug 31 07:01:36 amethi mythbackend: mythbackend[3048]: I CoreContext 
bonjourregister.cpp:28 (~BonjourRegister) Bonjour: De-registering 
service '_mythbackend._tcp.' on 'Mythbackend on amethi'
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: C thread_unknown 
mythcommandlineparser.cpp:2599 (ConfigureLogging) mythbackend version: 
fixes/0.28 [v0.28-50-gd9182ff] www.mythtv.org
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: C thread_unknown 
mythcommandlineparser.cpp:2601 (ConfigureLogging) Qt version: compile: 
5.5.1, runtime: 5.5.1
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N thread_unknown 
mythcommandlineparser.cpp:2603 (ConfigureLogging) Enabled verbose msgs:  
general
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N thread_unknown 
logging.cpp:920 (logStart) Setting Log Level to LOG_INFO
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I Logger 
logging.cpp:313 (run) Added logging to the console
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrupt handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Terminated handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Segmentation fault handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Aborted handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Bus error handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Floating point 
exception handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Illegal instruction handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Real-time signal 0 handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I thread_unknown 
signalhandling.cpp:194 (SetHandlerPrivate) Setup Hangup handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N thread_unknown 
mythdirs.cpp:192 (InitializeMythDirs) Using runtime prefix = /usr
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N thread_unknown 
mythdirs.cpp:194 (InitializeMythDirs) Using configuration directory = 
/home/mythtv/.mythtv
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
mythcorecontext.cpp:266 (Init) Assumed character encoding: en_US.UTF-8
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N CoreContext 
mythcontext.cpp:505 (LoadDatabaseSettings) Empty LocalHostName.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
mythcontext.cpp:513 (LoadDatabaseSettings) Using localhost value of amethi
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N CoreContext 
mythcorecontext.cpp:1670 (InitLocale) Setting QT default locale to EN_US
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
mythcorecontext.cpp:1703 (SaveLocaleDefaults) Current locale EN_US
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N CoreContext 
mythlocale.cpp:123 (LoadDefaultsFromXML) Reading locale defaults from 
/usr/share/mythtv//locales/en_us.xml
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
mythtranslation.cpp:73 (load) Loading en_us translation for module 
mythfrontend
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
schemawizard.cpp:120 (Compare) Current MythTV Schema Version 
(DBSchemaVer): 1344
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
mythtranslation.cpp:73 (load) Loading en_us translation for module 
mythfrontend
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: N CoreContext 
main_helpers.cpp:597 (run_backend) MythBackend: Starting up as the 
master server.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I LogForward 
loggingserver.cpp:295 (SyslogLogger) Added syslogging
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
recorders/v4lchannel.cpp:542 (SetInputAndFormat) 
V4LChannel[14](/dev/video0): SetInputAndFormat(14, NTSC) (v4l v2) 
input_switch: 0 mode_switch: 0
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I SystemManager 
mythsystemunix.cpp:276 (run) Starting process manager
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I 
SystemSignalManager mythsystemunix.cpp:509 (run) Starting process signal 
handler
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I 
SystemIOHandlerW mythsystemunix.cpp:92 (run) Starting IO manager (write)
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I 
SystemIOHandlerR mythsystemunix.cpp:92 (run) Starting IO manager (read)
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
programinfo.cpp:2368 (CheckProgramIDAuthorities) Found 1 distinct 
programid authorities
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I Scheduler 
mythdbcon.cpp:449 (getStaticCon) New static DB connectionSchedCon
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'LogClean'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'DBCleanup'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 
'ThemeUpdateNotifications'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 
'RecordedArtworkUpdate'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'MythFillDB'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 
'JobQueueRecover'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 
'HardwareProfiler'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:699 (Start) Queueing HouseKeeperTask 
'ThemeUpdateNotifications'.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
housekeeper.cpp:706 (Start) Starting HouseKeeper.
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 127.0.0.1:6544
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 192.168.0.105:6544
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 127.0.0.1:6554
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 192.168.0.105:6554
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 127.0.0.1:6549
Aug 31 07:01:50 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 192.168.0.105:6549
Aug 31 07:01:52 amethi mythbackend: mythbackend[11751]: I CoreContext 
main_helpers.cpp:687 (run_backend) Main::Registering HttpStatus Extension
Aug 31 07:01:52 amethi mythbackend: mythbackend[11751]: W CoreContext 
mainserver.cpp:281 (MainServer) MainServer: Unable to find IPv6 address 
to bind
Aug 31 07:01:52 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 127.0.0.1:6543
Aug 31 07:01:52 amethi mythbackend: mythbackend[11751]: I CoreContext 
serverpool.cpp:407 (listen) Listening on TCP 192.168.0.105:6543
Aug 31 07:01:52 amethi mythbackend: mythbackend[11751]: N CoreContext 
autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required 
Free Space: 10.0 GB w/freq: 15 min
Aug 31 07:01:53 amethi mythbackend: mythbackend[11751]: I CoreContext 
bonjourregister.cpp:118 (BonjourCallback) Bonjour: Service registration 
complete: name 'Mythbackend on amethi' type '_mythbackend._tcp.' domain: 
'local.'
Aug 31 07:01:53 amethi mythbackend: mythbackend[11751]: I Scheduler 
scheduler.cpp:2263 (HandleReschedule) Reschedule requested for MATCH 0 0 
0 - SchedulerInit
Aug 31 07:01:53 amethi mythbackend: mythbackend[11751]: E Scheduler 
scheduler.cpp:3555 (BuildNewRecordsQueries) Invalid search key in 
recordid 309
Aug 31 07:01:53 amethi mythbackend: mythbackend[11751]: E Scheduler 
scheduler.cpp:3555 (BuildNewRecordsQueries) Invalid search key in 
recordid 486
Aug 31 07:01:53 amethi mythbackend: mythbackend[11751]: E Scheduler 
scheduler.cpp:3555 (BuildNewRecordsQueries) Invalid search key in 
recordid 487
Aug 31 07:01:53 amethi mythbackend: mythbackend[11751]: E Scheduler 
scheduler.cpp:3555 (BuildNewRecordsQueries) Invalid search key in 
recordid 488
Aug 31 07:01:54 amethi mythbackend: mythbackend[11751]: I Scheduler 
scheduler.cpp:2376 (HandleReschedule) Scheduled 595 items in 0.6 = 0.20 
match + 0.29 check + 0.15 place
Aug 31 07:01:54 amethi mythbackend: mythbackend[11751]: I Scheduler 
scheduler.cpp:2443 (HandleRunSchedulerStartup) Scheduler: Seem to be 
woken up by USER



More information about the mythtv-users mailing list