Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@sgandon

Description

@sgandon

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:[email protected]: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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions