S3 Backups create "authorization failed" objects?

cPanel & WHM Version
v84.0.21

MPoppen

Registered
Mar 6, 2020
4
1
1
Bellevue, Saskatchewan, Canada
cPanel Access Level
Root Administrator
Hi guys. I've been trying to setup a proper S3 backup from WHM. We used to use tha Backblaze integration, which worked great, but we had to move away from that because they don't have datacenters in Canada. We have some clients that need their data stored in Canada. Anyway, the steps I've taken to create the backup:

  • Create a bucket with no spaces in the name
  • Entered the bucket name, access key ID and secret access key in the WHM configuration
  • Enabled server access logging in S3 so I can see what's happening
The log files (all 1124 of them :confused:) state the following or a variant of it:

Code:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>7A[letters and numbers]4D9</RequestId>
<HostId>
R7Hwm[more letters and numbers]Qs/s0wVOw=
</HostId>
</Error>
I've tried to make the bucket public, which didn't seem right to begin with, but it didn't make a difference.

What do I need to do?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
That error message, is from the S3 instance?

Did you create the backup user in the instance and assign it permissions to access? This should have been done when creating the key and ID (essentially follow these instructions for setup of the bucket How to Backup files to Amazon S3 – Amazon Web Services)
 

MPoppen

Registered
Mar 6, 2020
4
1
1
Bellevue, Saskatchewan, Canada
cPanel Access Level
Root Administrator
That error message, is from the S3 instance?

Did you create the backup user in the instance and assign it permissions to access? This should have been done when creating the key and ID (essentially follow these instructions for setup of the bucket How to Backup files to Amazon S3 – Amazon Web Services)
Those error messages are in the S3 bucket, yes.
I'm using the bucket owner's keys. Do I need to create an additional user?
 

MPoppen

Registered
Mar 6, 2020
4
1
1
Bellevue, Saskatchewan, Canada
cPanel Access Level
Root Administrator
You shouldn't, but you could try and create a user with the permissions necessary. I apologize for not getting back to you sooner, I was out sick most of this week.
No worries. I figured it out with the help from our web host! Seems like you _can't_ use the root user. I've set it up through an IAM user and it worked right away.
 
  • Like
Reactions: cPanelLauren