What is the problem you are having with rclone?
We use sync to backup objects from ceph to minio but I noticed that a bucket with over 1 million objects in ceph only had 40 thousand in minio. On investigation I found that one folder wasn't being synced.
The direcotry uploads/app contains several sub directories 2013 to 2021 but the output of this command shows nothing (this is the folder that's not being synced)
rclone lsd backup-rgw-wilxite:shine-oms/uploads/app/
Strangely though if we use this command it returns all of the files in the sub directories
rclone ls backup-rgw-wilxite:shine-oms/uploads/app/
To test further I copied a file to this directory
rclone copy hello.txt backup-rgw-wilxite:shine-oms/uploads/app/
and then tried to list it but got empty output
rclone ls backup-rgw-wilxite:shine-oms/uploads/app/hello.txt
I was able to list it with s3cmd using the same credentials
[root@rook-ceph-tools-6759cb4bd6-68hzp /]# s3cmd ls --no-ssl --host=${AWS_HOST} --host-bucket= s3://shine-oms/uploads/app/hello.txt
2021-12-27 21:28 12 s3://shine-oms/uploads/app/hello.txt
Although I also can't list the directory in s3cmd
[root@rook-ceph-tools-6759cb4bd6-68hzp /]# s3cmd ls --no-ssl --host=${AWS_HOST} --host-bucket= s3://shine-oms/uploads/app/
2019-11-01 16:57 0 s3://shine-oms/uploads/app/
I realise that this means the problem is with the ceph bucket and not rclone but I have run out of ideas to try and fix. I tried this in ceph to fix indexes but although it completed successfully it didn't resolve the problem
radosgw-admin bucket check --check-objects --fix --bucket=shine-oms --debug_rgw=10
Before I ran this command in ceph I did a sync with each of the sub directories to minio to make sure we wouldn't loose and data and this worked fine
rclone sync --use-mmap --checkers 128 --transfers 24 -P backup-rgw-tango:shine-oms/uploads/app/2013 minio-tango:shine-oms/uploads/app/2013
What is your rclone version (output from rclone version
)
rclone v1.55.1-DEV
- os/type: linux
- os/arch: amd64
- go/version: go1.14.12
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Ceph & Minio
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync --use-mmap --checkers 128 --transfers 24 -P backup-rgw-tango:shine-oms minio-tango:shine-oms
The rclone config contents with secrets removed.
[backup-rgw-tango]
type = s3
provider = Ceph
env_auth = false
access_key_id = <removed>
secret_access_key = <removed>
endpoint = <removed>
acl = private
[minio-tango]
type = s3
provider = Minio
env_auth = false
access_key_id = <removed>
secret_access_key = <removed>
endpoint = <removed>
acl = private
A log from the command with the -vv
flag
This is the list command as opposed to the sync one as I don't want to run sync again until this issue is fixed
rclone lsd backup-rgw-wilxite:shine-oms/uploads/app/ -vv
2021/12/29 18:34:58 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/12/29 18:34:58 DEBUG : rclone: Version "v1.55.1-DEV" starting with parameters ["rclone" "lsd" "backup-rgw-wilxite:shine-oms/uploads/app/" "-vv"]
2021/12/29 18:34:58 DEBUG : Creating backend with remote "backup-rgw-wilxite:shine-oms/uploads/app/"
2021/12/29 18:34:58 DEBUG : fs cache: renaming cache item "backup-rgw-wilxite:shine-oms/uploads/app/" to be canonical "backup-rgw-wilxite:shine-oms/uploads/app"
2021/12/29 18:34:59 DEBUG : 3 go routines active