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

    aeharding

    02/24/2023, 12:50 AM
    Anyone else experiencing issues uploading to r2? I just had some files upload but they're being shows as 0 bytes. 😢 What's weird is that the files were definitely transmitted from the server, looking at the logs and my server's grafana stats
  • a

    aeharding

    02/24/2023, 12:51 AM
    Earlier jobs today ran fine
  • a

    aeharding

    02/24/2023, 12:53 AM
  • d

    digitalpoint

    02/24/2023, 1:22 AM
    The only time I've seen something like that is when I sent them with the wrong mime-type... maybe something to look at since they are all application/xml? (could just be that's the default mime-type when it doesn't receive anything though)
  • k

    Kazin Whitewind

    02/24/2023, 1:24 AM
    I am really hoping that someone here can help me. I am kinda at my wits end really. I had issues backing up our server with our R2 bucket and as a result I had to redo a few things and luckily this was a test run to learn so no biggy. The issue is that I want to now close out that R2 bucket but it will not let me delete it until it is empty. Doing so in the GUI is a torture that should be reserved for school teachers who assign homework on summer break (horrible, right) but the CLI interface isn't much easier. I first tried the workers CLI: ~$ npm install -g @workers-r2/cli npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@workers-r2%2fcli - Not found npm ERR! 404 npm ERR! 404 '@workers-r2/cli@*' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! /home/vrgyl/.npm/_logs/2023-02-24T01_22_22_407Z-debug-0.log I then tried using Wrangler to complete the deletion and could not get it to recognise the bucket. I don't even care about the data in this test run, I just want to start over from scratch and Cloudflare makes it near impossible to do so while also making it literally impossible if you are on a basic plan to reach support. Can anyone help? OS: Linux Mint.
  • a

    aeharding

    02/24/2023, 1:25 AM
    Thanks for pointing that out @digitalpoint. That is very strange that they're all xml mime type. For reference, this is PeerTube uploading videos to connected object storage. Looking at the videos that worked fine ealier today, they're correct mime type. What's weird is that I've touched nothing on the server, so it should be exactly the same behavior... Hmmmmm
  • z

    Zeblote

    02/24/2023, 1:30 AM
    use rclone
  • k

    Kazin Whitewind

    02/24/2023, 1:32 AM
    assume I'm dumb ahah! I have been teaching myself python, server admin, flow, bot building and stuff over the last little while (hence the test run). I am tech savvy but I usually need a direction. Let me ask ChatGPT Plus what that is and see if I can figure it out on my own.
  • z

    Zeblote

    02/24/2023, 1:33 AM
    https://developers.cloudflare.com/r2/examples/rclone/ https://rclone.org/commands/rclone_purge/
  • k

    Kazin Whitewind

    02/24/2023, 1:34 AM
    HAAH! ChatGPT sent me to that too just now. Well, not the link: There is a service called rclone, do you know it? Yes, I am familiar with rclone. It is a command-line program that allows you to synchronize files and directories between different cloud storage providers and your local file system. rclone supports a wide range of cloud storage services, including Amazon S3, Google Drive, Dropbox, Microsoft OneDrive, and many others. It also supports various file transfer protocols, such as FTP, SFTP, and WebDAV, allowing you to synchronize files between different servers and devices. In addition to file synchronization, rclone also supports features such as encryption, compression, and chunking, which can help improve performance and security when transferring large files or syncing data across unreliable networks. Overall, rclone can be a powerful tool for managing and transferring data between different cloud storage services and local file systems, and it can be especially useful for automating backup and synchronization tasks.
  • k

    Kazin Whitewind

    02/24/2023, 1:35 AM
    I did see that, isn't that pinned here? It seemed out of scope based on the description. Thanks for directing me to it.
  • k

    Kazin Whitewind

    02/24/2023, 1:35 AM
    Never mind, Configure CORS is here.
  • k

    Kazin Whitewind

    02/24/2023, 1:39 AM
    I don't see where this purge option is and how it works. This seems to be just what Wrangler tried to do.
  • k

    Kazin Whitewind

    02/24/2023, 1:40 AM
    To clarify, I want to wipe out the entire bucket, I need nothing in it.
  • a

    aeharding

    02/24/2023, 1:50 AM
    This isn't working for me btw > Credential access key has length 53, should be 32 yeah, the key is longer than 32...
  • a

    aeharding

    02/24/2023, 1:53 AM
    HODL
  • a

    aeharding

    02/24/2023, 1:53 AM
    LOL, this comment screwed up the config 😂 oops
  • k

    Kazin Whitewind

    02/24/2023, 2:00 AM
    I got stuck there too but I don't have an Amazon S3 account so I am kinda confused, nevertheless I am not sure where the purge command comes into play. Did you get that far?
  • k

    Kazin Whitewind

    02/24/2023, 2:02 AM
    Found it I think: https://rclone.org/commands/rclone_purge/
  • m

    mattw

    02/24/2023, 2:35 AM
    Hi, hopefully this is the right channel - I am using multipart objects in R2 through a worker, but getting the following error consistently:
    completeMultipartUpload: We encountered an internal error. Please try again. (10001)
    The call is simply the following:
    const res = await upload.complete([part]);
    . Happy to provide any other information, not sure what else is relevant. Thanks in advance
  • n

    Noel

    02/24/2023, 10:53 AM
    Someone had a similar issue, try catching the error yourself and then you should see more details
  • p

    Plotzes

    02/24/2023, 1:21 PM
    can i make a bucket public through a domain on another cloudflare account?
  • p

    Plotzes

    02/24/2023, 1:21 PM
    do i have to use a CNAME record for that or won't it work?
  • z

    Zeblote

    02/24/2023, 1:24 PM
    cname wont work since that makes the request arrive with wrong host header
  • z

    Zeblote

    02/24/2023, 1:25 PM
    seems like another use case for snippets
  • p

    Plotzes

    02/24/2023, 1:25 PM
    yeah but maybe i can add the domain as a custom host in the R2 dashboard
  • z

    Zeblote

    02/24/2023, 1:26 PM
    it will only let you add domains from the current account
  • p

    Plotzes

    02/24/2023, 1:26 PM
  • p

    Plotzes

    02/24/2023, 1:26 PM
    ah yeah i see now
  • p

    Plotzes

    02/24/2023, 1:26 PM
    sad
1...910911912...1050Latest