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

    Vitali

    04/29/2022, 2:14 PM
    @john.spurlock I assume S3 just echoes back your
    ContinuationToken
    in
    NextContinuationToken
    right? Or does it never echo back a
    NextContinuationToken
    ?
  • e

    Erisa | Support Engineer

    04/29/2022, 2:28 PM
    What info would be required to work out why rclone isn't working btw? It works fine with every other S3 provider so I doubt they're doing anything too badly wrong and I'd love to get it working
  • v

    Vitali

    04/29/2022, 2:28 PM
    I'm assuming you're asking about sigv4?
  • e

    Erisa | Support Engineer

    04/29/2022, 2:29 PM
    I'm not 100% sure, It can list and get files but upload throws 401
  • v

    Vitali

    04/29/2022, 2:29 PM
    That's very surprising
  • e

    Erisa | Support Engineer

    04/29/2022, 2:29 PM
    albert showed some request data earlier, i can grab more if needed
  • e

    Erisa | Support Engineer

    04/29/2022, 2:29 PM
    https://discord.com/channels/595317990191398933/940663374377783388/969249333121777714
  • e

    Erisa | Support Engineer

    04/29/2022, 2:30 PM
    gonna run mitmproxy myself now and dump the full thing
  • v

    Vitali

    04/29/2022, 2:31 PM
    Is rclone uploading in streaming sigv4 mode?
  • j

    john.spurlock

    04/29/2022, 2:33 PM
    don't you mean TB and GB in footnote 1? Also "its" not "it's" in footnote 2 : )
  • v

    Vitali

    04/29/2022, 2:34 PM
    I've never used this excuse in my life before since I grew up in Canada since the age of 5, but I think I'm at the point in my life where I'll just start saying "English isn't my first language".
  • j

    john.spurlock

    04/29/2022, 2:34 PM
    no when max-keys is 0, they don't return a NextContinuationToken at all
  • j

    john.spurlock

    04/29/2022, 2:35 PM
    there's nothing really to continue : )
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 2:35 PM
    Hey, fellow Canadian! 👋 🇨🇦
  • e

    Erisa | Support Engineer

    04/29/2022, 2:35 PM
    Copy code
    2022-04-29 15:32:35 PUT https://ece1d09b06af2ced51407c97505ea0cc.r2.cloudflarestorage.com/erisa/file.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=keygoeshere%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220429T143235Z&X-Amz-Expires=900&X-Amz-SignedHeaders=content-md5%3Bcontent-type%3Bhost%3Bx-amz-acl%3Bx-amz-meta-mtime&X-Amz-Signature=signaturehere HTTP/2.0
    
    x-amz-meta-mtime:  1651242675.438993951
    x-amz-acl:         private
    content-md5:       sFQDISxmvcjMxZf+32zV/g==
    content-type:      text/plain; charset=utf-8
    user-agent:        rclone/v1.53.3-DEV
    content-length:    10
    accept-encoding:   gzip
    after formatting that i found a better way it shows the query params so the same query params are prettified as
    Copy code
    X-Amz-Algorithm:     AWS4-HMAC-SHA256
    X-Amz-Credential:    keygoeshere/20220429/us-east-1/s3/aws4_request
    X-Amz-Date:          20220429T143235Z
    X-Amz-Expires:       900
    X-Amz-SignedHeaders: content-md5;content-type;host;x-amz-acl;x-amz-meta-mtime
    X-Amz-Signature:     signaturegoeshere
    response is 401
    Copy code
    xml
    <Error>
      <Code>Unauthorized</Code>
      <Message>Unauthorized</Message>
    </Error>
  • v

    Vitali

    04/29/2022, 2:38 PM
    I mean kind of there is - it's just a cursor in between keys
  • e

    Erisa | Support Engineer

    04/29/2022, 2:39 PM
    and when it lists files it succeeds doing
    Copy code
    2022-04-29 15:37:56 GET https://ece1d09b06af2ced51407c97505ea0cc.r2.cloudflarestorage.com/erisa?delimiter=&max-keys=1
    
    user-agent:            rclone/v1.53.3-DEV
    x-amz-date:            20220429T143756Z
    x-amz-content-sha256:  redacted_dontknowifitssensitive
    authorization:         AWS4-HMAC-SHA256
                           Credential=credentialgoeshere/20220429/us-east-1/s3/aws4_request,
                           SignedHeaders=host;x-amz-content-sha256;x-amz-date,
                           Signature=signaturegoeshere
    accept-encoding:       gzip
  • v

    Vitali

    04/29/2022, 2:40 PM
    1 sec
  • j

    john.spurlock

    04/29/2022, 2:40 PM
    or before the first key? sending max-keys = 0 is admittedly an edge case but it makes sense to me that there would be no subsequent "page"
  • v

    Vitali

    04/29/2022, 2:40 PM
    Can you retry that PUT? I want to see what our logs say
  • v

    Vitali

    04/29/2022, 2:41 PM
    There would be because your next request could send a different limit
  • e

    Erisa | Support Engineer

    04/29/2022, 2:41 PM
    retried, it tries 3 times so theres multiple sorry
  • v

    Vitali

    04/29/2022, 2:41 PM
    Grrr... I'm not seeing it in the logs
  • v

    Vitali

    04/29/2022, 2:42 PM
    Can you do it more?
  • e

    Erisa | Support Engineer

    04/29/2022, 2:42 PM
    done 3 more
  • v

    Vitali

    04/29/2022, 2:42 PM
    There's a lot of traffic
  • e

    Erisa | Support Engineer

    04/29/2022, 2:42 PM
    you cant filter by my account ID?
  • e

    Erisa | Support Engineer

    04/29/2022, 2:42 PM
    i told rclone to retry 100 times and left it running, enjoy
  • e

    Erisa | Support Engineer

    04/29/2022, 2:43 PM
    100 requests done
  • v

    Vitali

    04/29/2022, 2:44 PM
    missing x-amz-content-sha256
1...737475...1050Latest