# Node-red ended with exception

**URL:** <https://discourse.nodered.org/t/node-red-ended-with-exception/6825>\
**Category:** General\
**Created:** [15 January 2019 06:32 UTC](https://discourse.nodered.org/t/node-red-ended-with-exception/6825 "2019-01-15T06:32:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hjh58](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@Hjh58](https://discourse.nodered.org/u/Hjh58)\
**Post date:** [15 January 2019 06:32 UTC](https://discourse.nodered.org/t/node-red-ended-with-exception/6825/1 "2019-01-15T06:32:30Z")

</div>

I am using the ping node for checking nodes to be alive. he error message:

Jan 05:52:22 - Error: spawn ENOMEM  
at ChildProcess.spawn (internal/child\_process.js:372:11)  
at spawn (child\_process.js:544:9)  
at Timeout.\_onTimeout (/root/.node-red/node\_modules/node-red-node-ping/88-ping.js:15:62)  
at listOnTimeout (timers.js:324:15)  
at processTimers (timers.js:268:5)  
is there any mode I can prevent node-red from stopping? Is the ping node not stable?

---

<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:** [15 January 2019 07:30 UTC](https://discourse.nodered.org/t/node-red-ended-with-exception/6825/2 "2019-01-15T07:30:11Z")

</div>

ENOMEM means it is out of memory.

What else are you running?

As an aside is there any reason you are running as root?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 January 2019 12:10 UTC](https://discourse.nodered.org/t/node-red-ended-with-exception/6825/3 "2019-01-15T12:10:59Z")

</div>

Also

1. what platform are you using?
2. what version of NR and Node.js?
3. how much free storage do you have? (On a Pi you can do `df -h` to find out
4. what are you doing in your flow?
5. have you checked your folws to see if you have a loop?
