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
Comment | File | Size | Author |
---|---|---|---|
backup_migrate-european_buckets.patch | 1.27 KB | pfournier | |
Comments
Comment #1
webatelier CreditAttribution: webatelier commentedworked for me
though i had to change my allready created bucket to us region (delete and make new bucket)
Comment #2
Gyver06 CreditAttribution: Gyver06 commentedI 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.
Comment #3
fgmYou 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.
Comment #4
ronan CreditAttribution: ronan commentedLooks good, thanks for the patch