403 Authentication Error
I have been trying to use Rclone to store all important encrypted data in cloudflare’s R2 object storage. But after following the configuration guide and trying the command rclone sync /path/to/file r2:backup. I kept getting 403 authentication errors. The interesting part is that not all the file gets these error; Some of the file uploaded successfully.
At first, I thought that my computer’s time might be out of sync, but after checking, I found that this was not the problem. After searching for potential issues. I came across the post that suggested that the problem could be related to the file name/path, timestamps, and other factor that is effecting the authentication process. So I decide to change my file name from Chinese to English and this fixed the problem bothering me for 2 days.
Other Problem Found
Rclone R2 URL
This is my first time using Rclone, and it is important to input the correct URL for the R2 database. I didn’t enter the base URL correctly, which caused and error when trying to run the command rclone lsf r2:. The problem is that I should not have enter the bucket’s URL (<id>.r2.cloudflarestorage.com/<bucket-name>) enter the base R2 URL (<id>.r2.cloudflarestorage.com) the one showed after creating tokens instead.
Unable to Delete Directory
I’m uncertain about the issue; despite configuring everything correctly and even using an admin level token. I was still couldn’t delete a empty folder using rclone sync rmdir r2:<path>. The only work around solution I found was to use rclone purge r2:<path> to delete the bucket/path.