Getting this error when uploading backups to Backblaze bucket with object lock:
upload failed! Failed to upload information file : Content-MD5 OR x-amz-checksum- HTTP header is required for Put Object requests with Object Lock parameters
Why would you use object lock?
My “guess” is Virtuamin backups aren’t configured to use with object lock.
Simple solution turn off Object Lock on the S3.
By the demo video I watched you probably have to create a new bucket with Object Lock as its done at creation.
Object lock protects backups from being arbitrarily deleted by someone who hacks into the system (Virtualmin, server, and perhaps the website as well). For example, ransomware. Without it, backups are in danger of being deleted exactly when they are needed.
This seemed to be working for a while, and now it’s not. I’m hoping it’s a simple bug fix.
This seems to be solved. When looking under Virtualmin > Backup and Restore > S3 Buckets I found a notice that said it is highly suggested to install the official Amazon S3 CLI tool. Clicking the “install” link in the notice installed the awscli:all package. After this, it seems to be working just fine again.
I think I remember now—we made a lot of changes since the last Virtualmin release. As far as I know, we should have it fixed already! Thanks for the heads up though!
I updated ok, still get same error. I presume this maybe a issue with the format of the bucket I originally made. I can’t even remember making the bucket with Virtualmin, maybe I did on the Cloudflare and AWS portal.
Yes, you should install the latest available version from the repos. You can first delete the older version 1.29.
I just checked the code, and even with Virtualmin 7.30.8, this function shouldn’t be called if Virtualmin can find the AWS-CLI command.
Try running:
which aws
…and then explicitly configure it on the “System Settings ⇾ Virtualmin Configuration: Backup and Restore” page using the “Full path to AWS command for S3 operations” option.
But you never set the option in the Virtualmin config as I suggested?
Try manually editing /etc/webmin/virtual-server/config and setting aws_cmd=/usr/bin/aws. And, make sure you don’t add duplicates; search for aws_cmd= first before replacing it.