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

Incompatibility of Node wire version with MongoDB #23925

Closed
utkarshsingh99 opened this issue Oct 27, 2018 · 2 comments
Closed

Incompatibility of Node wire version with MongoDB #23925

utkarshsingh99 opened this issue Oct 27, 2018 · 2 comments
Labels
wrong repo Issues that should be opened in another repository.

Comments

@utkarshsingh99
Copy link

Version:

v6.14.4

Platform:

Linux 14.04.1-Ubuntu running on SSH shell on GCP[Google Cloud Platform]

Output of uname -a:

Linux lab-rat-frontend 4.4.0-137-generic #163~14.04.1-Ubuntu SMP Mon Sep 24 17:14:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I'm trying to run a project that requires MongoDB. So I installed the following version of it:

mongod --version

db version v2.4.9
Sat Oct 27 16:58:32.692 git version: nogitversion

Everytime I run the command

node server.js

I get the following error:

MongoError: Server at localhost:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6).

I don't know which of these is at fault here, but there are some solutions which say that updating the MongoDB version gets it solved. However, the errors keep on getting more and more with this solution.
Is there any other way I could do this by configuring Node?

@sagitsofan
Copy link
Contributor

Sounds to me like a more MongoDB driver issue rather then a node issue.
I suggest you to ask in mongod.

@AyushG3112
Copy link
Contributor

Just to weigh in, the latest mongoDB is v4.x, so you are on a very old version.

@bnoordhuis bnoordhuis added the wrong repo Issues that should be opened in another repository. label Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

4 participants