<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div><div></div><div>Thanks Thomas</div><div><br></div><div>Setting Apache to start after mysql seems to have done the trick.</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from my GT-I9305T on the Telstra 4G network</div></div></div> <br><br><br>-------- Original message --------<br>From: Thomas Sibley <trs@bestpractical.com> <br>Date:  <br>To: rt-users@lists.bestpractical.com <br>Subject: Re: [rt-users] Migration Prep <br> <br><br>On 08/09/2013 06:36 AM, Paul O'Rorke wrote:<br>> When I look at syslog I see the following during startup:<br>> <br>> <br>> Aug  9 08:28:04 rt4 RT: DBI<br>> connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect<br>> to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)<br>> at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105.<br>> (/usr/local/share/perl/5.14.2/Carp.pm:102)<br>> Aug  9 08:28:05 rt4 RT: DBI<br>> connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect<br>> to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)<br>> at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105.<br>> (/usr/local/share/perl/5.14.2/Carp.pm:102)<br>> Aug  9 08:28:08 rt4 mysqld_safe: Starting mysqld daemon with databases<br>> from /var/lib/mysql<br><br>Just by looking at the log timestamps, your system is pretty clearly set<br>to start Apache (or whatever is serving RT) before mysql.  This isn't<br>RT's fault, but simply the wrong startup ordering for your system.  You<br>should change it so Apache/your webserver depends on mysql being started<br>first.  How to do so depends on your distribution.<br></body>