Internal error when uploading
I tried to upload a file to an R2 bucket using AWS CLI in GitHub Actions (GitHub-owned runner), but it fails with internal error. The same command runs fine in my local environment with the same access key. Details. The command is like this:
I tried the command with and without
--acl private
, and it did not make a difference.
The endpoint is https://69d3833f3f0b74c7bc6b5061d5a06491.r2.cloudflarestorage.com, and the bucket name is sunniesnow-community
.GitHub
try fixing s3 upload · sunniesnow/judgement-test@6bb7dba
A chart used to test judgement settings. Contribute to sunniesnow/judgement-test development by creating an account on GitHub.
3 Replies
Okay so I solved this issue. The problem is that R2 does not support the CRC64NVME checksum algorithm, which seems to be the default one used by AWS CLI (version 2.25.6) on GitHub Actions runners. With this checksum algorithm, R2 just returns 500 and says there is internal server error in the response, which is not helpful. To work around this issue on my end, I added the option
--checksum-algorithm CRC32
in the command, and it worked. I think this should be considered a bug of R2. I don't know who to ping, but please look into this issue and fix it.Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
I didn't know there is documentation about aws CLI. Thank you for pointing out.