# Error on stop/restart

**URL:** <https://discourse.nodered.org/t/error-on-stop-restart/178>\
**Category:** General\
**Created:** [15 May 2018 12:12 UTC](https://discourse.nodered.org/t/error-on-stop-restart/178 "2018-05-15T12:12:40Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [12 December 2018 21:59 UTC](https://discourse.nodered.org/t/error-on-stop-restart/178/18 "2018-12-12T21:59:43Z")

</div>

Does it happen if you use the normal way to start and stop node-red which is `node-red-start` and `node-red-stop`?  
I wonder whether this is related to the problem with node context not being saved on stopping node-red.

> [@Persistent data not being saved](https://discourse.nodered.org/t/persistent-data-not-being-saved/5680/13):
>
> I just verified this (in OSX) in terminal, start NR create a simple flow (attached below) - an inject to two change nodes - each change node to a seperate debug node set one change node to use a flow variable the other uses a global variable. deploy and press the inject and use the 'context data' to examine the contents. as soon as you see the timestamp in the context data, press the inject again and then swap to the terminal and press CTRL-C If you go edit .node-red/context/global/flobal.jso…

---

_[View the full topic](https://discourse.nodered.org/t/error-on-stop-restart/178)._
