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

When loading mongo-express via docker I get - Unsupported OP_QUERY OR not authorized on config to execute command #1164

Open
inspiraller opened this issue Mar 25, 2023 · 1 comment
Labels
old_docker_version Will be fixed in a newer version of Docker image

Comments

@inspiraller
Copy link

Example docker run

docker run --network starwars_mongo-network -e ME_CONFIG_MONGODB_SERVER=mongo1 -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin -e ME_CONFIG_MONGODB_ADMINPASSWORD=pass -p 8081:8081 mongo-express:0.54.0

Error: rror [MongoError]: Unsupported OP_QUERY command: listDatabases. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal

docker run --network starwars_mongo-network -e ME_CONFIG_MONGODB_SERVER=mongo1 -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin -e ME_CONFIG_MONGODB_ADMINPASSWORD=pass -p 8081:8081 mongo-express:latest

Error: UnhandledPromiseRejectionWarning: MongoError: not authorized on config to execute command { listCollections:

I'm using latest mongo image and it authenticates no problem on this network.
I suspect the latest docker image of mongo-express hasn't been updated to support the latest docker mongo image.

@sey
Copy link

sey commented Aug 23, 2023

The image version 1.0.0-alpha.4 works with mongo:7.0.0.

@rtritto rtritto added the old_docker_version Will be fixed in a newer version of Docker image label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old_docker_version Will be fixed in a newer version of Docker image
Projects
None yet
Development

No branches or pull requests

3 participants