I'm running a website through node.js on my raspberry pi and want to connect it to a mongodb database. Unfortunately the through the repositories provided mongodb server is only of version 2.4 due to the 32 bit system.
I tried to compile a higher version of mongodb without success. Trying to connect to the database through my node.js application gives me this error:
MongoError: Server at localhost:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6).
Is there any way to tell the mongodb node.js package to use the lower version of Mongodb?
Ok, so I solved it quite easily. You can set the version of mongodb in the package.json file to a lower one. The 2.X versions apparently use mongodb version 2.4 or less!
Related
Does anyone know of a NodeJS Redis client compatible with NodeJS version 4.8.xish?
I have tried node-redis and ioredis both and have ran into issues.
The Node.js Redis client is generally compatible with Node.js version 4.8.x, but the specific version of the client you are using may have different requirements.
It's worth noting that Node.js 4.8.x is an old version, it reached its end-of-life on April 30th, 2018, and it's recommended to use a more recent version of Node.js for your application.
It is also important to check if the Redis server version you are using is compatible with the Redis client library you are using.
If you are using an old version of the Redis client library, you may encounter issues with compatibility. In this case, it's recommended to upgrade to a more recent version of the library.
i have issues when i connect mongodb with url, please help
Server at 10.70.152.26:27017 reports maximum wire version 4, but this version of the Node.js Driver requires at leastenter image description here 6 (MongoDB 3.6)
Try to download an older version of Mongodb compass. like 1.28.4
here is the link to it Mongo 1.28.4.
and Try checking your admin username and see if you have the correct access or not. hope this helps
You are using a server which only support protocol version 4 and a client which requires at least protocol version 6. You need to either use a driver which supports protocol version 4 or a server which supports protocol version 6.
We upgraded our Oracle DB and oracle client from 12.1 to 19.10.
Our application server have below setup
OS is Linux
Python version is 2.7.5 and there is no plan to upgrade the python version yet
cx_Oracle library version is 5.3
A quick test shows the application works fine but I am wondering if I need to upgrade the cx_Oracle library? Does it have a support expiry date? I tried to google it, read the information on its Github page but can't find any statement that answers my question.
This combination hasn't been tested. But since the Oracle Client libraries keep compatibility it is likely to work, subject to whatever underlaying enforced changes have been made to the Oracle libraries, perhaps to drop unsupported TLS versions or whatever has occurred in the 8 years since 12.1 was released that I don't know about. You application testing should be the final confirmation.
You should definitely set a goal to update to Python 3 so you can get the latest cx_Oracle version.
This question already has answers here:
Find the version of an installed npm package
(33 answers)
Closed 5 years ago.
Hi everyone? I'm new on mongoLab, and i have a database connected with a sandbox plan with mongodb 3.2 version. I'm getting a warning message about the upgrade to mongodb 3.4 soon. After looking deep into compatibilities changes that are needed (https://docs.mongodb.com/manual/release-notes/3.4-compatibility/), i find out i need to make sure that the Node Js driver version i'm using will be suitable with MongoDB 3.4. According to this doc https://docs.mongodb.com/ecosystem/drivers/driver-compatibility-reference/#node-js-driver-compatibility, the nodejs driver that i need is 2.2.12.
Does someone know how to check the nodejs driver version in a nodejs app.
Check your package.json file. Depending on what package you're using, it might be:
mongoose
mongoDB
or even some of these
I have a node.js server and I was using a Mongodb v2.6. Today I have upgraded that to Mongodb v3.0 and the app has stopped responding but it still responds to v2.6. Any ideas on how to fix this? Mongolab will be upgrading all databases to v3.0.
I have also tried implementing it at modulus.io without any results. I use Mongoose with my node.js app.
Since the version of Mongoose you included in package.json isn't shared, I am hoping that needs an update too.
Here's the article where Mongoose 4.0 is said to be supporting Mongo 3.0: https://www.mongodb.com/blog/post/introducing-version-40-mongoose-nodejs-odm
Also, if you are upgrading Mongoose to 4.0, check the backwards incompatible changes and new features sections in their Release Notes.
https://github.com/Automattic/mongoose/wiki/4.0-Release-Notes