Skip to content
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

403 (SignatureDoesNotMatch) error when specifies host with 80 port #1059

Closed
Guoozz opened this issue Nov 14, 2019 · 6 comments
Closed

403 (SignatureDoesNotMatch) error when specifies host with 80 port #1059

Guoozz opened this issue Nov 14, 2019 · 6 comments

Comments

@Guoozz
Copy link

Guoozz commented Nov 14, 2019

version: v2.0.2

when I run the followed cmd(host with 80 port), error has ocuured.

s3cmd --debug --no-ssl --access_key=AKIAIOSFODNN7EXAMPLE --secret_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY --host=10.10.40.90:80 --host-bucket= ls s3://cluster-001 

s3.txt

s3cmd --debug --no-ssl --access_key=AKIAIOSFODNN7EXAMPLE --secret_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY --host=10.10.40.90 --host-bucket= ls s3://cluster-001 

but when I remove 80 port from host, everything is fine.
success.txt

@lanya16
Copy link

lanya16 commented Nov 28, 2019

I meet the same problem also

@qwer506
Copy link

qwer506 commented Jan 17, 2020

the same problem with you

@fviard
Copy link
Contributor

fviard commented Mar 19, 2020

Thanks for the report.
In fact, it is not a bug of s3cmd, but a issue with Minio, that I guess you were all using?
Let me redirect you instead to this new issue in Minio project about that problem.
(As it is there that it should be fixed or not)
minio/minio#9169

@fviard fviard closed this as completed Mar 19, 2020
@fviard
Copy link
Contributor

fviard commented Mar 20, 2020

Looks like that Minio is defective because of Go, and that aws s3 is also affected.

@fviard fviard reopened this Mar 20, 2020
@fviard fviard closed this as completed in 59c30c5 Mar 20, 2020
@qwer506
Copy link

qwer506 commented Mar 26, 2020 via email

@fviard
Copy link
Contributor

fviard commented Mar 26, 2020

@Fengjina Probably. Sadly, It looks like that a lot of servers do that.
So, finally, I pushed a fix to handle that case in s3cmd.
If you can't use/test, the last master branch of git, I will do a new release in the coming days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants