virtualmin - AWS S3 bucket backup does not work with Frankfurt (eu-central-1) region

2 posts / 0 new
Last post
#1 Sun, 03/26/2017 - 08:16
antonioh

virtualmin - AWS S3 bucket backup does not work with Frankfurt (eu-central-1) region

Hi,

According to random information I've found across the search engines the newest Virtualmin GPL should be able to use S3 buckets for backups and it relies on 'awscli' to do so reliably.

Now, I've installed and configured awscli package and I'm able to 'aws s3 ls' from the command-line but virtualmin list-s3-files won't work:

virtualmin list-s3-files --access-key xxxxxxxxxxxxxxxxx--secret-key xxxxxxxxxxxxxxxx --bucket xxxxxxxxxxxxxxxx

A client error (InvalidRequest) occurred when calling the ListObjects operation: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. ERROR:

Here are my details:

Debian GNU/Linux 8

awscli 1.4.2-1 all Universal Command Line Environment for AWS python3-botocore 0.62.0-1 all Low-level, data-driven core of boto 3 (Python 3)

Default signature to use s4 in awscli config by using:

aws configure set default.s3.signature_version s3v4

Is there any way to force virtualmin to use a specific signature version? Am I missing something here?

Thanks, Antonio Huete

Sun, 03/26/2017 - 10:55
antonioh

Hi again,

I've installed python 3.5.2 on Debian Jessie following the instructions specified in : https://gist.github.com/jaydenkieran/75b2bbc32b5b70c4fdfb161ecdb6daa2 After that, I've installed awscli with pip (pip install awscli) and then restarted webmin (/etc/init.d/webmin restart)

aws --version

aws-cli/1.11.66 Python/3.5.2 Linux/3.16.0-4-amd64 botocore/1.5.29

My test backup finished correctly this time:

Uploading archive to Amazon's S3 service ..

.. done

.. completed in 19 seconds

1 servers backed up successfully, 0 had errors.

The command above (virtualmin list-s3-files ...) now works too.

So using Jessie's packages for python + awscli won't work for some reason. My guess is that there is something is wrong in the way the .pl scripts call 'aws' command or I'm missing something here.

Regards, Antonio Huete

Topic locked