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

Update minio version #155

Open
shaunco opened this issue Aug 31, 2023 · 3 comments
Open

Update minio version #155

shaunco opened this issue Aug 31, 2023 · 3 comments

Comments

@shaunco
Copy link

shaunco commented Aug 31, 2023

As of the day this issue was created, the latest minio version is RELEASE.2023-08-29T23-07-35Z, but the Dockerfile in this repo is still making use of RELEASE.2022-05-04T07-45-27Z - which is now ~15 months old. Minio has addressed at least 7 CVEs over this time.

@klutchell
Copy link
Contributor

Thanks for raising this! It should be addressed by #160

@shaunco
Copy link
Author

shaunco commented Sep 4, 2023

@klutchell - looks like no good deed goes unpunished...

Sep 04 04:30:57 5d14786b7ad1 systemd[1]: open-balena-s3.service: Main process exited, code=exited, status=1/FAILURE
Sep 04 04:30:57 5d14786b7ad1 systemd[1]: open-balena-s3.service: Failed with result 'exit-code'.
Sep 04 04:30:57 5d14786b7ad1 systemd[1]: open-balena-s3.service: Scheduled restart job, restart counter is at 9441.
Sep 04 04:30:57 5d14786b7ad1 systemd[1]: Stopped open-balena-s3.service - open-balena-s3.
Sep 04 04:30:58 5d14786b7ad1 systemd[1]: Starting open-balena-s3.service - open-balena-s3...
Sep 04 04:30:58 5d14786b7ad1 systemd[1]: Started open-balena-s3.service - open-balena-s3.
Sep 04 04:30:58 5d14786b7ad1 minio[969828]: ERROR Unable to use the drive /export: Drive /export: 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

Looks like https://github.com/balena-io/open-balena/blob/ea07d43c5c7e98bb8b11c808b12428a46019c8d5/compose/services.yml#L8C8-L8C8 needs to be updated to:

volumes:
...
   s3:
      driver: local

And the fun from https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html

For my local test instance, the following fixed it - but I'm not sure how to generically detect that this needs to happen:

systemctl stop open-balena-s3
rm -rf /export/.minio.sys
systemctl start open-balena-s3

When minio was restarted it seems to have rebuilt its .minio.sys folder in the way it wanted.

@klutchell
Copy link
Contributor

Thanks for checking! I'll revert to a release before that change until we can add some tests to this repo, and some migration steps to open-balena.

@klutchell klutchell reopened this Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants