mysql error when provisionning a drupal
anarcat - April 18, 2008 - 22:31
| Project: | Provision |
| Version: | 5.x-0.1-alpha1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I get this error when trying to provision a drupal:
sh-3.1$ php "/var/hostmaster/webroot/profiles/hostmaster/modules/drush/drush.php" -r /var/hostmaster/webroot -l hostmaster.koumbit.net hosting actions -v
Action starts processing
Executed: /var/hostmaster/webroot/profiles/hostmaster/modules/drush/drush.php provision install test21.hostmaster.koumbit.net --root=/var/hostmaster/webroot --uri=hostmaster.koumbit.net -b --site_id=161 --site_db_host=localhost
The command could not be executed succesfully (return: Warning: Table 'mysql.system' doesn't exist query: SELECT * FROM system WHERE type = 'theme' in /var/hostmaster/DRUPAL-5-7/includes/database.mysql.inc on line 172
[serialized errors]
, data: , code: 6)I think that we should rely on the return value of the command rather than its output.

#1
What should be made clear here is that the big problem here is that the provisionning command doesn't return a properly serialized value. That mysql warning should never appear out there, it breaks the hosting's framework expectations (which is: serialized output).
I guess the IPC should be rationalized around here...
#2
i changed things around a bit.
now it returns 1 on success. meaning that it needs to complete successfully to trigger removing from the queue.
#3
I don't get this error anymore so I assume this was fixed somehow.
#4
Actually, no I still see this error.
Steps to reproduce:
* create test.hostmaster.koumbit.net, run the queue
* create test2.hostmaster.koumbit.net, run the queue
* create test3.hostmaster.koumbit.net, run the queue, this error shows up:
Action starts processingExecuted: /var/hostmaster/webroot/profiles/hostmaster/modules/drush/drush.php provision install test3.hostmaster.koumbit.net --root=/var/hostma
ster/webroot --uri=hostmaster.koumbit.net -b --site_id=124 --site_db_host=localhost
The command could not be executed succesfully (return: <em>
Warning: Table &#039;mysql.system&#039; doesn&#039;t exist
query: SELECT * FROM system WHERE type = &#039;theme&#039; in /var/hostmaster/DRUPAL-5-7/includes/database.mysql.inc on line 172
...
s:9:"timestamp";i:1211661148;}i:11;a:3:{s:4:"type";s:7:"message";s:7:"message";s:93:"Changed group ownership of <code><em>sites/test3.hostmaster.koumbit.net/files/tmp</em></code>";s:9:"timestamp";i:1211661148;}i:12;a:3:{s:4:"type";s:5:"error";s:7:"message";s:127:"Could not change permissions <code><em>sites/test3.hostmaster.koumbit.net/files/tmp</em></code> to <em>1528</em> (2750 != 2770)";s:9:"timestamp";i:1211661148;}i:13;a:3:{s:4:"type";s:7:"message";s:7:"message";s:77:"Created <code><em>sites/test3.hostmaster.koumbit.net/files/images</em></code>";s:9:"timestamp";i:1211661148;}i:14;a:3:{s:4:"type";s:7:"message";s:7:"message";s:90:"Changed ownership of <code><em>sites/test3.hostmaster.koumbit.net/files/images</em></code>";s:9:"timestamp";i:1211661148;}i:15;a:3:{s:4:"type";s:7:"message";s:7:"message";s:96:"Changed group ownership of <code><em>sites/test3.hostmaster.koumbit.net/files/images</em></code>";s:9:"timestamp";i:1211661148;}i:16;a:3:{s:4:"type";s:5:"error";s:7:"message";s:130:"Could not change permissions <code><em>sites/test3.hostmaster.koumbit.net/files/images</em></code> to <em>1528</em> (2750 != 2770)";s:9:"timestamp";i:1211661148;}i:17;a:3:{s:4:"type";s:7:"message";s:7:"message";s:79:"Created <code><em>sites/test3.hostmaster.koumbit.net/files/pictures</em></code>";s:9:"timestamp";i:1211661148;}i:18;a:3:{s:4:"type";s:7:"message";s:7:"message";s:92:"Changed ownership of <code><em>sites/test3.hostmaster.koumbit.net/files/pictures</em></code>";s:9:"timestamp";i:1211661148;}i:19;a:3:{s:4:"type";s:7:"message";s:7:"message";s:98:"Changed group ownership of <code><em>sites/test3.hostmaster.koumbit.net/files/pictures</em></code>";s:9:"timestamp";i:1211661148;}i:20;a:3:{s:4:"type";s:5:"error";s:7:"message";s:132:"Could not change permissions <code><em>sites/test3.hostmaster.koumbit.net/files/pictures</em></code> to <em>1528</em> (2750 != 2770)";s:9:"timestamp";i:1211661148;}i:21;a:3:{s:4:"type";s:7:"message";s:7:"message";s:71:"Created <code><em>sites/test3.hostmaster.koumbit.net/themes</em></code>";s:9:"timestamp";i:1211661148;}i:22;a:3:{s:4:"type";s:7:"message";s:7:"message";s:84:"Changed ownership of <code><em>sites/test3.hostmaster.koumbit.net/themes</em></code>";s:9:"timestamp";i:1211661148;}i:23;a:3:{s:4:"type";s:5:"error";s:7:"message";s:108:"Could not change group ownership <code><em>sites/test3.hostmaster.koumbit.net/themes</em></code> (500 != 33)";s:9:"timestamp";i:1211661148;}i:24;a:3:{s:4:"type";s:5:"error";s:7:"message";s:123:"Could not change permissions <code><em>sites/test3.hostmaster.koumbit.net/themes</em></code> to <em>1512</em> (750 != 2750)";s:9:"timestamp";i:1211661148;}i:25;a:3:{s:4:"type";s:7:"message";s:7:"message";s:72:"Created <code><em>sites/test3.hostmaster.koumbit.net/modules</em></code>";s:9:"timestamp";i:1211661148;}i:26;a:3:{s:4:"type";s:7:"message";s:7:"message";s:85:"Changed ownership of <code><em>sites/test3.hostmaster.koumbit.net/modules</em></code>";s:9:"timestamp";i:1211661148;}i:27;a:3:{s:4:"type";s:5:"error";s:7:"message";s:109:"Could not change group ownership <code><em>sites/test3.hostmaster.koumbit.net/modules</em></code> (500 != 33)";s:9:"timestamp";i:1211661148;}i:28;a:3:{s:4:"type";s:5:"error";s:7:"message";s:124:"Could not change permissions <code><em>sites/test3.hostmaster.koumbit.net/modules</em></code> to <em>1512</em> (750 != 2750)";s:9:"timestamp";i:1211661148;}i:29;a:3:{s:4:"type";s:7:"install";s:7:"message";s:24:"Installing Drupal schema";s:9:"timestamp";i:1211661148;}}s:8:"messages";a:1:{s:5:"error";a:1:{i:0;s:189:"user warning: Can&#039;t drop database &#039;site_124&#039;; database doesn&#039;t exist
query: DROP DATABASE site_124 in /var/hostmaster/DRUPAL-5-7/includes/database.mysql.inc on line 172.";}}}</em>, data: <em></em>, code: <em>1</em>)
Running the provision hook manually works.
#5
Note that the error doesn't happen the second time the queue is run. This is a very weird bug.
#6
This could be related to the work done on the status field:
http://drupal.org/node/259382#comment-855943
#7
I still have no idea how this works. Never had it happen to me.
Nor had it happen on hm2.bryght.com.
We're going to need additional testers on this issue.
#8
So if this doesn't happen anymore, the bug is fixed. I'll open another issue for the more general IPC problem.
#9
There: http://drupal.org/node/269914
#10
Automatically closed -- issue fixed for two weeks with no activity.