Adding local minio host to 'mc' configuration. Failed to add temporary MinIO server. MinIO is already stopped. How to fix it?
Asked Answered
S

2

7

I want to run min.io using bitnami/minio docker image. But I encountered "Adding local minio host to 'mc' configuration. Failed to add temporary MinIO server. MinIO is already stopped" in container logs.

Here is my docker compose file

version: '2'
services:
   minio:
    image: bitnami/minio:latest
   ports:
      - '9000:9000'
      - '9001:9001'
   environment:
      - MINIO_ROOT_USER='test'
      - MINIO_ROOT_PASSWORD='test'
      - MINIO_DEFAULT_BUCKETS=my-first-bucket
   volumes:
      - 'data:/bitnami/minio/data'

volumes:
  data:
    driver: local
Shontashoo answered 24/10, 2023 at 20:42 Comment(0)
S
20

I fixed this issue."MINIO_ROOT_PASSWORD" should be more than 8 characters.

Shontashoo answered 24/10, 2023 at 21:28 Comment(1)
This was it! Wanted to add - same with usernameOnomasiology
E
0

In my case MINIO_SERVER_URL was missing the scheme:

  • Bad: MINIO_SERVER_URL: 'localhost:24001'
  • Good: MINIO_SERVER_URL: 'http://localhost:24001'

If you are using the Bitnami images, you can set BITNAMI_DEBUG: 'true' env to get more output

Ereshkigal answered 10/5 at 8:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.