Using the latest S3 library (0.5.x), the module cannot upload backups to european buckets. I get the error:

User warning: S3::putObject(): [PermanentRedirect] The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. in S3::__triggerError() (line 222 di /home/user/public_html/sites/all/modules/backup_migrate/includes/S3.php).

This is similar to #1438898: Error with Amazon s3; the answer to this issue was to use the stable (0.4.0) release of the S3 library. I did not try that; however, I fixed the code to correctly address non-US buckets.

Here is my patch against 7.x-2.4

CommentFileSizeAuthor
backup_migrate-european_buckets.patch1.27 KBpfournier
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webatelier’s picture

worked for me
though i had to change my allready created bucket to us region (delete and make new bucket)

Gyver06’s picture

I have applied Patch #1 against 7.x-2.4 but unfortunately it seems not to be working with my Drupal site.
It works perfectly with version 0.4.0.

fgm’s picture

Version: 7.x-2.4 » 7.x-2.x-dev

You need to change the endpoint URL to match your area. For instance, my Dublin servers are available on s3-eu-west-1.amazonaws.com and using the hardcoded (!) endpoint in destinations.s3.inc causes a redirect error.

I've hacked it for now by hardcoding the endpoint matching my zone in the file at the 3 places where the default endpoint is hardcoded, but really should be configurable.

ronan’s picture

Status: Active » Fixed

Looks good, thanks for the patch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.