# Node-RED docker container crashes after a while

**URL:** <https://discourse.nodered.org/t/node-red-docker-container-crashes-after-a-while/15277>\
**Category:** General\
**Created:** [8 September 2019 13:25 UTC](https://discourse.nodered.org/t/node-red-docker-container-crashes-after-a-while/15277 "2019-09-08T13:25:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaeti01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaeti01/32/15005_2.png) [@jaeti01](https://discourse.nodered.org/u/jaeti01)\
**Post date:** [8 September 2019 13:25 UTC](https://discourse.nodered.org/t/node-red-docker-container-crashes-after-a-while/15277/1 "2019-09-08T13:25:54Z")

</div>

I have node-red running in a docker container and it works well for a few days. Then it crashes.  
Last relevant log lines before the crash indicate that some nodes had communication problems. But that shouldn't cause the container to crash.  
Any hints?

```auto
7 Sep 13:02:52 - [error] [alexa-home-conf:c05e67ac.2ebed8] Error: getaddrinfo EAI_AGAIN alexa-node-red.hardill.me.uk:8883
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
7 Sep 13:03:43 - [error] [alexa-home-conf:c05e67ac.2ebed8] Error: getaddrinfo EAI_AGAIN alexa-node-red.hardill.me.uk:8883
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
7 Sep 13:03:56 - [error] [pushover:Sende Pushover Nachricht] [57-pushover.js] Error: Error: getaddrinfo ENOTFOUND api.pushover.net api.pushover.net:443
7 Sep 13:03:56 - [red] Uncaught Exception:
7 Sep 13:03:56 - SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at /data/node_modules/node-red-node-pushover/57-pushover.js:103:33
    at ClientRequest.<anonymous> (/data/node_modules/pushover-notifications/lib/pushover.js:254:7)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:66:8)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@1.0.0 start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-red-docker@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /usr/src/node-red/.npm/_logs/2019-09-07T13_03_58_352Z-debug.log

```

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [8 September 2019 13:36 UTC](https://discourse.nodered.org/t/node-red-docker-container-crashes-after-a-while/15277/2 "2019-09-08T13:36:26Z")

</div>

Looks like a problem with the pushover node. One for @dceejay

---

<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:** [8 September 2019 14:31 UTC](https://discourse.nodered.org/t/node-red-docker-container-crashes-after-a-while/15277/3 "2019-09-08T14:31:20Z")

</div>

their API says they return a JSON object but obviously not all the time...  
pushed fix as 0.0.16
