411 Length required when auto uploading backups to Google Cloud Storage (S3)

unity200

Active Member
Nov 16, 2006
30
3
158
The server is logging the below error while trying to upload the backups to Google Cloud Storage. Some are succeeding, but most are failing:

[2022-01-02 01:43:21 +0000] info [cpbackup_transporter] Upload attempt #3 starting for /backup/2022-01-02/accounts/*******.tar.gz to /weekly/2022-01-02/accounts/******.tar.gz for destination: Google Cloud Storage
[2022-01-02 01:43:21 +0000] warn [cpbackup_transporter] Upload attempt failed: Failure in initiate_multipart_upload: Amazon::S3: Amazon responded with 411 Length Required
at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Amazon/S3/Bucket.pm line 99.
at /usr/local/cpanel/Cpanel/LoggerAdapter.pm line 27

I think length header is not being sent while doing a multipart upload for a larger site or something.
 

unity200

Active Member
Nov 16, 2006
30
3
158
That is apparently obvious. However the thing is that it is the cpanel backup script that is doing the backup, so it must provide the content length header when it encounters any backup that is more than one part. And apparently it is not doing that.

Im using the standard cpanel features, this is not a custom feature.