<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 14, 2015 at 9:06 AM Ian Evans <<a href="mailto:dheianevans@gmail.com">dheianevans@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>From the "it was working fine two minutes ago" department:<br><br></div>I just VNCing into the desktop of my combined FE/BE (.27.5) and while there clicked on the upgrades arrow. The upgrade included a kernel upgrade.<br><br></div>Done that hundreds of times, no problems. Because of the kernel upgrade, the system had to restart. Upon starting I was confronted by the Country, Language page, a check the database setting page and a can't find the database notice.<br><br></div>All the info is the same.<br><br></div><div>ps aux | grep mysql shows the database running<br><br></div><div>The mysql log shows it has started:<br><br>151214 11:53:58 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306<br>151214 11:53:58 [Note]   - '127.0.0.1' resolves to '127.0.0.1';<br>151214 11:53:58 [Note] Server socket created on IP: '127.0.0.1'.<br>151214 11:53:59 [Note] Event Scheduler: Loaded 0 events<br>151214 11:53:59 [Note] /usr/sbin/mysqld: ready for connections.<br>Version: '5.5.46-0ubuntu0.12.04.2'  socket: '/var/run/mysqld/mysqld.sock'  port:<br> 3306  (Ubuntu)<br><br></div><div>The mythbackend log shows:<br></div><div><br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: C thread_unknown mythcommandlineparser.cpp:2595 (ConfigureLogging) mythbackend version: fixes/0.27 [v0.27.5-69-g31b271b] <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a><br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: C thread_unknown mythcommandlineparser.cpp:2597 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: N thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) Enabled verbose msgs:  general<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: N thread_unknown logging.cpp:907 (logStart) Setting Log Level to LOG_INFO<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrupt handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Terminated handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Segmentation fault handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Aborted handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Bus error handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Floating point exception handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Illegal instruction handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Real-time signal 0 handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I CoreContext mythcorecontext.cpp:257 (Init) Assumed character encoding: en_CA.UTF-8<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: N CoreContext mythcontext.cpp:504 (LoadDatabaseSettings) Empty LocalHostName.<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I CoreContext mythcontext.cpp:512 (LoadDatabaseSettings) Using localhost value of buster<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I CoreContext mythcontext.cpp:693 (TestDBconnection) Testing network connectivity to '192.168.1.145'<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I Logger logging.cpp:308 (run) Added logging to the console<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I SystemIOHandlerW mythsystemunix.cpp:91 (run) Starting IO manager (write)<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I SystemIOHandlerR mythsystemunix.cpp:91 (run) Starting IO manager (read)<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I SystemSignalManager mythsystemunix.cpp:510 (run) Starting process signal handler<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I SystemManager mythsystemunix.cpp:275 (run) Starting process manager<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I LogForward loggingserver.cpp:1373 (forwardMessage) New Client:  (#1)<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: I LogForward loggingserver.cpp:295 (SyslogLogger) Added syslogging<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: E CoreContext mythdbcon.cpp:216 (OpenDatabase) Unable to connect to database!<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: E CoreContext mythdbcon.cpp:217 (OpenDatabase) Driver error was [1/2003]:#012QMYSQL: Unable to connect#012Database error was:#012Can't connect to MySQL server on '192.168.1.145' (111)<br>Dec 14 11:54:00 buster mythbackend: mythbackend[2750]: C CoreContext main.cpp:129 (main) Failed to init MythContext<br><br></div><div>So mysql's running but were not getting a connection. Never seen this happen in a reboot before. What should I be checking next?<br></div><div><br></div></div>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a></blockquote><div><br></div><div><br></div><div>What distro are you running? </div><div><br></div><div>The issue is that your mssql server is only listening on 127.0.0.1 and your backend is trying to connect to it on 192.168.1.145. You need to either tell your backend to connect to 127.0.0.1 (assuming both are on the same box) or tell mysql to listen on the other interface (or all interfaces).</div></div></div><div dir="ltr">-- <br></div><div dir="ltr">Thomas Mashos</div>