SOLVED [CPANEL-25926] Amazon S3 backups fail if the destination's folder name has spaces

Gareth Johnstone

Registered
Dec 7, 2017
4
0
1
Scottish Borders
cPanel Access Level
Root Administrator
I've had a backup to s3 setup for over a year now and its ran smooth as!

Recently I've started to notice 403 errors in the logs stating that the backup transport has failed!

When checking the destination in WHM i noticed that I'm getting the following error when re-validating the destination:

Code:
“Amazon S3” failed: Could not create path directory “/BACKUP_PATH_REMOVED_TO_HIDE_REAL_DESTINATION/”: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
Nothing has changed on the AWS side of things (ie: auth, folder structures etc...)

Any ideas?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello @Gareth Johnstone,

Can you open a support ticket so we can take a closer look at the system? You can post the ticket number here and we'll link this thread to it.

Thank you.
 

waheuler

Registered
Mar 2, 2019
1
0
0
California
cPanel Access Level
Root Administrator
I've had a backup to s3 setup for over a year now and its ran smooth as!

Recently I've started to notice 403 errors in the logs stating that the backup transport has failed!

When checking the destination in WHM i noticed that I'm getting the following error when re-validating the destination:

Code:
“Amazon S3” failed: Could not create path directory “/BACKUP_PATH_REMOVED_TO_HIDE_REAL_DESTINATION/”: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
Nothing has changed on the AWS side of things (ie: auth, folder structures etc...)

Any ideas?
Did you get a resolution to this? I am getting the same error as of a week or so ago.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

To update, internal case CPANEL-25926 was opened to report an issue where backups to Amazon S3 destinations fail if the destination's folder name includes a space. Here's an example of the error message:

Error: Validation for transport “test” failed: Could not create path directory “/folder with spaces/”: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
I'll monitor this case and update this thread with more information on it's status as it becomes available. In the meantime, the temporary workaround is to change the folder name to one that does not utilize a space character.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello Everyone,

This is fixed in cPanel & WHM version 78.0.17:

Fixed case CPANEL-25926: Update cpanel-perl-528-Net-Amazon-Signature-V4 to 0.19-2.

Thank you.
 
  • Like
Reactions: Gareth Johnstone