# Node red keep restarting

**URL:** <https://discourse.nodered.org/t/node-red-keep-restarting/3419>\
**Category:** General\
**Created:** [24 September 2018 20:57 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419 "2018-09-24T20:57:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshaz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mshaz/32/2294_2.png) [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Post date:** [24 September 2018 20:57 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419/1 "2018-09-24T20:57:00Z")

</div>

hi

My node-red keep restarting and i can't open it to copy all the flows. Is there a way to get the flows from terminal.

Thank you.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 September 2018 20:58 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419/2 "2018-09-24T20:58:57Z")

</div>

Yes, please read the docs to understand where everything is.

If you want some help though, you should start by sharing what platform you are on, what versions of your OS, Node.JS, npm and Node-RED you are using and share any errors seen in the Node-RED log.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [25 September 2018 02:19 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419/3 "2018-09-25T02:19:26Z")

</div>

I had the same issue of NR kept restarting. This happened after an upgrade of a remote component causing the NR flow to fail.

1. log into NR via SSH
2. Stop NR (Node-red-stop)
3. go to the user folder (cd ~/.node-red)
4. there should be a file with your flows in this folder (e.g. nodered\_flows.json)
5. edit the file (e.g. nano nodered\_flows.json)
6. search for enabled .. this will show you the enabled flows and tabs
7. if you know what flow or tab is failing than set "enabled : false" ... alternatively you can "enable:false" all your tabs
8. save the modification
9. restart NR (node-red-start)

Now you NR should start again. If you have disabled all your tabs than none of your flows will be executed and you can enabled them individually.

The above steps helped me now several times whenever I had a flow causing NR to permanently restart. I hope it helps you too.

---

<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:** [25 September 2018 10:43 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419/4 "2018-09-25T10:43:33Z")

</div>

> [@xx\_Nexus\_xx](#):
>
> - search for enabled .. this will show you the enabled flows and tabs
> - if you know what flow or tab is failing than set "enabled : false" ... alternatively you can "enable:false" all your tabs

actually it's `"disabled": true,` or `"disabled": false,`

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [26 September 2018 23:52 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419/5 "2018-09-26T23:52:42Z")

</div>

Yes, that's correct... thanks for the update
