When I try to use s3cmd it exits with the following error:
ERROR: S3 error: 403 (SignatureDoesNotMatch)
I have tried regenerating my keys as other similar questions suggested.
I am using s3cmd version 2.0.2.
My s3cmd configuration has the following relevant options:
[default]
access_key = REDACTED
access_token = REDACTED
...
host_base = sfo2.digitaloceanspaces.com
host_bucket = %(bucket)s.sfo2.digitaloceanspaces.com
The s3cmd command I am trying to run is:
s3cmd put foo.txt s3://SPACE/ -c ./s3cmd-cfg
The space I am trying to access is in SFO2.
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.
Hey friend,
I do not consider myself an expert on s3cmd, and I realize that you already have a configuration file, but can you try setting up the configuration specifically by the steps we’ve outlined here?
https://www.digitalocean.com/docs/spaces/resources/s3cmd/
It may be some very small difference that is made by using those steps.
Jarland
same error:
I did follow the setting documentation: https://docs.digitalocean.com/products/spaces/reference/s3cmd/
This is resolved by adding to the s3cfg file:
signature_v2 = True