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

Fix Compatibility issue with MongoDB 6.0 #15

Open
ahems opened this issue Dec 21, 2022 · 1 comment
Open

Fix Compatibility issue with MongoDB 6.0 #15

ahems opened this issue Dec 21, 2022 · 1 comment

Comments

@ahems
Copy link

ahems commented Dec 21, 2022

When I install MongoDb to my AKS cluster to use with this demo API using this command:

az aks command invoke --resource-group <myrg> --name <my cluster> --command "helm repo add bitnami https://charts.bitnami.com/bitnami && helm install ratings bitnami/mongodb --namespace ratingsapp --set auth.username=myusername,auth.password=mypassword,auth.database=ratingsdb"

I get this error thrown by the API when I try to call it using http://:3000/api/items

MongoError: Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal
    at Function.MongoError.create (/usr/src/app/node_modules/mongodb-core/lib/error.js:31:11)
    at queryCallback (/usr/src/app/node_modules/mongodb-core/lib/cursor.js:212:36)
    at /usr/src/app/node_modules/mongodb-core/lib/connection/pool.js:469:18
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
@ahems
Copy link
Author

ahems commented Dec 21, 2022

The workaround for this issue is to use the previous version of MongoDB when deploying it for use by this code:

az aks command invoke --resource-group <myrg> --name <my cluster> --command "helm repo add bitnami https://charts.bitnami.com/bitnami && helm install ratings bitnami/mongodb --namespace ratingsapp --set image.tag=5.0.14-debian-11-r9,auth.username=myusername,auth.password=mypassword,auth.database=ratingsdb"

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

1 participant