Error while copying to DIgital Occean spaces

What is the problem you are having with rclone?

Showing Error when I tried to copy a file to Digital occean space

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-121-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.3
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Digital Occean Spaces

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy file.tar.gz dospace:

The rclone config contents with secrets removed.

[dospace]
type = s3
provider = DigitalOcean
access_key_id = ID
secret_access_key = secret
endpoint = https://end.fra1.digitaloceanspaces.com
acl = private

A log from the command with the -vv flag

2022/08/04 12:27:17 ERROR : Attempt 1/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2022/08/04 12:27:17 ERROR : Attempt 2/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2022/08/04 12:27:17 ERROR : Attempt 3/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2022/08/04 12:27:17 Failed to copy: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.```

This is what a working DO config looks like:

[do]
type = s3
provider = DigitalOcean
env_auth = false
access_key_id = XXX
secret_access_key = XXX
endpoint = sfo2.digitaloceanspaces.com

Try to match that and test.

Still showing the same error

Can you share the updated rclone.conf that you changed?

Take the bucket off here, and add it to your rclone command line

rclone copy file.tar.gz dospace:end