# Problems with node-red-contrib-owfs on Node-red 3.1.3 and bullseye and node-js 18

**URL:** https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222
**Category:** General
**Created:** [2 January 2024 20:25 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222 "2024-01-02T20:25:48Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [2 January 2024 20:25 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/1 "2024-01-02T20:25:48Z")

</div>

Node-red 3.1.3 has problems starting with node-red-contrib-owfs. Are there any problems known. Is this contrib still supported?  
Any advice and support very welcome

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [2 January 2024 20:31 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/2 "2024-01-02T20:31:21Z")

</div>

Hi @juntiedt

What is the Node RED start up log showing - it will usually give a pretty good clue.

the node is 7 years old - there is every potential, it has fallen foul to maintenance with recent versions of Node JS

---

<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: [2 January 2024 21:01 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/3 "2024-01-02T21:01:09Z")

</div>

I use a slightly hacked version of that node version 1.0.0 with nodejs 16 without problems.

---

<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: [2 January 2024 21:10 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/4 "2024-01-02T21:10:52Z")

</div>

I have just checked the latest version of the node on Ubuntu 22.04 with nodejs 20.5.1, so I will be surprised if there is a problem on bullseye with nodejs 18.

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [2 January 2024 21:42 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/5 "2024-01-02T21:42:38Z")

</div>

I can start node-red without the usb stick.  
With 10.0.0.52:2121 I can reach the 1 wire sensors. Before my last upgrade of Raspian and node-red it worked ok.

---

<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: [2 January 2024 22:13 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/6 "2024-01-02T22:13:29Z")

</div>

What is the error you see?

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [3 January 2024 08:11 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/7 "2024-01-03T08:11:31Z")

</div>

Errors occuring on start of node-red:

```auto
pi@raspberrypi:~ $ node-red-start

Start Node-RED
 
Once Node-RED has started, point a browser at http://10.0.0.52: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.
3 Jan 09:06:04 - [info] Paletten-Nodes werden geladen
3 Jan 09:06:07 - [info] Dashboard version 3.6.2 started at /ui
3 Jan 09:06:09 - [info] Einstellungsdatei: /home/pi/.node-red/settings.js
3 Jan 09:06:09 - [info] HTTP-Statisch: /home/pi/.node-red/node-red-static > /
3 Jan 09:06:09 - [info] Kontextspeicher: default [module=memory]
3 Jan 09:06:09 - [info] Benutzerverzeichnis: /home/pi/.node-red
3 Jan 09:06:09 - [warn] Projekte deaktiviert: editorTheme.projects.enabled=false
3 Jan 09:06:09 - [info] Flow-Datei: /home/pi/.node-red/flows.json
3 Jan 09:06:09 - [warn]
---------------------------------------------------------------------
Die Datei mit den Flow-Credentials wird mit einem vom System
generierten SchlÃ¼ssel verschlÃ¼sselt.
Wenn der vom System generierte SchlÃ¼ssel aus irgendeinem Grund
verloren geht, kann die Datei mit den Credentials nicht
wiederhergestellt werden. Sie muss dann gelÃ¶scht und die
Credentials mÃ¼ssen erneut eingestellt werden.
Es sollte ein eigener SchlÃ¼ssel mit Hilfe der Option
'credentialSecret' in der Einstellungsdatei vorgegeben werden.
Node-RED wird dann die Datei mit den Flow-Credentials
bei der nÃ¤chsten Ãbernahme (deploy) einer Ã
                                            nderung erneut
verschlÃ¼sseln.
---------------------------------------------------------------------
3 Jan 09:06:09 - [warn] VerschlÃ¼sselte Credentials nicht gefunden
3 Jan 09:06:10 - [info] Server wird jetzt auf http://127.0.0.1:1880/ ausgefÃ¼hrt
3 Jan 09:06:10 - [info] Flows werden gestartet
3 Jan 09:06:11 - [info] Flows sind gestartet
3 Jan 09:06:11 - [info] [mqtt-broker:99603ece.52e2a] Verbindung zum Broker mqtt://10.0.0.43:1883 aufgebaut
3 Jan 09:06:11 - [red] Uncaught Exception:
3 Jan 09:06:11 - [error] TypeError: Cannot read properties of null (reading 'replace')
    at /home/pi/.node-red/node_modules/owfs/lib/base/convert.js:30:54
    at callbackOnce (/home/pi/.node-red/node_modules/owfs/lib/base/communication.js:30:13)
    at Socket.<anonymous> (/home/pi/.node-red/node_modules/owfs/lib/base/communication.js:75:9)
    at Socket.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 15.719s CPU time.
nodered.service: Scheduled restart job, restart counter is at 3.
Stopped Node-RED graphical event wiring tool.
nodered.service: Consumed 15.719s CPU time.
Started Node-RED graphical event wiring tool.
3 Jan 09:06:34 - [info]
Willkommen bei Node-RED

```

---

<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: [3 January 2024 10:00 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/8 "2024-01-03T10:00:55Z")

</div>

What version of nodejs are you using? Run `node -v` to find out.  
In a command shell go into your .node-red folder and run  
`npm list owfs`  
and show us what it shows.

Also please select the owfs node and Export it and paste it here.

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [3 January 2024 10:29 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/9 "2024-01-03T10:29:42Z")

</div>

## pi@raspberrypi:~ $ node -v v18.19.0

pi@raspberrypi:~/.node-red $ npm list owfs  
node-red-project@0.0.1 /home/pi/.node-red  
`-- node-red-contrib-owfs@1.2.0 `-- owfs@0.3.2

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [3 January 2024 10:32 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/10 "2024-01-03T10:32:47Z")

</div>

```auto
[{"id":"a8a17bd65bbbe837","type":"owfs","z":"9132136d.22d86","name":"","uncached":true,"mode":"read","host":"localhost","port":4304,"paths":["28.B5E984000003/temperature"],"x":580,"y":640,"wires":[["b8162c1bdbca520b","6f909247c391bd92"]]}]

```

---

<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: [3 January 2024 11:09 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/11 "2024-01-03T11:09:17Z")

</div>

Everthing looks ok to me. I think you will have to submit an issue on the node's github page and see whether the author responds.

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [3 January 2024 14:51 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/12 "2024-01-03T14:51:03Z")

</div>

I found the problem. One sensor died. As soon as I removed it from the 1W bus all worked ok. Unfortunately it took a long time to find the problem, as the sensor did work on a unipi controller.

---

<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: [3 January 2024 15:10 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/13 "2024-01-03T15:10:38Z")

</div>

Please report the issue against the node. A faulty sensor should not crash node-red, the owfs contrib node should catch the error and handle it, not crash node-red.

---

<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: [17 January 2024 15:10 UTC](https://discourse.nodered.org/t/problems-with-node-red-contrib-owfs-on-node-red-3-1-3-and-bullseye-and-node-js-18/84222/14 "2024-01-17T15:10:48Z")

</div>

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