SOLVED [CPANEL-18897] Potential Amazon s3 Bug

Gareth Johnstone

Registered
Dec 7, 2017
4
0
1
Scottish Borders
cPanel Access Level
Root Administrator
Hi - not sure if this has been mentioned before (i googled it and found nothing)

So - I was setting up an Amazon S3 bucket to store my backups on and this was the naming convention i chose

Code:
backup.mydomain.com
and I would always receive this in the cPanel error log:

Code:
Validation for transport “Amazon” failed: Could not upload test file: PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. [backup_destination_validate] version [1].
I had to name my bucket

Code:
backup-mydomain-com
for it to work.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston

Clixer

Active Member
Feb 24, 2018
41
2
8
Australia
cPanel Access Level
Root Administrator
Hi @cPanelLauren,

Is this backup issue with S3 fixed yet?

I am getting the same error: "Error: Validation for transport “S3 Backup” failed: Could not upload test file: PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."

My S3 bucket is named as backup.mydomain.com.

Thanks for your help.
 

Clixer

Active Member
Feb 24, 2018
41
2
8
Australia
cPanel Access Level
Root Administrator
Hello @cPanelLauren,

I have changed the bucket name to backup-my-domain-com. When trying to validate, now I am getting a new error. "Error: Validation for transport “S3 Backup” failed: Could not upload test file: NoSuchBucket: The specified bucket does not exist."

The bucket certainly exists and I can upload files to it using the S3 console. Are you able to tell me where to from here?

Thanks for your help.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @Clixer

The issue should be fixed in v72 and the version you're using. Can you confirm the bucket name resolves as you're entering it? If so can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @Clixer

Thanks for updating the ticket with that. It would appear that the issue was able to resolve by fixing an issue with the hostname syntax in the backup configuration, once the hostname for the backup server matched the bucket name properly it was able to be resolved.

Thanks!
 

Clixer

Active Member
Feb 24, 2018
41
2
8
Australia
cPanel Access Level
Root Administrator
Hi @cPanelLauren,

Yes, you are correct. But the bucket name with periods still does not work e.g. "bucketname.mydomain.com".

What would work is "bucketname-mydomain-com". Hopefully this can be fixed in the future.

Thanks for your help.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @Clixer

I want to note that I initially made a mistake. The fix for this is not published to v72 of cPanel it should be present in v74 and in other versions when v74 is moved to RELEASE. I apologize for misinforming you but I will update here when v74 is moved to RELEASE

Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @Clixer

v74 is now in RELEASE and you shouldn't be experiencing this issue anymore if you've updated. The backports for this haven't been completed so this is the only version the fix is available in.


Thanks!
 

genesys

Registered
Dec 21, 2022
1
0
1
italy
cPanel Access Level
Root Administrator
Hi, i've the same problem, my bucket not working for backup, i'm in the 106.0.13, i've put in .bashrc AWS_DEFAULT_REGION="eu-west-1" (where is my bucked), bucket is working fine with same access id and key from another machine someone could help me?