# Error while copying to DIgital Occean spaces

**URL:** <https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233>\
**Category:** Help and Support\
**Created:** [August 4, 2022, 7:11am UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233 "2022-08-04T07:11:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqbal](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/bc8723/32.png) [@iqbal](https://forum.rclone.org/u/iqbal)\
**Post date:** [August 4, 2022, 7:11am UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233/1 "2022-08-04T07:11:39Z")

</div>

#### 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`)

```auto
rclone copy file.tar.gz dospace:

```

#### The rclone config contents with secrets removed.

```auto
[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

````auto
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.```
````

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [August 4, 2022, 12:08pm UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233/2 "2022-08-04T12:08:53Z")

</div>

This is what a working DO config looks like:

```auto
[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.

---

<div class="post-metadata">

**Author:** ![iqbal](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/bc8723/32.png) [@iqbal](https://forum.rclone.org/u/iqbal)\
**Post date:** [August 4, 2022, 12:49pm UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233/3 "2022-08-04T12:49:40Z")

</div>

> [@Animosity022](#):
>
> ```auto
> [do]
> type = s3
> provider = DigitalOcean
> env_auth = false
> access_key_id = XXX
> secret_access_key = XXX
> endpoint = sfo2.digitaloceanspaces.com
> 
> ```

Still showing the same error

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [August 4, 2022, 12:57pm UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233/4 "2022-08-04T12:57:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 4, 2022, 2:43pm UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233/5 "2022-08-04T14:43:25Z")

</div>

> [@iqbal](#):
>
> `endpoint = https://end.fra1.digitaloceanspaces.com`

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

```
rclone copy file.tar.gz dospace:end

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [September 3, 2022, 2:43pm UTC](https://forum.rclone.org/t/error-while-copying-to-digital-occean-spaces/32233/6 "2022-09-03T14:43:48Z")

</div>

Closed on September 3, 2022, 2:43pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
