I have a headless master backend and a combined slave backend + frontend, both MythBuntu 12.04 (however my problem pre-dates that upgrade).<br><div class="gmail_quote"><br>The mythbackend process won't start on boot, but will start if I start it manually.<br>
<br>Here's the log output from boot attempt:<br><br>C thread_unknown mythcommandlineparser.cpp:2534 (ConfigureLogging) mythbackend version: fixes/0.25 [v0.25-59-gae7ac79] <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a><br>
N thread_unknown mythcommandlineparser.cpp:2536 (ConfigureLogging) Enabled verbose msgs: general<br>N thread_unknown logging.cpp:1176 (logStart) Setting Log Level to LOG_INFO<br>I thread_unknown logging.cpp:229 (FileLogger) Added logging to the console<br>
I thread_unknown logging.cpp:369 (SyslogLogger) Added syslogging to facility local7<br>I thread_unknown logging.cpp:425 (DatabaseLogger) Added database logging to table logging<br>N thread_unknown logging.cpp:1215 (logStart) Setting up SIGHUP handler<br>
N thread_unknown mythdirs.cpp:51 (InitializeMythDirs) Using runtime prefix = /usr<br>N thread_unknown mythdirs.cpp:64 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv<br>I CoreContext mythcorecontext.cpp:227 (Init) Assumed character encoding: en_GB.UTF-8<br>
I CoreContext mythcontext.cpp:481 (LoadDatabaseSettings) Using localhost value of downstairs<br>I CoreContext mythcontext.cpp:608 (TestDBconnection) Testing network connectivity to '192.168.1.1'<br>I SystemSignalManager system-unix.cpp:485 (run) Starting process signal handler<br>
I SystemManager system-unix.cpp:263 (run) Starting process manager<br>I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)<br>I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)<br>N CoreContext mythcorecontext.cpp:1270 (InitLocale) Setting QT default locale to EN_GB<br>
I CoreContext mythcorecontext.cpp:1303 (SaveLocaleDefaults) Current locale EN_GB<br>N CoreContext mythlocale.cpp:121 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml<br>I CoreContext schemawizard.cpp:117 (Compare) Current MythTV Schema Version (DBSchemaVer): 1299<br>
I CoreContext mythtranslation.cpp:66 (load) Loading en_gb translation for module mythfrontend<br>I CoreContext mythcorecontext.cpp:1178 (CheckProtoVersion) Using protocol version 72<br>C CoreContext mythmiscutil.cpp:593 (checkTimeZone) Current time on the master backend differs from time on this system.<br>
N CoreContext mythmiscutil.cpp:495 (print_timezone_info) Detected time zone settings:#012 Master: Zone ID: 'Europe/London', UTC Offset: '3600', Current Time: '2012-04-29T14:38:33'#012 Local: Zone ID: 'Europe/London', UTC Offset: '3600', Current Time: '2012-04-29T13:37:06'<br>
E CoreContext main_helpers.cpp:472 (connect_to_master) The time and/or time zone settings on this system do not match those in use on the master backend. Please ensure all frontend and backend systems are configured to use the same time zone and have the current time properly set.<br>
E CoreContext main_helpers.cpp:474 (connect_to_master) Unable to run with invalid time settings. Exiting.<br><br>...vs the following when started manually after boot:<br><br>C thread_unknown mythcommandlineparser.cpp:2534 (ConfigureLogging) mythbackend version: fixes/0.25 [v0.25-59-gae7ac79] <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a><br>
N thread_unknown mythcommandlineparser.cpp:2536 (ConfigureLogging) Enabled verbose msgs: general<br>N thread_unknown logging.cpp:1176 (logStart) Setting Log Level to LOG_INFO<br>I thread_unknown logging.cpp:229 (FileLogger) Added logging to the console<br>
I thread_unknown logging.cpp:369 (SyslogLogger) Added syslogging to facility local7<br>I thread_unknown logging.cpp:425 (DatabaseLogger) Added database logging to table logging<br>N thread_unknown logging.cpp:1215 (logStart) Setting up SIGHUP handler<br>
N thread_unknown mythdirs.cpp:51 (InitializeMythDirs) Using runtime prefix = /usr<br>N thread_unknown mythdirs.cpp:64 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv<br>I CoreContext mythcorecontext.cpp:227 (Init) Assumed character encoding: en_GB.UTF-8<br>
I CoreContext mythcontext.cpp:481 (LoadDatabaseSettings) Using localhost value of downstairs<br>I CoreContext mythcontext.cpp:608 (TestDBconnection) Testing network connectivity to '192.168.1.1'<br>I SystemSignalManager system-unix.cpp:485 (run) Starting process signal handler<br>
I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)<br>I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)<br>I SystemManager system-unix.cpp:263 (run) Starting process manager<br>N CoreContext mythcorecontext.cpp:1270 (InitLocale) Setting QT default locale to EN_GB<br>
I CoreContext mythcorecontext.cpp:1303 (SaveLocaleDefaults) Current locale EN_GB<br>N CoreContext mythlocale.cpp:121 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml<br>I CoreContext schemawizard.cpp:117 (Compare) Current MythTV Schema Version (DBSchemaVer): 1299<br>
I CoreContext mythtranslation.cpp:66 (load) Loading en_gb translation for module mythfrontend<br>I CoreContext mythcorecontext.cpp:1178 (CheckProtoVersion) Using protocol version 72<br>I CoreContext main_helpers.cpp:483 (connect_to_master) Backend is running in Europe/London time zone.<br>
N CoreContext main_helpers.cpp:560 (run_backend) MythBackend: Running as a slave backend.<br>-- snip --<br>N CoreContext mainserver.cpp:6108 (reconnectTimeout) Connected successfully<br><br>Obviously, the problem here is that the two backend services disagree on timezones, however `date` says they're both set correctly, and I've done a `dpkg-reconfigure tzdata` to make sure, the slave backend actually uses the master backend server as an ntp server too.<br>
<br>Is there another timezone setting somewhere that I've missed that's causing this mismatch? Since the log output is identical up to the timezone line, I'm wondering if there's some kind of race condition on boot, where the slave's timezone hasn't yet been set?<br>
<br>Thanks in advance,<br><br>Ben<br>
</div><br>