[mythtv-users] mythbackend keeps crashing

Gabe Rubin gaberubin at gmail.com
Sun Mar 9 20:45:08 UTC 2014


On Sun, Mar 9, 2014 at 1:03 PM, Karl Dietz <dekarl at spaetfruehstuecken.org>wrote:

> On 09.03.2014 20:36, Gabe Rubin wrote:
>
>> I am in the process of replacing a bad system drive.  Fortunately, I was
>> able to recover my database backups and have most of the system restored.
>>
>> However, mythbackend keeps crashing.  This is what I see in my logs and
>> google is not yielding any helpful results.  I was hoping someone could
>> help:
>>
>
> It appears as if you lost your config.xml that your packager put into
> /etc/mythtv. Either give the mythtv user write access there then
> mythtv-setup can replace the broken config.xml file. Or you can also
> manually put a file with good values (like the connection to the database)
> there.
>
>
>  (InitializeMythDirs) - Read conf dir = /etc/mythtv
>> 2014-03-09 12:31:01.218392 N [1643/1643] thread_unknown mythdirs.cpp:68
>> (InitializeMythDirs) - Using configuration directory = /etc/mythtv
>>
>
>  2014-03-09 12:31:01.219347 E [1643/1643] CoreContext
>> configuration.cpp:67 (Load) - Error parsing: /etc/mythtv/config.xml at
>> line: 1  column: 1
>>
>
>  2014-03-09 12:31:01.244786 E [1643/1643] CoreContext
>> configuration.cpp:117 (Save) - Could not open settings file
>> /etc/mythtv/config.xml.new for writing
>>
>
>  2014-03-09 12:31:01.261787 E [1643/1651] MythSocketThread(-1)
>> mythsocket.cpp:661 (ConnectToHostReal) - MythSocket(1c7d7a0:-1): Failed
>> to connect to (127.0.0.1:6543 <http://127.0.0.1:6543>) Connection refused
>>
>> 2014-03-09 12:31:01.262909 N [1643/1643] CoreContext
>> main_helpers.cpp:586 (run_backend) - MythBackend: Running as a slave
>> backend.
>> 2014-03-09 12:31:01.263131 W [1643/1643] CoreContext
>> main_helpers.cpp:214 (setupTVs) - MythBackend: No valid capture cards
>> are defined in the database.
>>
>
> The backend isn't finding any configuration.
>
> Regards,
> Karl
>

Thanks.  I have two config.xml files.  One is in /home/mythtv/.mythtv and
the other is in /etc/mythtv

I copied the version from the mythdirectory into the etc directory.  It
looks like this:

<Configuration>
  <LocalHostName>my-unique-identifier-goes-here</LocalHostName>
  <Database>
    <PingHost>1</PingHost>
    <Host>localhost</Host>
    <UserName>mythtv</UserName>
    <Password>mythtv</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>
  <UPnP>
    <UDN>
      <MediaRenderer>8a2dc5d9-9e0c-4e8b-9b55-ca50131fa775</MediaRenderer>
    </UDN>
  </UPnP>
</Configuration>


Still having mythbackend crash:

2014-03-09 13:40:46.229791 C [4215/4215] thread_unknown
mythcommandlineparser.cpp:2595 (ConfigureLogging) - mythbackend version:
fixes/0.27 [v0.27-130-gfac84fa] www.mythtv.org
2014-03-09 13:40:46.229830 C [4215/4215] thread_unknown
mythcommandlineparser.cpp:2597 (ConfigureLogging) - Qt version: compile:
4.8.5, runtime: 4.8.5
2014-03-09 13:40:46.229833 N [4215/4215] thread_unknown
mythcommandlineparser.cpp:2599 (ConfigureLogging) - Enabled verbose msgs:
general
2014-03-09 13:40:46.229935 N [4215/4215] thread_unknown logging.cpp:914
(logStart) - Setting Log Level to LOG_INFO
2014-03-09 13:40:46.241438 I [4215/4218] Logger logging.cpp:315 (run) -
Added logging to the console
2014-03-09 13:40:46.242168 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Interrupt handler
2014-03-09 13:40:46.242181 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Terminated handler
2014-03-09 13:40:46.242192 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Segmentation fault
handler
2014-03-09 13:40:46.242202 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Aborted handler
2014-03-09 13:40:46.242212 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Bus error handler
2014-03-09 13:40:46.242222 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Floating point exception
handler
2014-03-09 13:40:46.242233 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Illegal instruction
handler
2014-03-09 13:40:46.242247 I [4215/4215] thread_unknown
signalhandling.cpp:194 (SetHandlerPrivate) - Setup Real-time signal 0
handler
2014-03-09 13:40:46.242320 N [4215/4215] thread_unknown mythdirs.cpp:55
(InitializeMythDirs) - Using runtime prefix = /usr
2014-03-09 13:40:46.242326 N [4215/4215] thread_unknown mythdirs.cpp:61
(InitializeMythDirs) - Read conf dir = /etc/mythtv
2014-03-09 13:40:46.242354 N [4215/4215] thread_unknown mythdirs.cpp:68
(InitializeMythDirs) - Using configuration directory = /etc/mythtv
2014-03-09 13:40:46.242490 I [4215/4215] CoreContext
mythcorecontext.cpp:249 (Init) - Assumed character encoding: en_US.UTF-8
2014-03-09 13:40:46.243265 N [4215/4215] CoreContext mythcontext.cpp:504
(LoadDatabaseSettings) - Empty LocalHostName.
2014-03-09 13:40:46.243282 I [4215/4215] CoreContext mythcontext.cpp:512
(LoadDatabaseSettings) - Using localhost value of Mythbox
2014-03-09 13:40:46.274880 N [4215/4215] CoreContext
mythcorecontext.cpp:1272 (InitLocale) - Setting QT default locale to en_US
2014-03-09 13:40:46.275031 I [4215/4215] CoreContext
mythcorecontext.cpp:1305 (SaveLocaleDefaults) - Current locale en_US
2014-03-09 13:40:46.275205 N [4215/4215] CoreContext mythlocale.cpp:121
(LoadDefaultsFromXML) - Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2014-03-09 13:40:46.286799 I [4215/4215] CoreContext schemawizard.cpp:118
(Compare) - Current MythTV Schema Version (DBSchemaVer): 1317
2014-03-09 13:40:46.287394 I [4215/4215] CoreContext mythtranslation.cpp:65
(load) - Loading en_us translation for module mythfrontend
2014-03-09 13:40:46.290776 E [4215/4222] MythSocketThread(-1)
mythsocket.cpp:661 (ConnectToHostReal) - MythSocket(1343620:-1): Failed to
connect to (127.0.0.1:6543) Connection refused
2014-03-09 13:40:46.291996 N [4215/4215] CoreContext main_helpers.cpp:586
(run_backend) - MythBackend: Running as a slave backend.
2014-03-09 13:40:46.292247 W [4215/4215] CoreContext main_helpers.cpp:214
(setupTVs) - MythBackend: No valid capture cards are defined in the
database.
2014-03-09 13:40:46.292366 I [4215/4215] CoreContext housekeeper.cpp:582
(RegisterTask) - Registering HouseKeeperTask 'JobQueueRecover'.
2014-03-09 13:40:46.292385 I [4215/4215] CoreContext housekeeper.cpp:582
(RegisterTask) - Registering HouseKeeperTask 'HardwareProfiler'.
2014-03-09 13:40:46.293405 I [4215/4215] CoreContext housekeeper.cpp:655
(Start) - Starting HouseKeeper.
2014-03-09 13:40:46.298751 I [4215/4215] CoreContext serverpool.cpp:399
(listen) - Listening on TCP 127.0.0.1:6544
2014-03-09 13:40:46.298868 I [4215/4215] CoreContext serverpool.cpp:399
(listen) - Listening on TCP [::1]:6544
2014-03-09 13:40:46.298967 I [4215/4215] CoreContext serverpool.cpp:399
(listen) - Listening on TCP [fe80::230:67ff:fe1f:8228%p7p1]:6544
2014-03-09 13:40:46.301247 N [4215/4215] CoreContext mediaserver.cpp:168
(Init) - MediaServer:: Loopback address specified - 127.0.0.1. Disabling
UPnP
2014-03-09 13:40:46.301256 I [4215/4215] CoreContext main_helpers.cpp:668
(run_backend) - Main::Registering HttpStatus Extension
2014-03-09 13:40:46.303508 I [4215/4215] CoreContext serverpool.cpp:399
(listen) - Listening on TCP 127.0.0.1:6543
2014-03-09 13:40:46.303597 I [4215/4215] CoreContext serverpool.cpp:399
(listen) - Listening on TCP [::1]:6543
2014-03-09 13:40:46.303680 I [4215/4215] CoreContext serverpool.cpp:399
(listen) - Listening on TCP [fe80::230:67ff:fe1f:8228%p7p1]:6543
2014-03-09 13:40:46.343601 I [4215/4217] LogForward loggingserver.cpp:1372
(forwardMessage) - New Client:  (#1)
2014-03-09 13:40:46.343737 I [4215/4217] LogForward loggingserver.cpp:142
(FileLogger) - Added logging to
/var/log/mythtv/mythbackend.20140309204046.4215.log
2014-03-09 13:40:47.304843 N [4215/4215] CoreContext mainserver.cpp:6221
(reconnectTimeout) - Connecting to master server: 192.168.1.101:6543
2014-03-09 13:40:47.305615 N [4215/4215] CoreContext mainserver.cpp:6231
(reconnectTimeout) - Connected successfully
2014-03-09 13:41:17.328092 E [4215/4227] MythSocketThread(-1)
mythsocket.cpp:790 (ReadStringListReal) - MythSocket(13426a0:23):
ReadStringList: Error, timed out after 30000 ms.
2014-03-09 13:41:17.328344 W [4215/4227] MythSocketThread(-1)
mainserver.cpp:5933 (connectionClosed) - MainServer: Unknown socket closing
MythSocket(0x13426a0)
2014-03-09 13:41:17.328479 E [4215/4215] CoreContext mythsocket.cpp:353
(SendReceiveStringList) - MythSocket(13426a0:-1): No response.
2014-03-09 13:41:17.328503 E [4215/4215] CoreContext mainserver.cpp:6268
(reconnectTimeout) - MainServer: Failed to open master server socket,
timeout
2014-03-09 13:41:17.334251 I [4215/4278] ProcessRequest mainserver.cpp:1472
(HandleAnnounce) - adding: Mythbox as a slave backend server
2014-03-09 13:41:17.334614 E [4215/4276] MythSocketThread(24)
mythsocket.cpp:685 (WriteStringListReal) - MythSocket(1363fd0:-1):
WriteStringList: Error, called with unconnected socket.
2014-03-09 13:41:17.334659 E [4215/4275] MythSocketThread(23)
mythsocket.cpp:685 (WriteStringListReal) - MythSocket(1373970:-1):
WriteStringList: Error, called with unconnected socket.
2014-03-09 13:41:17.335416 E [4215/4277] MythSocketThread(26)
mythsocket.cpp:685 (WriteStringListReal) - MythSocket(1317ab0:-1):
WriteStringList: Error, called with unconnected socket.
2014-03-09 13:41:17.335842 E [4215/4279] MythSocketThread(28)
mythsocket.cpp:685 (WriteStringListReal) - MythSocket(1329d60:-1):
WriteStringList: Error, called with unconnected socket.
2014-03-09 13:41:17.335971 I [4215/4283] ProcessRequest mainserver.cpp:1420
(HandleAnnounce) - MainServer::ANN Monitor
2014-03-09 13:41:17.335978 I [4215/4283] ProcessRequest mainserver.cpp:1422
(HandleAnnounce) - adding: Mythbox as a client (events: 0)
2014-03-09 13:41:17.337781 I [4215/4283] ProcessRequest mainserver.cpp:1420
(HandleAnnounce) - MainServer::ANN Monitor
2014-03-09 13:41:17.337791 I [4215/4283] ProcessRequest mainserver.cpp:1422
(HandleAnnounce) - adding: Mythbox as a client (events: 1)
2014-03-09 13:41:17.615003 E [4215/4283] ProcessRequest storagegroup.cpp:85
(StaticInit) - SG() Error: Could not create builtinStorage Group directory
'/etc/mythtv/3rdParty' for '3rdParty'
2014-03-09 13:41:17.615021 E [4215/4283] ProcessRequest storagegroup.cpp:85
(StaticInit) - SG() Error: Could not create builtinStorage Group directory
'/etc/mythtv/channels' for 'ChannelIcons'
2014-03-09 13:41:17.615035 E [4215/4283] ProcessRequest storagegroup.cpp:85
(StaticInit) - SG() Error: Could not create builtinStorage Group directory
'/etc/mythtv/tmp/hls' for 'Streaming'
2014-03-09 13:41:17.615058 E [4215/4283] ProcessRequest storagegroup.cpp:85
(StaticInit) - SG() Error: Could not create builtinStorage Group directory
'/etc/mythtv/tmp' for 'Temp'
2014-03-09 13:41:17.615075 E [4215/4283] ProcessRequest storagegroup.cpp:85
(StaticInit) - SG() Error: Could not create builtinStorage Group directory
'/etc/mythtv/themes' for 'Themes'
2014-03-09 13:41:18.328863 N [4215/4215] CoreContext mainserver.cpp:6221
(reconnectTimeout) - Connecting to master server: 192.168.1.101:6543
2014-03-09 13:41:18.329494 N [4215/4215] CoreContext mainserver.cpp:6231
(reconnectTimeout) - Connected successfully
2014-03-09 13:41:48.362309 E [4215/4291] MythSocketThread(-1)
mythsocket.cpp:790 (ReadStringListReal) - MythSocket(1373970:35):
ReadStringList: Error, timed out after 30000 ms.
2014-03-09 13:41:48.363624 E [4215/4215] CoreContext mythsocket.cpp:353
(SendReceiveStringList) - MythSocket(1373970:-1): No response.
2014-03-09 13:41:48.364554 E [4215/4215] CoreContext mainserver.cpp:6268
(reconnectTimeout) - MainServer: Failed to open master server socket,
timeout
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140309/b6033a99/attachment.html>


More information about the mythtv-users mailing list