provision backup failing to gzip

Events happening in the community are now at Drupal community events on www.drupal.org.
bwood's picture

I wonder if anyone has seen this before and has some advice:

Using aegir 0.3 when I do a 'drush provision backup site.example.com', from either the Aegir web UI or from the webserver command line, the command fails with

An error occurred at function : drush_provision_drupal_provision_backup

A complete tar file is created in ~aegir/backups, but it is not gzipped. I believe gzip is dying. This just started happening on one of my servers. I think that there is plenty of memory available on the server (Ubuntu sever 8.04LTS):

  $ free -m
                                   total       used       free     shared    buffers     cached
  Mem:                          2048       1778        269          0        117       1284
  -/+ buffers/cache:                       377       1670
  Swap:                          4095          0       4095

Manually gzipping the backup is not a good workaround because 'provision migrate' (and other commands) call 'provision backup'. If backup is failing these other commands will fail too.

Thanks for any thoughts.

Comments

debug output?

whiteley's picture

Can you post the output from the backup command run from a terminal with the debug option? It will be a lot easier to see where the command is failing from that.

Here is an example of my output: http://gist.github.com/290071

Thanks man!

bwood's picture

I had a feeling that there was a way to get more info from provision. I ran drush with -d and found

tar -C /var/aegir/prod5/sites/site.example.com -p -c -f              [notice]
/var/aegir/backups/site.example.com-2010-01-29.tar . [1.504 sec]
Executing: tar -C /var/aegir/prod5/sites/site.example.com -p -c -f /var/aegir/backups/site.example.com-2010-01-29.tar .
  tar: ./files/tmp/tmp_dbnS8b: Cannot open: Permission denied
  tar: Error exit delayed from previous errors
Could not back up sites directory for drupal [2.708 sec]             [error]
An error occurred at function :                                      [error]
drush_provision_drupal_provision_backup [2.708 sec]

./files/tmp/tmp_dbnS8b was owned by www-data.www-data. That probably happened as a result of my version control scripts. I removed that tmp file and now backup works. Sweet. I'll be resting easier this weekend while a big mailing goes out.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: