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

**URL:** <https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-open-data-package-json/56379>\
**Category:** General\
**Tags:** docker, function-node, uibuilder\
**Created:** [10 January 2022 09:27 UTC](https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-open-data-package-json/56379 "2022-01-10T09:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khayal](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@khayal](https://discourse.nodered.org/u/khayal)\
**Post date:** [10 January 2022 09:27 UTC](https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-open-data-package-json/56379/1 "2022-01-10T09:27:30Z")

</div>

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  
khayal@test-efk:~/JCI.OpenBlueBridge.NodeRedService$

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

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 January 2022 09:34 UTC](https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-open-data-package-json/56379/2 "2022-01-10T09:34:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 March 2022 09:34 UTC](https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-open-data-package-json/56379/3 "2022-03-11T09:34:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
