mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
Plain Authentication not enabled: Komodo stack fails after auto-updating to new ferretdb 2.0 version #229
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Elekam on GitHub (Feb 26, 2025).
Hello,
I noticed my komodo didnt work as expected after I updated all my stacks.
The reason is that komodos ferretdb updated to version 2.0, which handles authentication differently.
If you use the current recommended docker compose for the komodo postgres-backend, your ferretdb image does not have a version tag, and therefore defaults to the latest tag. This is of course not a good practice because it creates issues like this. I probably overlooked this when I setup komodo.
I gave my ferretdb the 1 tag like this:
image: ghcr.io/ferretdb/ferretdb:1and everything works again.While I was at it I also pinned the postgres backend to the current major version 17.
Two issues:
@ValgulNecron commented on GitHub (Feb 26, 2025):
hi thanks was wondering why everything broke
@Hanibachi commented on GitHub (Feb 26, 2025):
i have been trying to deploy it and its not working i wonder if this is related , cuz i keep seeing this in the logs :
@mbecker20 commented on GitHub (Feb 26, 2025):
Update the compose file to use ghcr.io/ferretdb/ferretdb:1 as the ferretdb image.
You have to use the :1 tag explicitly now. Komodo is still on ferretdb v1, as their recent v2 release has a lot of changes, isn't backward compatible (requires a migration process), and does not currently support ARM hardware.
I've already updated the official compose documentation to include this change
@Elekam commented on GitHub (Feb 27, 2025):
@mbecker20 Should I leave this issue open as a reminder to switch to ferretdbv2 in the future or close it for now? I assume you will wait until it has at least ARM support?
@AlekSi commented on GitHub (Feb 27, 2025):
Hey, folks. FerretDB maintainer there. Sorry that we broke things for you. Aside from https://github.com/FerretDB/FerretDB/issues/4726 (please 👍 it), what else blocks you from migrating to v2?
@mbecker20 commented on GitHub (Feb 28, 2025):
Hey @AlekSi, apart from ARM support, the database cannot be upgraded in place from 1.x to 2.x. The reasons for this are clear to me, but to the users who aren't watching this closely, they may not be. A clearly documented migration procedure from 1.x to 2.x would be greatly appreciated for these existing users, then I can refer the users on v1 to the procedure in a PSA released alongside the updated Komodo documentation for FerretDB v2.
@AlekSi commented on GitHub (Feb 28, 2025):
Thank you. You can track it in https://github.com/FerretDB/FerretDB/issues/4789.
@AlanMW commented on GitHub (Mar 28, 2025):
@Hanibachi No, I had the same thing, it is unrelated. Turns out docker compose for whatever reason cant't parse my compose.env file. You can verify if that is the issue by running
docker compose configand checking if the variables are blank for where your username and password are added. I fixed it by changing my env file name to just being .env and setting my compose file to use .env,env_file: .env@mbecker20 commented on GitHub (Aug 27, 2025):
Think we are all good here