# Node red crashes/restarts when doorbird events happen (motion,ring)

**URL:** <https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355>\
**Category:** General\
**Created:** [1 December 2023 15:24 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355 "2023-12-01T15:24:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![WernerM96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wernerm96/32/46471_2.png) [@WernerM96](https://discourse.nodered.org/u/WernerM96)\
**Post date:** [1 December 2023 15:24 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/1 "2023-12-01T15:24:40Z")

</div>

Hey to all of you,

i have good a strange behaviour with the door bird api. Since my upgrade to node red 3 (before 1.x) and node.js 20 (before node.js 14) i have got an restart of the node red service after every motion, ring and so on in the doorbird.

The log at these times:

```auto
> Dec 1 14:17:36 raspberrypi Node-RED[68393]: 1 Dec 14:17:36 - [red] Uncaught Exception:
> Dec 1 14:17:36 raspberrypi Node-RED[68393]: 1 Dec 14:17:36 - [error] TypeError: sodium.crypto_pwhash is not a function
> Dec 1 14:17:36 raspberrypi Node-RED[68393]: at DoorbirdUdpSocket.<anonymous> (/home/pi/.node-red/node_modules/doorbird/dist/index.js:121:55)
> Dec 1 14:17:36 raspberrypi Node-RED[68393]: at step (/home/pi/.node-red/node_modules/doorbird/dist/index.js:56:23)
> Dec 1 14:17:36 raspberrypi Node-RED[68393]: at Object.next (/home/pi/.node-red/node_modules/doorbird/dist/index.js:37:53)
> Dec 1 14:17:36 raspberrypi Node-RED[68393]: at fulfilled (/home/pi/.node-red/node_modules/doorbird/dist/index.js:28:58)
> Dec 1 14:17:36 raspberrypi systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
> Dec 1 14:17:36 raspberrypi systemd[1]: nodered.service: Failed with result 'exit-code'.
> Dec 1 14:17:36 raspberrypi systemd[1]: nodered.service: Consumed 1h 8min 20.425s CPU time.
> Dec 1 14:17:56 raspberrypi systemd[1]: nodered.service: Scheduled restart job, restart counter is at 30.
> Dec 1 14:17:56 raspberrypi systemd[1]: Stopped Node-RED graphical event wiring tool.
> Dec 1 14:17:56 raspberrypi systemd[1]: nodered.service: Consumed 1h 8min 20.425s CPU time.

```

Can somebody help me on this problem? Is there a incompability?

Best regards,  
WernerMa96

---

<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:** [1 December 2023 15:34 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/2 "2023-12-01T15:34:14Z")

</div>

So where has the doorbird module come from? Is that a manually installed package, or some other contributed node?

---

<div class="post-metadata">

**Author:** ![WernerM96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wernerm96/32/46471_2.png) [@WernerM96](https://discourse.nodered.org/u/WernerM96)\
**Post date:** [1 December 2023 15:38 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/3 "2023-12-01T15:38:33Z")

</div>

I installed the [node-red-contrib-doorbird-ultimate (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-doorbird-ultimate)  
directly via the palette manager.

---

<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:** [1 December 2023 15:43 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/4 "2023-12-01T15:43:30Z")

</div>

Which uses  
doorbird : [doorbird - npm (npmjs.com)](https://www.npmjs.com/package/doorbird)

I think you will need to raise this with the author of the node you installed, as there maybe issues with more recent versions of Node and some upstream Dependencies

---

<div class="post-metadata">

**Author:** ![WernerM96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wernerm96/32/46471_2.png) [@WernerM96](https://discourse.nodered.org/u/WernerM96)\
**Post date:** [1 December 2023 15:52 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/5 "2023-12-01T15:52:44Z")

</div>

I see that the version in node red (1.2.1) is not up to date. in github there is 1.2.3.  
Maybe this fixes the error. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![WernerM96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wernerm96/32/46471_2.png) [@WernerM96](https://discourse.nodered.org/u/WernerM96)\
**Post date:** [1 December 2023 16:11 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/6 "2023-12-01T16:11:38Z")

</div>

@marcus-j-davies

The newest version is node in the node-red-portal but on npm:

> **[node-red-contrib-doorbird-ultimate](https://www.npmjs.com/package/node-red-contrib-doorbird-ultimate)**
>
> Node-Red Integration for Doorbird Devices. Latest version: 1.3.0, last published: 6 months ago. Start using node-red-contrib-doorbird-ultimate in your project by running \`npm i node-red-contrib-doorbird-ultimate\`. There are no other projects in the...

is a direct update possible? or how do i do that?

---

<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:** [1 December 2023 16:29 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/7 "2023-12-01T16:29:25Z")

</div>

> [@WernerM96](#):
>
> is a direct update possible? or how do i do that?

You will need to access your servers command line. Assuming a standard install on a Linux server:

```auto
cd ~/.node-red
npm install ihrigb/node-red-contrib-doorbird-ultimate

```

Should do it - assuming the same login on the command line as the user running node red. You will need to restart Node-RED afterwards.

---

<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:** [1 December 2023 16:49 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/8 "2023-12-01T16:49:01Z")

</div>

I have just forced an update of the node-red catalogue so 1.3.0 is available through the palette manager now.

Edit, or at least it should be very soon, it doesn't seem to have propagated through yet.

---

<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:** [30 January 2024 16:49 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355/9 "2024-01-30T16:49:27Z")

</div>

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