# Node-RED Docker Crash

**URL:** <https://discourse.nodered.org/t/node-red-docker-crash/74760>\
**Category:** General\
**Tags:** docker, home-assistant\
**Created:** [5 February 2023 23:57 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760 "2023-02-05T23:57:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renegade605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/renegade605/32/75643_2.png) [@Renegade605](https://discourse.nodered.org/u/Renegade605)\
**Post date:** [5 February 2023 23:57 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/1 "2023-02-05T23:57:43Z")

</div>

A couple times recently I've had NR crash with this message in the logs. I can't find any information on narrowing down the cause. Please assist?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dcfe9a87932fb23f96b8019e2b78746b60d38b2d.png)

Node-RED Docker container running on Unraid (custom server).

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 February 2023 04:56 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/2 "2023-02-06T04:56:36Z")

</div>

It is an "unhandled promise rejected". That most likely originated at an external node you are using and by the looks of it, you are using home assistant....I would start there.

---

<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:** [6 February 2023 07:31 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/3 "2023-02-06T07:31:06Z")

</div>

Is there anything after that message?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 February 2023 07:43 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/4 "2023-02-06T07:43:41Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/3/43712ede7d5b320a93c6f825aa72b48f5e757445.png)

---

<div class="post-metadata">

**Author:** ![Renegade605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/renegade605/32/75643_2.png) [@Renegade605](https://discourse.nodered.org/u/Renegade605)\
**Post date:** [6 February 2023 13:05 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/5 "2023-02-06T13:05:47Z")

</div>

No, the container is stopped and there are no more logs.

---

<div class="post-metadata">

**Author:** ![Renegade605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/renegade605/32/75643_2.png) [@Renegade605](https://discourse.nodered.org/u/Renegade605)\
**Post date:** [6 February 2023 13:07 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/6 "2023-02-06T13:07:10Z")

</div>

I figure as much as well, but I'd like to be able to provide more information. There's no indication of a line number or even which node this originates from.

---

<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:** [6 February 2023 15:52 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/7 "2023-02-06T15:52:59Z")

</div>

Do you know why the connection closes? Is there a HA server log you could look at?

---

<div class="post-metadata">

**Author:** ![Renegade605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/renegade605/32/75643_2.png) [@Renegade605](https://discourse.nodered.org/u/Renegade605)\
**Post date:** [6 February 2023 17:06 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/8 "2023-02-06T17:06:31Z")

</div>

It was a manual restart of Home Assistant. But I manually restarted twice more later that day without issue.

 ![Screenshot_20230206-100246](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fe0da360105592a30cc92e0061e9d3d7194f02a9.jpeg)

---

<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:** [6 February 2023 17:16 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/9 "2023-02-06T17:16:33Z")

</div>

I believe that is the node-red log. I meant a log for the other end of the connection which might indicate why it disconnected. As suggested earlier I think you will have to ask on an HA forum as it does appear to do with their setup.

---

<div class="post-metadata">

**Author:** ![Renegade605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/renegade605/32/75643_2.png) [@Renegade605](https://discourse.nodered.org/u/Renegade605)\
**Post date:** [6 February 2023 21:08 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/10 "2023-02-06T21:08:05Z")

</div>

Yes the reason was I restarted Home Assistant manually.

Additional NR log to show other times I did the same thing but it didn't cause a problem.

I do intend to bring this to the HA node developer I'm just asking how I can get more information. If all I give them is this log message it doesn't give any indication of where in their nodes they should start looking for the cause. Especially since it's an intermittent issue.

---

<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:** [6 February 2023 21:24 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/11 "2023-02-06T21:24:25Z")

</div>

> [@Renegade605](#):
>
> it doesn't give any indication of where in their nodes they should start looking for the cause

That is why I suggested looking in the HA logs to see if there is any information there as to what is going on.

I suppose you could try increasing the log level in settings.js, but I suspect it won't help. On a normal (non-HA, non-docker) node-red install the unhandled promise error would be followed by a stack trace. Whether the fact that it is missing is due to it being run in Docker or whether it is HA specific I don't know.

---

<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:** [7 April 2023 21:24 UTC](https://discourse.nodered.org/t/node-red-docker-crash/74760/12 "2023-04-07T21:24:35Z")

</div>

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