# Home Assistant Node-RED Crashed out of the blue

**URL:** https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431
**Category:** General
**Tags:** home-assistant
**Created:** [30 September 2022 20:38 UTC](https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431 "2022-09-30T20:38:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ggarman](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@ggarman](https://discourse.nodered.org/u/ggarman)
#### Post date: [30 September 2022 20:38 UTC](https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431/1 "2022-09-30T20:38:38Z")

</div>

Sorry if this isn't the correct place to post this.

Can anyone tell me what is going on in the error log below? This just recently started happening and I uninstall/reinstall node-red and add my flows back one at a time. So far, I can't pin it on any one flow/node, but I'm leaning towards node-red-contrib-alexa-remote2, but I've had it installed and working for months, maybe a year.

Any help would be much appreciated!

```auto
29 Sep 10:10:06 - [info] [server:Home Assistant-Mine] Connected to http://supervisor/core
29 Sep 10:10:07 - [red] Uncaught Exception:
29 Sep 10:10:07 - [error] Error: Invalid context key
    at Object.value (/opt/node_modules/@node-red/runtime/lib/nodes/context/index.js:291:31)
    at NodeRedContext.get (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/common/NodeRedContext.js:17:24)
    at EventsState.getComparatorResult (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/BaseNode.js:151:35)
    at EventsState.onHaEventsStateChanged (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/events-state/controller.js:71:32)
    at EventsState.onStatesLoaded (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/events-state/controller.js:179:18)
    at EventEmitter.emit (node:events:539:35)
    at /opt/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:230:27
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022/09/29 10:10:07 [error] 369#369: *486 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /icons/node-red-contrib-home-assistant-websocket/ha-events-state-changed.svg HTTP/1.1", upstream: "http://127.0.0.1:46836/icons/node-red-contrib-home-assistant-websocket/ha-events-state-changed.svg", host: "qobh7 ***ed.ui.nabu.casa", referrer: "https://qobh7*** ed.ui.nabu.casa/api/hassio_ingress/cdNAdzVXI0tOE-***yMVO4TaE/"
2022/09/29 10:10:07 [error] 369#369: *486 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /icons/node-red/timer.svg HTTP/1.1", upstream: "http://127.0.0.1:46836/icons/node-red/timer.svg", host: "qobh7 ***ed.ui.nabu.casa", referrer: "https://qobh7*** ed.ui.nabu.casa/api/hassio_ingress/cdNAdzVXI0tOE-P2n***4TaE/"
2022/09/29 10:10:07 [error] 369#369: *486 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /icons/node-red-contrib-home-assistant-websocket/ha-current-state.svg HTTP/1.1", upstream: "http://127.0.0.1:46836/icons/node-red-contrib-home-assistant-websocket/ha-current-state.svg", host: "qobh7 ***ed.ui.nabu.casa", referrer: "https://qobh7*** ed.ui.nabu.casa/api/hassio_ingress/cdNAdzV***aEKyMVO4TaE/"
2022/09/29 10:10:07 [error] 369#369: *486 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /icons/node-red/swap.svg HTTP/1.1", upstream: "http://127.0.0.1:46836/icons/node-red/swap.svg", host: "qobh7 ***ed.ui.nabu.casa", referrer: "https://qobh7*** ed.ui.nabu.casa/api/hassio_ingress/cdNAdzV***cyaEKyMVO4TaE/"
[10:10:07] WARNING: Node-RED crashed, halting add-on

```

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [1 October 2022 08:19 UTC](https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431/2 "2022-10-01T08:19:09Z")

</div>

The stack trace points at node-red-contrib-home-assistant-websocket as the right place to look

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [1 October 2022 09:05 UTC](https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431/3 "2022-10-01T09:05:54Z")

</div>

There seem to have been a whole slew of Home assistant issues recently. Maybe they have accidentally broken the web socket node in a recent upgrade.

---

<div class="post-metadata">

### Author: ![bohtho](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bohtho/32/6153_2.png) [@bohtho](https://discourse.nodered.org/u/bohtho)
#### Post date: [1 October 2022 17:15 UTC](https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431/4 "2022-10-01T17:15:58Z")

</div>

I concur. Not only did NR crash for the first time in many years for me, but the NR UI wouldnt come up again without me disabling the HASS nodes from the commandline first.

---

<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 November 2022 17:16 UTC](https://discourse.nodered.org/t/home-assistant-node-red-crashed-out-of-the-blue/68431/5 "2022-11-30T17:16:00Z")

</div>

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