Closed (fixed)
Project:
Hostmaster (Aegir)
Version:
6.x-2.x-dev
Component:
Install process
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2013 at 21:24 UTC
Updated:
5 Jul 2013 at 02:40 UTC
Ah that's nice!
MySQL server has gone away [warning]
query: SELECT t.nid FROM hosting_task t INNER JOIN node n ON t.vid = n.vid WHERE t.task_status = 0
GROUP BY t.rid ORDER BY n.changed, n.nid ASC LIMIT 20 database.mysqli.inc:134
Yep. For reference, here's what mysql commandline does:
mysql> select 1;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 7
Current database: aegirangelaanarc
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.13 sec)
Comments
Comment #1
steven jones commentedI've had to handle a similar situation in D7, but there, and exception was thrown, not sure if we'll get one from the D6 DB layer, but if we do, you just catch it and try to re-connect and re-try the query.
Comment #2
steven jones commentedYeah, so no exception, but if Drush is still around, we might just be able to get it to connect back up to the DB still.
Comment #3
ergonlogicOn the dev/queued branch, in commit 85e19e5, I've added some database error-handling:
I'm not sure 3 seconds is enough time for the database to come back. I'm considering making that configurable on the queued admin form.
Comment #4
ergonlogicWe now wait for the database to come back. fixed in e3a7f3b.