# Error in CMD prompt console running node-red - ENOENT /var/run/dbus/system\_bus\_socket -

**URL:** <https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610>\
**Category:** General\
**Created:** [22 May 2023 15:01 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610 "2023-05-22T15:01:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoNoci](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JoNoci](https://discourse.nodered.org/u/JoNoci)\
**Post date:** [22 May 2023 15:01 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/1 "2023-05-22T15:01:35Z")

</div>

Good Day.  
I have installed node red per the official Win-10 node red installation -  
22 May 16:37:05 - [info] Node-RED version: v3.0.2  
22 May 16:37:05 - [info] Node.js version: v20.1.0

I open a cmd console, type node-red at command prompt and the runtime text scrolls by, ending with:  
22 May 16:37:08 - [info] Starting flows  
22 May 16:37:08 - [info] Started flows.  
Node red runs fine in the browser thereafter, but in the cmd console there is an error occurring every few seconds:  
Error connecting to dbus: Error: connect ENOENT /var/run/dbus/system\_bus\_socket  
Error connecting to dbus: Error: connect ENOENT /var/run/dbus/system\_bus\_socket  
Error connecting to dbus: Error: connect ENOENT /var/run/dbus/system\_bus\_socket  
Error connecting to dbus: Error: connect ENOENT /var/run/dbus/system\_bus\_socket, etc

What does this mean and what do I need to do to correct this? It does not seem to fail anything, node-red seems to run fine, but error messages I may need are lost in the above texts.

---

<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:** [22 May 2023 15:47 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/2 "2023-05-22T15:47:24Z")

</div>

> [@JoNoci](#):
>
> v20.1.0

I think that is a very new version of node.js, have you recently upgraded to that version?

---

<div class="post-metadata">

**Author:** ![JoNoci](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JoNoci](https://discourse.nodered.org/u/JoNoci)\
**Post date:** [22 May 2023 16:21 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/3 "2023-05-22T16:21:43Z")

</div>

It was a new, first time, install - first time I am using node red under Win-10. I just followed the instructions on the Node Red Instal page, for Windows installation.

---

<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:** [22 May 2023 16:56 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/4 "2023-05-22T16:56:58Z")

</div>

Ah, you are using Windows. What dbus node are you using and does it support Windows?

I ask because the errors are showing a LINUX file path and not a Windows one.

---

<div class="post-metadata">

**Author:** ![JoNoci](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JoNoci](https://discourse.nodered.org/u/JoNoci)\
**Post date:** [22 May 2023 17:34 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/5 "2023-05-22T17:34:45Z")

</div>

Thanks for responding - and forgive my ignorance. Rather new at this..  
I don't know what a Dbus node is...I did the installation for windows as per the instructions, so am not sure where I went wrong and digging to understand what Dbus is it is indicated as relevant in the Linux world, not windows, so how it this occurs in the installation I am not sure..  
Perhaps I should do a re-install and read the instructions again very carefully..

---

<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:** [22 May 2023 19:14 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/6 "2023-05-22T19:14:46Z")

</div>

OK, so have you installed any other nodes using Node-RED's palette manager? If so, which ones?

---

<div class="post-metadata">

**Author:** ![JoNoci](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JoNoci](https://discourse.nodered.org/u/JoNoci)\
**Post date:** [22 May 2023 19:45 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/7 "2023-05-22T19:45:34Z")

</div>

Yes, a handful -  
I am using node red to manage a Victron off-grid solar system and a 12kW heat pump - these items are all accessed via Modbus RTU and Modbus TCP.  
So the nodes I have installed are: node-red, logic, victron ( interfaces created by victron to interface to their hardware), calc, controltimer, Modbus, sum, Victron-modbus and dashboard.  
The Dbus issue occurs even with a simple flow , eg, an inject node into a debug node.

---

<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:** [22 May 2023 19:49 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/8 "2023-05-22T19:49:53Z")

</div>

OK, I don't use modbus so those nodes don't mean much to me I'm afraid.

What you will need to do is go through and look at the readme for each one and find out which of them does not support Windows.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 May 2023 20:10 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/9 "2023-05-22T20:10:11Z")

</div>

Search for `dbus` in .node-red/package.json. If it occurs there then post the file here. If it doesn't then search in package-lock.json and see if it occurs there, by working up the hierarchy there you can see which node is pulling it in.

---

<div class="post-metadata">

**Author:** ![JoNoci](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JoNoci](https://discourse.nodered.org/u/JoNoci)\
**Post date:** [23 May 2023 06:41 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/10 "2023-05-23T06:41:51Z")

</div>

Thank You for the info. I will try that and let you know.

---

<div class="post-metadata">

**Author:** ![JoNoci](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JoNoci](https://discourse.nodered.org/u/JoNoci)\
**Post date:** [23 May 2023 06:54 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/11 "2023-05-23T06:54:16Z")

</div>

Thanks for you advice - I found the issue - package.json lists this:

{  
"name": "node-red-project",  
"description": "A Node-RED Project",  
"version": "0.0.1",  
"private": true,  
"dependencies": {  
"@mschaeffler/node-red-logic": "~0.7.1",  
"@victronenergy/node-red-contrib-victron": "~1.4.32",  
"node-red-contrib-calc": "~1.0.5",  
"node-red-contrib-controltimer": "~0.3.0",  
"node-red-contrib-modbus": "~5.26.0",  
"node-red-contrib-sum": "~0.1.1",  
"node-red-contrib-victron-modbus": "~0.1.2",  
"node-red-dashboard": "~3.4.0"  
}  
}

and in lock.json Dbus is in node-red-contrib-victron  
In the developers explanation of that node's operation, it indicates Linux usage, so there is the problem.  
I need only a few Modbus reads to the Victron equipment and it was convenient to use that contrib. but I will just do the reads with Modbus read nodes - it's not much data.

Thanks for all the assistance.  
Thank you again for your help.

---

<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:** [6 June 2023 06:54 UTC](https://discourse.nodered.org/t/error-in-cmd-prompt-console-running-node-red-enoent-var-run-dbus-system-bus-socket/78610/12 "2023-06-06T06:54:51Z")

</div>

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