Report this

What is the reason for this report?

Problems with copying from one space to another

Posted on June 25, 2021
jmw

By jmw

We are using Alpakka S3 in our backend to copy a file from one Space to another Space. Unfortunately we get the following error:

[error] (run-main-0) akka.stream.alpakka.s3.S3Exception: (Status code: 400 Bad Request, Code: InvalidPart, RequestId: tx00000000000016cd6af-0060d482e1-15da959a-fra1b, Resource: )

We do not use any special settings. With other cloud providers and with a self-hosted Minio, copying from one bucket to another bucket works without problems. Is there anything special to consider with Digitalocean spaces ? Do I have to provide special headers ?

Thank you and best regards



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

It seems there might be an issue with multipart upload or part sizes when copying a file from one Space to another. DigitalOcean Spaces is compatible with the S3 protocol; however, there might be slight differences compared to other cloud providers or self-hosted solutions like Minio.

To resolve this issue, please make sure to check the following:

  1. Ensure that you’re using the correct API keys and endpoint for DigitalOcean Spaces.
  2. Verify that your multipart upload configuration is set properly, including part sizes and any specific headers required by the SDK you’re using.
  3. Make sure your permissions are properly set for both the source and destination Spaces.

For further help on using DigitalOcean Spaces, please refer to the official documentation.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.