kian
05/22/2023, 3:21 PMkian
05/22/2023, 3:21 PMAutarch
05/22/2023, 3:24 PMAutarch
05/22/2023, 3:24 PMNova+
05/22/2023, 3:47 PMdenisep
05/22/2023, 4:25 PMLone Wolf
05/22/2023, 5:32 PMRyder Cragie
05/22/2023, 7:49 PMJames
05/22/2023, 7:52 PMtt2468
05/22/2023, 10:42 PMtt2468
05/22/2023, 10:42 PMrclone sync . r2-instance-debs:instance-debs/ works, and syncs to a subdirectory, but if I try rclone sync . r2-instance-debs: like the docs suggest, it errors out with
2023/05/22 15:37:56 ERROR : Attempt 2/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.tt2468
05/22/2023, 10:47 PMtt2468
05/22/2023, 10:47 PMKarew
05/22/2023, 11:13 PMremote: instead of remote:bucket it’s trying to create buckets for youKarew
05/22/2023, 11:14 PMSid | R2
05/23/2023, 6:02 AMrclone sync . r2-instance-debs:/ not work? (I haven't checked)hansw
05/23/2023, 6:53 AMrclone?
Am able to upload files to R2 via rclone sync /local/path/folder1 r2-bucket:folder1. (Although the UI seems weirdly showing additional folder1 file with 0B next to the real folder directory of folder1.
But rclone ls rclone tree...etc never work, the program just existed right away and shows 0 output. (No error prints).
While I am able to sync to remote, I have scenarios to sync it back from R2 to local. But no matter how I do the command rclone sync r2-bucket:folder1 /local/path/folder1 never works 😦
Curious if anyone have any insights on why those won't work, and what will be the workaround for R2?
Thanks 🙏Sid | R2
05/23/2023, 7:09 AM-vv to print verbose logs?tt2468
05/23/2023, 7:14 AMKarew
05/23/2023, 7:27 AMhansw
05/23/2023, 7:27 AM% rclone sync -vv r2-bucket:dumps ./tests/dumps
DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "sync" "-vv" "r2-bucket:dumps" "./tests/dumps"]
DEBUG : Creating backend with remote "r2-bucket:dumps"
DEBUG : Using config file from "/<user-name>/.config/rclone/rclone.conf"
DEBUG : Resolving service "s3" region "us-east-1"
DEBUG : Creating backend with remote "./tests/dumps"
DEBUG : fs cache: renaming cache item "./tests/dumps" to be canonical "<path>"
DEBUG : Local file system at <local-path>/dumps: Waiting for checks to finish
DEBUG : Local file system at <local-path>/dumps: Waiting for transfers to finish
DEBUG : Waiting for deletions to finish
INFO : There was nothing to transfer
INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 0.2s
But I can confirm there are files in R2 interface, and the local spaces dumps/ are emptied.tt2468
05/23/2023, 7:28 AMKarew
05/23/2023, 7:29 AMr2-instance-debs:instance-debs in that case. If you only write r2-instance-debs: you are addressing the root of your R2 account, the folders after the : are bucket names, so rclone is trying to create a bunch of buckets on your account.hansw
05/23/2023, 7:30 AMrclone tree -vv r2-bucket:
rclone: Version "v1.62.2" starting with parameters ["rclone" "tree" "-vv" "r2-bucket:"]
Creating backend with remote "r2-bucket:"
DEBUG : Using config file from "<config>"
DEBUG : Resolving service "s3" region "us-east-1"
DEBUG : Stat: filePath="/"
DEBUG : >Stat: fi=, err=<nil>
DEBUG : ReadDir: dir=/
DEBUG : >ReadDir: names=[], err=<nil>
/
0 directories, 0 files
Which is showing 0 directories and 0 files 😦tt2468
05/23/2023, 7:30 AMmy-bucket, the s3 url that the dashboard gives you has the /my-bucket postfix. The docs do not mention that you need to remove this postfix in order for rclone to work correctly without creating a sub folderKarew
05/23/2023, 7:32 AMhttps://s.karew.wtf/z1PCBhUWve.png▾
Karew
05/23/2023, 7:33 AMfrydim1
05/23/2023, 7:59 AMfrydim1
05/23/2023, 8:20 AMKarew
05/23/2023, 8:21 AMrclone cleanup on the bucket before purge