6

I try to upgrade minio version in my docker commpose(previously I used image: minio/minio:RELEASE.2020-06-22T03-12-50Z and it was working ) For now I have following docker-compose service:

version: '3.6'
services:
  minio:
    container_name: minio
    image: minio/minio:RELEASE.2022-11-17T23-20-09Z.fips
    volumes:
      - minio-data:/data
    ports:
      - 9000:9000
    environment:
      - MINIO_ROOT_USER=minio
      - MINIO_ROOT_PASSWORD=minio123
    command: server /data
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3

When I try to start(docker-compose up -d) I see the following error in the minio container log:

2022-11-25 11:40:56 ERROR Unable to use the drive /data: Drive /data: found backend type fs, expected xl or xl-single - to migrate to a supported backend visit https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html: Invalid arguments specified

I've googled the following article https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html

But I still don't understand what shoud I change in my compose file to make it working.

gstackoverflow
  • 36,709
  • 117
  • 359
  • 710

3 Answers3

2

It is not a solution but workaround how to use a fresh version:

  minio:
    container_name: minio
    image: bitnami/minio:2022.11.17-debian-11-r0
    volumes:
      - minio-data:/data
    ports:
      - 9000:9000
      - 9001:9001
    environment:
      - MINIO_ROOT_USER=minio
      - MINIO_ROOT_PASSWORD=minio123
      - MINIO_DEFAULT_BUCKETS=mybucket1,mybucket2
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
2

looks like you need migrate data/fs in your volum to be used in new version of minio

so you need to run steps from https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html

In your compose you need to add

volumes:
   minio-data:
      driver: local
Ryabchenko Alexander
  • 10,057
  • 7
  • 56
  • 88
1

I had the same error. In my mounting folder there was an old version of .minio.sys folder. Once i removed that folder minio started again. I'm only starting a minio docker container for testing which didn't start anymore when upgrading to the latest minio docker image.

Check out hte docs: minio docker container doc

Community
  • 1
  • 1
Herbert
  • 11
  • 3
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 05 '23 at 23:18