# Recursive disconnection from the node-red server

**URL:** https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257
**Category:** General
**Created:** [9 February 2025 14:48 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257 "2025-02-09T14:48:12Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![pin32](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pin32](https://discourse.nodered.org/u/pin32)
#### Post date: [16 February 2025 08:54 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/21 "2025-02-16T08:54:25Z")

</div>

```auto
pin32@Node-Red:~ $ node-red-reload
Stop Node-RED
 
Use node-red-start to start Node-RED again
 

Start Node-RED
 
Once Node-RED has started, point a browser at http://192.168.1.96:1880
On Pi Node-RED works better with the Firefox or Chrome browser
 
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
 
To find more nodes and example flows - go to http://flows.nodered.org
 
Starting as a systemd service.
16 Feb 09:20:41 - [info] Settings file : /home/pin32/.node-red/settings.js
16 Feb 09:20:41 - [info] Context store : 'default' [module=memory]
16 Feb 09:20:41 - [info] User directory : /home/pin32/.node-red
16 Feb 09:20:41 - [warn] Projects disabled : editorTheme.projects.enabled=false
16 Feb 09:20:41 - [info] Flows file : /home/pin32/.node-red/flows.json
16 Feb 09:20:41 - [info] Server now running at http://127.0.0.1:1880/
16 Feb 09:20:41 - [warn] Using unencrypted credentials
16 Feb 09:20:41 - [info] Starting flows
  MCP23017 chip initialization OK. BusNumber=1 Address=0X27 id:ac05a4c7c52289c4 startAllHigh = false
  MCP23017 chip initialization OK. BusNumber=1 Address=0X20 id:891324a310fe6192 startAllHigh = false
16 Feb 09:20:46 - [info] Started flows
16 Feb 09:20:46 - [info] [serialconfig:831becf24befe30b] serial port /dev/ttyACM0 opened at 2400 baud 8N1
16 Feb 09:20:46 - [error] [serialconfig:5a5b2278df870dd4] serial port /dev/ttyUSB0 error: Error: Error: No such file or directory, cannot open /dev/ttyUSB0
16 Feb 09:20:46 - [info] [mqtt-broker:e276a877253691df] Connected to broker: mqtt://192.168.1.99:1883
16 Feb 09:29:26 - [info] Stopping modified nodes
16 Feb 09:29:26 - [info] Stopped modified nodes
16 Feb 09:29:26 - [info] Updated flows
16 Feb 09:29:26 - [info] Starting modified nodes
16 Feb 09:29:26 - [info] Started modified nodes
16 Feb 09:31:08 - [info] Stopping modified nodes
16 Feb 09:31:08 - [info] Stopped modified nodes
16 Feb 09:31:08 - [info] Updated flows
16 Feb 09:31:08 - [info] Starting modified nodes
16 Feb 09:31:08 - [info] Started modified nodes
16 Feb 09:35:01 - [info] Stopping modified nodes
16 Feb 09:35:01 - [info] Stopped modified nodes
16 Feb 09:35:01 - [info] Updated flows
16 Feb 09:35:02 - [info] Starting modified nodes
16 Feb 09:35:02 - [info] Started modified nodes
16 Feb 09:36:48 - [info] Stopping modified nodes
16 Feb 09:36:48 - [info] Stopped modified nodes
16 Feb 09:36:48 - [info] Updated flows
16 Feb 09:36:48 - [info] Starting modified nodes
16 Feb 09:36:48 - [info] Started modified nodes
16 Feb 09:41:05 - [info] Stopping modified nodes
16 Feb 09:41:05 - [info] Stopped modified nodes
16 Feb 09:41:05 - [info] Updated flows
16 Feb 09:41:05 - [info] Starting modified nodes
16 Feb 09:41:05 - [info] Started modified nodes
16 Feb 09:43:11 - [info] Stopping modified nodes
16 Feb 09:43:11 - [info] Stopped modified nodes
16 Feb 09:43:11 - [info] Updated flows
16 Feb 09:43:11 - [red] Uncaught Exception:
16 Feb 09:43:11 - [error] TypeError: Cannot read properties of undefined (reading 'charAt')
    at /home/pin32/.node-red/node_modules/ds18b20/lib/ds18b20.js:46:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 21min 37.543s CPU time.
nodered.service: Scheduled restart job, restart counter is at 1.
Stopped nodered.service - Node-RED graphical event wiring tool.
nodered.service: Consumed 21min 37.543s CPU time.
Started nodered.service - Node-RED graphical event wiring tool.
16 Feb 09:43:35 - [info]
Welcome to Node-RED
===================
16 Feb 09:43:35 - [info] Node-RED version: v4.0.8
16 Feb 09:43:35 - [info] Node.js version: v20.18.1
16 Feb 09:43:35 - [info] Linux 6.6.51+rpt-rpi-v8 arm64 LE
16 Feb 09:43:36 - [info] Loading palette nodes
16 Feb 09:43:40 - [info] Settings file : /home/pin32/.node-red/settings.js
16 Feb 09:43:40 - [info] Context store : 'default' [module=memory]
16 Feb 09:43:40 - [info] User directory : /home/pin32/.node-red
16 Feb 09:43:40 - [warn] Projects disabled : editorTheme.projects.enabled=false
16 Feb 09:43:40 - [info] Flows file : /home/pin32/.node-red/flows.json
16 Feb 09:43:40 - [info] Server now running at http://127.0.0.1:1880/
16 Feb 09:43:40 - [warn] Using unencrypted credentials
16 Feb 09:43:41 - [info] Starting flows
  MCP23017 chip initialization OK. BusNumber=1 Address=0X27 id:ac05a4c7c52289c4 startAllHigh = false
  MCP23017 chip initialization OK. BusNumber=1 Address=0X20 id:891324a310fe6192 startAllHigh = false
16 Feb 09:43:46 - [info] Started flows
16 Feb 09:43:46 - [info] [serialconfig:831becf24befe30b] serial port /dev/ttyACM0 opened at 2400 baud 8N1
16 Feb 09:43:46 - [error] [serialconfig:5a5b2278df870dd4] serial port /dev/ttyUSB0 error: Error: Error: No such file or directory, cannot open /dev/ttyUSB0
16 Feb 09:43:46 - [info] [mqtt-broker:e276a877253691df] Connected to broker: mqtt://192.168.1.99:1883
16 Feb 09:43:47 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:43:47 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:44:45 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:45:44 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:46:11 - [info] Stopping modified nodes
16 Feb 09:46:11 - [info] Stopped modified nodes
16 Feb 09:46:11 - [info] Updated flows
16 Feb 09:46:11 - [info] Starting modified nodes
16 Feb 09:46:11 - [info] Started modified nodes
16 Feb 09:46:42 - [info] Stopping modified nodes
16 Feb 09:46:42 - [info] Stopped modified nodes
16 Feb 09:46:42 - [info] Updated flows
16 Feb 09:46:42 - [info] Starting modified nodes
16 Feb 09:46:43 - [info] Started modified nodes
16 Feb 09:46:43 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:46:56 - [info] Stopping modified nodes
16 Feb 09:46:56 - [info] Stopped modified nodes
16 Feb 09:46:56 - [info] Updated flows
16 Feb 09:46:56 - [info] Starting modified nodes
16 Feb 09:46:56 - [info] Started modified nodes
16 Feb 09:47:42 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:48:41 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:49:25 - [info] Stopping modified nodes
16 Feb 09:49:25 - [info] Stopped modified nodes
16 Feb 09:49:25 - [info] Updated flows
16 Feb 09:49:26 - [info] Starting modified nodes
16 Feb 09:49:26 - [info] Started modified nodes

```

---

<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: [16 February 2025 09:54 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/22 "2025-02-16T09:54:04Z")

</div>

> [@pin32](#):
>
> ```auto
> 16 Feb 09:43:11 - [error] TypeError: Cannot read properties of undefined (reading 'charAt')
> at /home/pin32/.node-red/node_modules/ds18b20/lib/ds18b20.js:46:16
> at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3)
> nodered.service: Main process exited, code=exited, status=1/FAILURE
> 
> ```

That is the problem. The 1-wire node is crashing and node red is restarting. During that time the browser will time out.  
What version of node-red are you using? It is at the bottom of the hamburger drop down menu.  
What version of nodejs are you using? The command `node -v` will tell you that.  
What package are you using for the DS18b20, and what version?  
Are all of your nodes running with the latest versions? Check in Manage Palette.

---

<div class="post-metadata">

### Author: ![pin32](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pin32](https://discourse.nodered.org/u/pin32)
#### Post date: [16 February 2025 18:21 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/23 "2025-02-16T18:21:58Z")

</div>

> [@Colin](#):
>
> That is the problem. The 1-wire node is crashing and node red is restarting. During that time the browser will time out.  
> What version of node-red are you using? It is at the bottom of the hamburger drop down menu.  
> What version of nodejs are you using? The command `node -v` will tell you that.  
> What package are you using for the DS18b20, and what version?  
> Are all of your nodes running with the latest versions? Check in Manage Palette.

node-red-contrib-ds18b20 0.0.3  
use both this and the inside of the raspberry gpio  
node-red-node-pi-gpio 2.0.6  
disabling both I have no more reboot  
node -v  
v20.18.1

---

<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: [16 February 2025 18:47 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/24 "2025-02-16T18:47:23Z")

</div>

> [@pin32](#):
>
> node-red-contrib-ds18b20 0.0.3

I have to refer you to my question

> [@Colin](#):
>
> Are all of your nodes running with the latest versions? Check in Manage Palette.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [17 February 2025 01:01 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/25 "2025-02-17T01:01:04Z")

</div>

> [@pin32](#):
>
> node-red-contrib-ds18b20 0.0.3

This node hasn't been updated in 11 years so it is quite possible that it doesn't work on the latest OS. It would be helpful to know what Pi and what OS you are running on it.

You could open a issue on the nodes [GitHub page](https://github.com/stibi/node-red-contrib-ds18b20/issues) and hope the author would take a look

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [17 February 2025 06:52 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/26 "2025-02-17T06:52:14Z")

</div>

These are more recent have you tried them ?

> **[node-red-contrib-ds18b20-sensor](https://flows.nodered.org/node/node-red-contrib-ds18b20-sensor)**
>
> Node-red node to connect DS18B20 sensors

> **[node-red-contrib-sensor-ds18b20](https://flows.nodered.org/node/node-red-contrib-sensor-ds18b20)**
>
> Node-RED node to get temperature in centigrades from DS18B20 sensors

---

<div class="post-metadata">

### Author: ![pin32](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pin32](https://discourse.nodered.org/u/pin32)
#### Post date: [18 February 2025 18:22 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/27 "2025-02-18T18:22:44Z")

</div>

I removed that obsolete knot and everything returned to normal.  
gazie thousand

---

<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: [19 May 2025 18:23 UTC](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257/28 "2025-05-19T18:23:34Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/recursive-disconnection-from-the-node-red-server/95257.md?page=1)
