Posted by guaka-PLEASE-REMOVE on September 19, 2009 at 11:39pm
I've set up aegir this week and I like it. However, I can't backup any sites, and consequently migrations aren't possible either. Here's what the backup task is giving back:
Task starts processing Running: php /var/aegir/drush/drush.php --root='/var/aegir/platforms/drupal-6.14/' 'provision' 'backup' 'example.com' --backend Drush bootstrap phase : _drush_bootstrap_drush() Drush bootstrap phase : _drush_bootstrap_drupal_root() Loading drushrc "/var/aegir/platforms/drupal-6.14/drushrc.php" into "drupal" scope. Initialized Drupal 6.14 root directory at /var/aegir/platforms/drupal-6.14/ Found command: provision backup Initializing drush commandfile: provision_apache Undefined index: base_url Initializing drush commandfile: provision_drupal Initializing drush commandfile: provision_mysql Undefined index: db_url Including /var/aegir/.drush/provision/platform/backup.provision.inc Including /var/aegir/.drush/provision/db_server/backup.provision.inc Drush bootstrap phase : _drush_bootstrap_drupal_site() Initialized Drupal site example.com at sites/example.com Loading drushrc "/var/aegir/platforms/drupal-6.14/sites/example.com/drushrc.php" into "site" scope. Generating mysql dump for example.com. mysqldump --defaults-file=/dev/fd/3 -rsites/example.com/database.sql examplecom Could not back up sites directory for drupal An error occurred at function : drush_provision_mysql_pre_provision_backup Could not delete mysql dump from sites directory Changes for drush_provision_mysql_pre_provision_backup module have been rolled back. Command dispatch complete Removing task from hosting queue An error occurred at function : drush_hosting_hosting_task Changes for drush_hosting_hosting_task module have been rolled back. Command dispatch complete
I don't really know if it's a bug or configuration issue, nor do I know how to find out.
It would make sense to be able to get a little more feedback about what goes wrong with mysqldump.
Comments
Hi, Your operating system
Hi,
Your operating system might not be understanding the file descriptor method we use for mysqldump (which is done this way to avoid leaking passwords in the process table or in the task output)... which will be unfortunate if this is the case (I am only guessing at this stage)
Please submit a support request in the Issue queue and provide information regarding your operating system and any other useful information per the bug reporting guidelines.
In particular it might be interesting to know what shell your aegir user has (bash, or sh, or something else).
Thanks!
fixed!
It's a virtual machine running Debian Lenny.
When going through the bug reporting guidelines I first noticed that aegir's shell was actually /bin/false, might have missed something in the howto, or it might not have been there. First I thought it was a safety measure, and it didn't seem to have any effect on the rest of aegir.
So I delved a bit further... I built the VM image myself and I hadn't installed udev yet. So far I had only experienced a little issue with /dev/pts, which was quickly fixed by mkdir /dev/pts; mount /dev/pts. Might be worth mentioning somewhere that it's good to have udev around.
So it's fixed now. Thanks!
I'd be "guaka" if groups.drupal.org wasn't broken.
(When I try to log in it doesn't work and says to contact the site administrator, which I did, but the answer wasn't very useful.)
The shell of the aegir user
The shell of the aegir user is /bin/false because we create the user with the --system flag. As far as I've seen, since this change, it has no adverse effect on regular Aegir activity (and like you I run Debian Lenny virtual machines (xen) )
I'll see about adding anything regarding udev to the INSTALL.txt / install.sh : but I have to say, in my opinion you were likely to run into all sorts of other issues with it absent (I imagine you were consoled in and not ssh'd in! or maybe your dev/pts fixed that up) whether or not you were going to be running Aegir :) it's a fairly crucial component these days.
Anyway, glad to hear you figured it out and that your backups are working!