New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. #320

Closed
strikeout opened this Issue Jan 16, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@strikeout

strikeout commented Jan 16, 2016

Hi,

first of all: great Service!

I have a problem getting it up and running tho,
created cname, bucket, attached policy to user and all. when I'm trying to access the hosted .htpasswd I get the following stack-trace/error:

java.io.IOException: failed to fetch /.htpasswd from 'xxx' (key=xx): ["'.htpasswd': Status Code: 400, AWS Service: Amazon S3, AWS Request ID: 0942CB928BEB2F0B, 
AWS Error Code: InvalidRequest, AWS Error Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.", "'.htpasswd': Status Code: 400, 
AWS Service: Amazon S3, AWS Request ID: 8B560C64FE0E15D5, 
AWS Error Code: InvalidRequest, AWS Error Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.", "'.htpasswd+suffix': Status Code: 400, AWS Service: Amazon S3, 
AWS Request ID: F11B4CD5D01D219B, AWS Error Code: InvalidRequest, AWS Error Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.", "'.htpasswd+suffix': Status Code: 400, AWS Service: Amazon S3, AWS Request ID: 8F43631AAF9421D2, AWS Error Code: InvalidRequest, AWS Error Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256."]
    at com.s3auth.hosts.DefaultHost.fetch_aroundBody2(DefaultHost.java:228)
    at com.s3auth.hosts.DefaultHost$AjcClosure3.run(DefaultHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)

Help would be much appreciated :)

@yegor256

This comment has been minimized.

Show comment
Hide comment
@yegor256

yegor256 Jan 19, 2016

Owner

@strikeout where is your bucket, in which region?

Owner

yegor256 commented Jan 19, 2016

@strikeout where is your bucket, in which region?

@strikeout

This comment has been minimized.

Show comment
Hide comment
@strikeout

strikeout Jan 19, 2016

bucket is in frankfurt (eu-west) region

strikeout commented Jan 19, 2016

bucket is in frankfurt (eu-west) region

@yegor256

This comment has been minimized.

Show comment
Hide comment
@yegor256

yegor256 Jan 19, 2016

Owner

@strikeout we had something like this before: #214 does it help?

Owner

yegor256 commented Jan 19, 2016

@strikeout we had something like this before: #214 does it help?

@strikeout

This comment has been minimized.

Show comment
Hide comment
@strikeout

strikeout Jan 21, 2016

Setting the s3 endpoint for frankfurt region to s3-eu-central-1 fixed my problem. Thanks for the heads up!

strikeout commented Jan 21, 2016

Setting the s3 endpoint for frankfurt region to s3-eu-central-1 fixed my problem. Thanks for the heads up!

@strikeout strikeout closed this Jan 21, 2016

@markus-hinsche

This comment has been minimized.

Show comment
Hide comment
@markus-hinsche

markus-hinsche commented Aug 24, 2018

Changing the ~/.boto file like descriped here https://stackoverflow.com/questions/47929964/gsutil-cannot-copy-to-s3-due-to-authentication?rq=1 helped in our case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment