https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • s

    Skye

    04/25/2023, 6:19 PM
    Is there any way to check the location of an existing bucket?
  • s

    Sid | R2

    04/25/2023, 6:20 PM
    The S3 API implements GetBucketLocation!
  • s

    Skye

    04/25/2023, 6:20 PM
    Does rclone support that? I'm not very familiar with this all 😅
  • e

    Erisa | Support Engineer

    04/25/2023, 6:21 PM
    Easiest I found was AWS cli
    Copy code
    aws s3api get-bucket-location --endpoint https://<accountid>.r2.cloudflarestorage.com --bucket my-bucket
  • s

    Skye

    04/25/2023, 6:21 PM
    Ah, I've not got that installed at the moment, will have a look 👍
  • e

    Erisa | Support Engineer

    04/25/2023, 6:21 PM
    should be able to install it, run
    aws configure
    to set the keys and then use the above command
  • e

    Erisa | Support Engineer

    04/25/2023, 6:21 PM
    dont think more is needed
  • l

    LordSilver

    04/25/2023, 6:22 PM
    I see. Sadly there doesn't seem to be a way in CDKTF to create an R2 bucket at the moment. I guess that feature will come when you'll eventually move it to the Cloudflare provider.
  • c

    chientrm

    04/26/2023, 3:12 AM
    How do I use this feature? 🤔 What are the valid
    prefixes
    ?
  • j

    johnpyp

    04/26/2023, 3:32 AM
    Hi, I'm curious if there's any easy way to basically "purge cache on update" for a bucket with a public custom domain? Since cloudflare owns R2 and the cache, could R2 just tell the cache that it's now different and immediately purge any edge TTL with little to no staleness?
  • u

    Unsmart | Tech debt

    04/26/2023, 3:35 AM
    Just means it splits files by a slash and considers in a “folder” for UI purposes
  • c

    chientrm

    04/26/2023, 3:35 AM
    tysm
  • m

    meowzilla

    04/26/2023, 4:08 AM
    you could do this via a worker or even externally to purge specific URL(s) https://developers.cloudflare.com/api/operations/zone-purge
  • j

    johnpyp

    04/26/2023, 4:57 AM
    I was thinking that... basically just loop through the bucket and purge on an update or something
  • j

    johnpyp

    04/26/2023, 4:58 AM
    Does seem like the kind of feature that would be really nice to just have as an option on the bucket though rather than needing an extra companion that you have to always remember to call 🤔
  • d

    denchi

    04/26/2023, 4:51 PM
    I'm getting this error for some requests in my Worker that handles a simple file upload:
    put: We encountered an internal error. Please try again. (10001)
    . Apparently the R2
    put
    fails for some reason. It's only happening for ~0.02% of requests. Any idea what could be causing that?
    h
    p
    • 3
    • 11
  • d

    denchi

    04/26/2023, 4:52 PM
    Could clients disconnecting during the upload cause this at all?
  • d

    denchi

    04/26/2023, 4:58 PM
    Or is there any way to get more details about the internal error?
  • p

    Pharynx

    04/26/2023, 7:10 PM
    are there issues with the ordering guarantees for requests on r2? the documentation says read-after-write but I think I am observing issues with this
  • p

    Pharynx

    04/26/2023, 7:12 PM
    okay, never mind, it could be me, there are some potential issues I need to address on my side before ruling myself out completely
  • p

    Plotzes

    04/26/2023, 11:57 PM
    I have the same issue but I mainly use R2 in cron triggers, so i dont have a client that can disconnect. Idk why but it has had that small error rate for a long time
  • d

    denchi

    04/27/2023, 3:00 AM
    Any chance someone from the CF team could look into that? It's only been 15 out of ~100k requests so far for me so not a huge issue. Happy to open a ticket if needed.
  • g

    galileoflatneo

    04/27/2023, 5:37 AM
    Issue: Error when connecting Cloudberry Explorer to Cloudflare R2 : connection failed check your credentials. Solution: From the service Point link, remove https:// from the beginning ( no need for the https:// protocol )
  • g

    galileoflatneo

    04/27/2023, 5:45 AM
    Hi, Do you know if I delete a bucket from my R2 account , later can I create a new bucket with the same name as my deleted bucket ? Thanks
  • v

    vinni

    04/27/2023, 6:06 AM
    you can but you won't be able to specify a different location than the original (deleted) bucket (this is assuming you create and delete the bucket using the same account) https://developers.cloudflare.com/r2/buckets/data-location/#current-limitations
  • f

    f/s

    04/27/2023, 2:26 PM
    Hi, I'm new to R2, is it possible to store podcast or audio guides on it? I would like to deliver audio to an existing app. Thank you!
  • z

    zegevlier

    04/27/2023, 3:32 PM
    That depends on how the app you're looking at retrieves them. You can make an R2 bucket accessible through HTTPs by enabling public access, but it would depend on the app if it could retrieve it via that.
  • z

    zegevlier

    04/27/2023, 3:33 PM
    There is no limitation in R2 in regards to what you're allowed to store in there, as long as it's legal and doesn't violate copyright or something
  • d

    dkfdkdodkms

    04/27/2023, 6:14 PM
    how to create a local bucket?
  • a

    arashb31

    04/27/2023, 10:46 PM
    Hi, i'm new to R2. Does R2 support the "sip" style of pulling in files from an S3 bucket as requests come in? Or do you need to migrate over the entire bucket first?
1...100110021003...1050Latest