Backups to AWS S3 400 error on upload

2 posts / 0 new
Last post
#1 Mon, 10/07/2019 - 10:37
ITNinja70

Backups to AWS S3 400 error on upload

Hey guys, I've setup the scheduled backup to fire off and I'm getting this error on the S3 upload. Uploading archive to Amazon's S3 service .. .. upload failed! Invalid HTTP response : HTTP/1.1 400 Bad Request

I fired up a new EC2 running Ubuntu 18.04, installed vmin via the install.sh script and I'm trying to set up backups to S3. I've added the Perl module XML::Simple to get rid of the error when setting up Cloud Storage Providers, I can see my buckets. I setup awscli incase it was because it couldn't find the aws command, didn't help.

One big tell was I ran the backup command via vmin cli and it works there! virtualmin backup-domain --dest s3://user:passkey@bucket/path --all-domains --all-features --onebyone --strftime --newformat It even created the folder in the bucket if it didn't exist.

I've tried against different buckets, in different regions (Us-east-1, US-east-2) and both still work via the command line.

some version info os: Ubuntu Linux 18.04.2 theme version: 19.39 virtualmin version: 6.07.gpl webmin version: 1.930

Did I miss a step when setting up vmin to make s3 work via web? Does the web use the same command/code as vmin CLI? Are there more detailed logs somewhere that would tell me specifically why s3 upload failed? 400 can mean a bunch of things unfortunately :(

Let me know if you need more info, Thanks guys!

Mon, 10/07/2019 - 14:15
ITNinja70

So doing a few more hours into this, I think its boiling down to the base ubuntu image I used. It was suuuuuuuper stripped down to the bare minimum and im sure its just missing some components that virtualmin needs but isn't telling me what. I ended up just grabbing another AMI in AWS that installing vmin there where it works.