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

mc mb Error:The request signature we calculated does not match the signature you provided. #1707

Closed
gwuhaolin opened this issue May 4, 2016 · 4 comments

Comments

@gwuhaolin
Copy link

other cmd like ls cp work well,only mb will course error:

mc: <ERROR> Unable to make bucket ‘localhost/test’. The request signature we calculated does not match the signature you provided.

minio server log:

➜  ~ minio server ./

AccessKey: UM9QNVQZQLNFIG1VZDFG  SecretKey: Sb3CqZfp/BXw/Hy9nUPZ8Prf4MXhr28CsatVCi60  Region:

Minio Object Storage:
    http://127.0.0.1:9000
    http://192.168.99.1:9000
    http://192.168.1.107:9000

Minio Browser:
    http://127.0.0.1:9000
    http://192.168.99.1:9000
    http://192.168.1.107:9000

To configure Minio Client:
    $ wget https://dl.minio.io/client/mc/release/darwin-amd64/mc
    $ chmod 755 mc
    $ ./mc config host add myminio http://localhost:9000 UM9QNVQZQLNFIG1VZDFG Sb3CqZfp/BXw/Hy9nUPZ8Prf4MXhr28CsatVCi60

mc client config:

{
    "version": "8",
    "hosts": {
        "localhost": {
            "url": "http://localhost:9000",
            "accessKey": "UM9QNVQZQLNFIG1VZDFG",
            "secretKey": "Sb3CqZfp/BXw/Hy9nUPZ8Prf4MXhr28CsatVCi60",
            "api": "S3v4"
        }
    }
}

mc output:
screen shot 2016-05-04 at 12 07 14

it's this a mc's bug or I do it in wrong way?

@gwuhaolin
Copy link
Author

mc mb localhost/test --debug

➜  ~ mc mb localhost/test --debug
mc: <DEBUG> PUT /test/ HTTP/1.1
Host: 127.0.0.1:9000
User-Agent: Minio (darwin; amd64) minio-go/1.0.1 mc/DEVELOPMENT.GOGET
Content-Length: 0
Authorization: AWS4-HMAC-SHA256 Credential=**REDACTED**/20160504/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=**REDACTED**
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20160504T041229Z
Accept-Encoding: gzip

mc: <DEBUG> HTTP/1.1 403 Forbidden
Transfer-Encoding: chunked
Accept-Ranges: bytes
Content-Type: text/xml; charset=utf-8
Date: Wed, 04 May 2016 04:12:29 GMT
Server: Minio/DEVELOPMENT.GOGET (darwin; amd64)
Vary: Origin
X-Amz-Request-Id: 511TEAHKYLTN62YR

12a
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided.</Message><Key></Key><BucketName></BucketName><Resource>/test/</Resource><RequestId>3L137</RequestId><HostId>3L137</HostId></Error>
0

mc: <DEBUG> Response Time:  1.659664ms

mc: <ERROR> Unable to make bucket ‘localhost/test’. The request signature we calculated does not match the signature you provided.
 (1) mb-main.go:123 main.mainMakeBucket(..) Tags: [localhost/test]
 (0) client-s3.go:306 main.(*s3Client).MakeBucket(..)
 Release-Tag:DEVELOPMENT.GOGET | Commit:DEVELOPMENT. | Host:Hals-MBP.local | OS:darwin | Arch:amd64 | Lang:go1.6.2 | Mem:1.1MB/4.1MB | Heap:1.1MB/2.7MB

@harshavardhana
Copy link
Member

@gwuhaolin this was a known bug we fixed on server recently, can you add "us-east-1" to your ~/.minio/config.json

AccessKey: UM9QNVQZQLNFIG1VZDFG SecretKey: Sb3CqZfp/BXw/Hy9nUPZ8Prf4MXhr28CsatVCi60 Region:

The issue is Region string is empty.

@gwuhaolin
Copy link
Author

the error resolve😊 thanks🙏

@lock
Copy link

lock bot commented Apr 26, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants