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 admin info' freezes and fail on the gateway #3665

Closed
sgandon opened this issue Mar 25, 2021 · 4 comments · Fixed by minio/minio#11903
Closed

'mc admin info' freezes and fail on the gateway #3665

sgandon opened this issue Mar 25, 2021 · 4 comments · Fixed by minio/minio#11903

Comments

@sgandon
Copy link

sgandon commented Mar 25, 2021

Expected behavior

mc admin info <alias>

should return the server info in gateway mode

Actual behavior

this command fails with latest version of mc and minio

Minio in server mode                =>  mc admin info   ok
Minio in gateway mode (no etcd)     =>  mc admin info   Fails (after 1:30mn)
Minio in gateway mode (with etcd)   =>  mc admin info   Fails (after 1:30mn) 

here is the error reported after freezing for 1mn30
mc: <ERROR> Unable to get service status. Failed to parse server response: invalid character '<' looking for beginning of value

Steps to reproduce the behavior

1/ first launch minio in gateway mode (S3 for instance)

  AWS_ACCESS_KEY_ID=${MINIO_AWS_ACCESS_KEY_ID} \
  AWS_SECRET_ACCESS_KEY=${MINIO_AWS_SECRET_ACCESS_KEY} \
  MINIO_ACCESS_KEY=admin \
  MINIO_SECRET_KEY=this-is-not-so-secret \
  MINIO_BROWSER=on \
  ./minio gateway s3

2/ then run the mc command

MC_HOST_test=http://admin:this-is-not-so-secret@127.0.0.1:9000 ./mc --config-dir . admin info test
mc: <ERROR> Unable to get service status. Failed to parse server response: invalid character '<' looking for beginning of value.

mc --version

./mc --version
mc version RELEASE.2021-03-23T05-46-11Z
./minio --version
minio version RELEASE.2021-03-17T02-33-02Z

@harshavardhana
Copy link
Member

@sgandon please paste the --debug output

@sgandon
Copy link
Author

sgandon commented Mar 25, 2021

here is the debug message that keeps repeatings over

mc: <DEBUG> GET /minio/admin/v3/info HTTP/1.1
Host: 127.0.0.1:9000
User-Agent: MinIO (darwin; amd64) madmin-go/0.0.1 mc/RELEASE.2021-03-23T05-46-11Z
Authorization: AWS4-HMAC-SHA256 Credential=admin/20210325//s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=**REDACTED**
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20210325T154236Z
Accept-Encoding: gzip

mc: <DEBUG> HTTP/1.1 500 Internal Server Error
Content-Length: 283
Accept-Ranges: bytes
Content-Security-Policy: block-all-mixed-content
Content-Type: application/xml
Date: Thu, 25 Mar 2021 15:42:36 GMT
Server: MinIO
Vary: Origin
X-Amz-Request-Id: 166FA038C18161C0
X-Xss-Protection: 1; mode=block

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InternalError</Code><Message>We encountered an internal error, please try again.</Message><Resource>/minio/admin/v3/info</Resource><RequestId>166FA038C18161C0</RequestId><HostId>16b5741b-5191-4033-9f6f-42049d1a2d07</HostId></Error>mc: <DEBUG> Response Time:  2.863186ms

@harshavardhana
Copy link
Member

what is the server verson here? @sgandon

@sgandon
Copy link
Author

sgandon commented Mar 25, 2021

as mentionned above this is

./minio --version
minio version RELEASE.2021-03-17T02-33-02Z

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

Successfully merging a pull request may close this issue.

2 participants