We are having windows server on which linux VM is installed.
On windows server we have - MongoDB 3.6.17 Community Edition / Node.js v10.19.0
On Linux VM we have installed NodeRed container /
Node.js v16.17.1
As mongoDB and Nodered are in same subnet we are able to establish communication between them.
On linux VM we have installed Azure IoT Edge and Nodered container is running on the top of it.
I am fetching data from MongoDB into NodeRED and then processing it further. This flow works absolutely fine, however in some cases I am getting this error - "MongoError: pool destroyed". After this I am not able to fetch data from MongoDB. Once I Open/Close debug node and deploy the flow it starts to work again.
I'm using:
- node-red-node-mongodb (0.2.5)
Can anyone please suggest what might be the root cause for this problem? Can the differences in Node.js versions in windows and linux create an issue?
Please refer image for your reference -