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

    Lloyd

    02/28/2023, 4:49 PM
    I can't see my r2 bucket list, and developer console shows 500 error at "https://dash.cloudflare.com/api/v4/accounts//r2/buckets?per_page=20" I tried re-login, delete cache but not worked, is there something to can I try?
  • i

    itsmatteomanf

    02/28/2023, 4:50 PM
    Look 2 messages up...
  • i

    itsmatteomanf

    02/28/2023, 4:50 PM
    There is an incident on R2.
  • l

    Lloyd

    02/28/2023, 4:51 PM
    Oh thank you. I didn't notice it. 😂
  • d

    digitalpoint

    02/28/2023, 4:54 PM
    A good opportunity to test the robustness of things people have built I guess. The good news is uploading objects via S3 API works as expected. Just uploaded a couple tests on a system that replaces WordPress media library with R2 and uploaded objects land in the bucket properly. However deleting objects via S3 API is not working... so I expect to start seeing a ton of support tickets about that from users.
  • d

    digitalpoint

    02/28/2023, 4:56 PM
    ...and just like that, things seem to be working again. 🙂
  • j

    JustinNoel

    02/28/2023, 5:05 PM
    Working for me again as well. Status report shows a fix has been implemented.
  • d

    dave

    02/28/2023, 5:07 PM
    aws4fetch is pretty easy
  • d

    dave

    02/28/2023, 5:07 PM
    https://developers.cloudflare.com/r2/data-migration/r2-migrator/ <- does this happen continuously? Gonna use it for a backup of an AWS S3 bucket if so.
  • d

    digitalpoint

    02/28/2023, 5:10 PM
    I could be wrong, but I think the R2 migrator is one direction and wouldn't pick up edits/deletion of objects that happen in S3. So might not be a great solution for backup if you ever delete or change objects. Also I believe it's fetched from S3 when the object is requested... so if you are using R2 as a backup only, the objects probably are never going to be requested from R2 in a normal setup.
  • d

    digitalpoint

    02/28/2023, 5:11 PM
    (never requested = never backed up)
  • k

    kian

    02/28/2023, 5:13 PM
    I don’t think this migrator is a on-request one, seems to just be a one-off sync from S3 to R2
  • d

    dave

    02/28/2023, 5:16 PM
    @digitalpoint thanks! Deletes don't matter, but yeah new files do need to be pushed over ideally.
  • d

    digitalpoint

    02/28/2023, 5:25 PM
    I don't use it myself, but I know a lot of my users that need to migrate a ton of data love rclone. It let's you do "diff" transfers similar to something like rsync (it only moves changes). Although I would imagine the overhead of just listing S3/R2 buckets to get the list of objects could be substantial if you have a ton of objects in the buckets. Not sure what your setup looks like dev-wise, but if you are already uploading to S3, it might make sense to also upload to R2 at that same point in your code.
  • t

    Till

    02/28/2023, 6:34 PM
    I actually got R2 sync working using Syncology Cloud Sync. AMA!
  • a

    aeharding

    02/28/2023, 7:34 PM
    Interesting, it doesn’t work for me. I can list buckets in the setup step and then it fails.
  • t

    Till

    02/28/2023, 7:35 PM
    I omitted
    https://
    from the server address and picked v4.
  • a

    aeharding

    02/28/2023, 7:35 PM
    Same
  • a

    aeharding

    02/28/2023, 7:37 PM
    This is my problem
  • a

    aeharding

    02/28/2023, 8:57 PM
    Wait.. I figured it out! It works if you use the bucket URL for the target s3 URL (e.g. blahblahrandomuidformybucket.r2.cloudflarestorage.com) However it does NOT work if you do .r2.cloudflarestorage.com (via https://developers.cloudflare.com/r2/data-access/s3-api/api/)
  • t

    Till

    02/28/2023, 8:58 PM
    Ah yes, nice! ❤️‍🔥
  • j

    johtso

    02/28/2023, 11:39 PM
    If I have some public assets in R2, is there any way to tell cloudflare how aggressively to cache it?
  • j

    johtso

    02/28/2023, 11:39 PM
    or is it all automatic?
  • e

    Erisa | Support Engineer

    02/28/2023, 11:42 PM
    you can control it the same way you'd control cache settings for any other asset on your zone, i.e. cache rules or page rules
  • j

    johtso

    02/28/2023, 11:48 PM
    so I have a cache everything rule for the subdomain
  • j

    johtso

    02/28/2023, 11:49 PM
    @Erisa | Support Engineer I guess I want "Edge Cache TTL" too?
  • j

    johtso

    02/28/2023, 11:49 PM
    any other rules that would be useful to get aggressive edge caching?
  • e

    Erisa | Support Engineer

    02/28/2023, 11:51 PM
    cache everything and edge cache ttl should be sufficient
  • e

    Erisa | Support Engineer

    02/28/2023, 11:51 PM
    you can tweak browser cache too if you think people might request it often in the same browser
  • j

    johtso

    03/01/2023, 12:03 AM
    @Erisa | Support Engineer hmm, I see
    "cf-cache-status" of "DYNAMIC"
    in the headers
1...919920921...1050Latest