Error: ENOENT: no such file or directory, open '/data/package.json'

Hello Everyone,

I have recently upgraded by docker image of node-red to 2.1.4. While i deploy the the node-red pod in kubernetes i am able to see the logs below.

These errors are not impacting the functionality of node-red. Yet i am still trying to understand what these errors implies.

(node:19) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(Use node --trace-warnings ... to show where the warning was created)
7 Jan 08:52:37 - [error] Error: ENOENT: no such file or directory, open '/data/package.json'
7 Jan 08:52:38 - [warn] Use of httpRoot is DEPRECATED. Use httpNodeRoot/httpAdminRoot instead

Issues · debug-js/debug

A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers - Issues · debug-js/debug

Looks like you have 3 different problems:

  1. Whatever you are using to access MongoDB has an outdated driver.

  2. You have a settings problem somewhere pointing to /data/package.json which doesn't appear to be accessible from your Docker image.

  3. You have httpRoot set in your settings.js file but that setting is deprecated, you need to switch to the other settings mentioned.