What is the problem you are having with rclone?
FYI - bug report for something I found in rclone which hopefully is an easy fix for someone who works with the source
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.0
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-52-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Self Hosted Minio
Bucket is has versions enabled.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone purge minio-dellxps:temp
The rclone config contents with secrets removed.
[minio-dellxps]
type = s3
provider = Minio
access_key_id = xxx
secret_access_key = xxx
endpoint = https://xxx:11000
A log from the command with the -vv
flag
2025/02/06 06:56:49 DEBUG : rclone: Version "v1.69.0" starting with parameters ["rclone" "purge" "-vv" "minio-dellxps:temp"]
2025/02/06 06:56:49 DEBUG : Creating backend with remote "minio-dellxps:temp"
2025/02/06 06:56:49 DEBUG : Using config file from "/home/kelly/.config/rclone/rclone.conf"
2025/02/06 06:56:49 DEBUG : S3 bucket temp: bucket is versioned: true
2025/02/06 06:56:49 DEBUG : Waiting for deletions to finish
2025/02/06 06:56:49 DEBUG : "config" version false
((lots of DEBUG / INFO lines reporting deletion of files which is fine - one sample below))
2025/02/06 06:56:49 DEBUG : "snapshots/e6ceb4eaca6f88dbf08630053e0eed1f95f2f56a9eb3f845429af2fada9059eb" version false
2025/02/06 06:56:49 DEBUG : snapshots/e6ceb4eaca6f88dbf08630053e0eed1f95f2f56a9eb3f845429af2fada9059eb: Deleting (id "1d20148f-b6a5-4707-bf80-a6431047aaf2")
2025/02/06 06:56:49 INFO : snapshots/e6ceb4eaca6f88dbf08630053e0eed1f95f2f56a9eb3f845429af2fada9059eb: Deleted
2025/02/06 06:56:49 ERROR : Attempt 1/3 failed with 1 errors and: operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: 182171F0A1DF2D53, HostID: 67527e79c91c70937b3171b10cc7d5a176b019e4ad1025dc47973197c6b072a9, api error BucketNotEmpty: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
2025/02/06 06:56:49 DEBUG : Waiting for deletions to finish
2025/02/06 06:56:49 ERROR : Attempt 2/3 failed with 1 errors and: operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: 182171F0A246AFFA, HostID: 67527e79c91c70937b3171b10cc7d5a176b019e4ad1025dc47973197c6b072a9, api error BucketNotEmpty: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
2025/02/06 06:56:49 DEBUG : Waiting for deletions to finish
2025/02/06 06:56:49 ERROR : Attempt 3/3 failed with 1 errors and: operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: 182171F0A29D2645, HostID: 67527e79c91c70937b3171b10cc7d5a176b019e4ad1025dc47973197c6b072a9, api error BucketNotEmpty: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
2025/02/06 06:56:49 DEBUG : 19 go routines active
2025/02/06 06:56:49 NOTICE: Failed to purge: operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: 182171F0A29D2645, HostID: 67527e79c91c70937b3171b10cc7d5a176b019e4ad1025dc47973197c6b072a9, api error BucketNotEmpty: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
After all the above - a simple rclone rmdir minio-dellxps:temp
works --- so not sure why above happens...