Skip to content

[Setup] mc: <ERROR> config is not a recognized command #1926

@Didayolo

Description

@Didayolo

Trying to run a local instance of Codabench gives me the following error:

codabench-createbuckets-1   | mc: <ERROR> `config` is not a recognized command. Get help using `--help` flag. 
codabench-createbuckets-1   | + echo ...waiting...
codabench-createbuckets-1   | + sleep 5
codabench-createbuckets-1   | ...waiting...
codabench-createbuckets-1   | + /usr/bin/mc config host add minio_docker http://minio:9000 testkey testsecret
codabench-createbuckets-1   | 
codabench-createbuckets-1   | mc: <ERROR> `config` is not a recognized command. Get help using `--help` flag. 
codabench-createbuckets-1   | + echo ...waiting...
codabench-createbuckets-1   | + sleep 5
codabench-createbuckets-1   | ...waiting...

This is triggered by the following line:

until /usr/bin/mc config host add minio_docker http://minio:$MINIO_PORT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY && break; do

Looks like the mc config syntax is outdated (since 2022). mc config host add should be replaced by mc alias set. I will try this and give an update.

Not sure why this problem is only happening now in my local instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSetupAnything related to the deployment of CodaLab

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions