Vitali
04/23/2022, 12:02 AMVitali
04/23/2022, 12:02 AMjohn.spurlock
04/23/2022, 12:05 AMVitali
04/23/2022, 12:05 AMChaika
04/23/2022, 12:15 AMVitali
04/23/2022, 12:41 AMPromise<Response>
so that your billing time ends immediately when you issue the `.get`/`.put`.Chaika
04/23/2022, 12:47 AMChaika
04/23/2022, 4:55 AMNotImplemented: Header 'x-amz-acl' not implemented
I messed around with the config a bit and its ACL options, but wasn't able to get it working. It looks like rclone is just using aws's go sdk which is adding those headers.Chaika
04/23/2022, 4:56 AMkavinplays
04/23/2022, 8:33 AMkavinplays
04/23/2022, 8:33 AMDani Foldi
04/23/2022, 9:00 AMalbert
04/23/2022, 12:27 PMe5f0f929bb59b9d5e1bc9b35e9e3bf00
and I want to push logs to the root folder of a bucket called cloudflare-logs
.
If I just try to create a Logpush job with cloudflare-logs
as the bucket path and e5f0f929bb59b9d5e1bc9b35e9e3bf00.r2.cloudflarestorage.com
as the endpoint, the Cloudflare API will report that the endpoint returned a 500 Internal Server Error when it attempts to upload a test object. This is because the Logpush API is actually appending the first part of the bucket path to the endpoint. So it's actually trying to hit https://cloudflare-logs.e5f0f929bb59b9d5e1bc9b35e9e3bf00.r2.cloudflarestorage.com/
which is not yet supported by Cloudflare R2.
Instead, you will have to move your account tag so the bucket path becomes e5f0f929bb59b9d5e1bc9b35e9e3bf00/cloudflare-logs
and the endpoint becomes just r2.cloudflarestorage.com
. Then Logpush will correctly hit https://e5f0f929bb59b9d5e1bc9b35e9e3bf00.r2.cloudflarestorage.com/cloudflare-logs/
and you'll be able to create a Logpush job to Cloudflare R2 without errors.
Update: If you create a Logpush job using the API, you can force path-based addressing by including use-path-style=true
in the destination config.Walshy | Pages
04/23/2022, 12:58 PMWalshy | Pages
04/23/2022, 12:58 PMVitali
04/23/2022, 3:52 PMx-amz-acl
header that's being set?Vitali
04/23/2022, 3:55 PMVitali
04/23/2022, 3:56 PMVitali
04/23/2022, 3:57 PMprivate
Vitali
04/23/2022, 3:58 PMVitali
04/23/2022, 5:30 PMBINDING.get
for an empty object throws an internal error.john.spurlock
04/23/2022, 5:40 PMVitali
04/23/2022, 5:40 PMVitali
04/23/2022, 5:41 PMVitali
04/23/2022, 5:41 PMjohn.spurlock
04/23/2022, 5:43 PMjohn.spurlock
04/23/2022, 5:46 PM<bucket>.<account>.r2.cloudflarestorage.com/<key>
instead of the current path-style /<bucket>/<key>
Vitali
04/23/2022, 5:57 PM