Calling dokku mongo:backup DB BUCKET results in the following error:
gof3r error: 301: "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."
How to reproduce
AWS S3 Bucket Setup
Let's consider the following credentials:
Attribute
Value
username
username
access_key_id
aki
secret_access_key
sak
region
eu-central-1
endpoint
s3.eu-central-1.amazonaws.com
signature version
s3v4
bucket
example_bucket
database
database
For my S3 buckets I set up a AWS IAM user and configured the according Bucket Policy:
Results in the error described above. As the aws console command works as expected the error has to be somewhere in the mongo:backup script. Do I use this script correctly or is there somewhere an error in my setup?
Issue
Calling
dokku mongo:backup DB BUCKET
results in the following error:How to reproduce
AWS S3 Bucket Setup
Let's consider the following credentials:
For my S3 buckets I set up a AWS IAM user and configured the according Bucket Policy:
AWS Console
Let's consider that the
example_profile
profile contains the information listed above. Then calling the followingcp
command works as expected:Dokku mongo
Results in the error described above. As the aws console command works as expected the error has to be somewhere in the
mongo:backup
script. Do I use this script correctly or is there somewhere an error in my setup?Thank you for your help