# Node-RED Stopped Running but not Crashed

**URL:** <https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180>\
**Category:** General\
**Created:** [21 May 2025 06:37 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180 "2025-05-21T06:37:09Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2025 07:50 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/22 "2025-05-23T07:50:48Z")

</div>

I have seen this behaviour before. Where something you do (either place the cursor or scroll back in a terminal) can pause the process.

The better solution is to run node-red as a service where you don't interact with the terminal. For logging purposes, something like NSSM can be used as a service runner. It can be set to redirect log output and errors to a file which you can follow and inspect at your leisure.

---

<div class="post-metadata">

**Author:** ![ajisindhu9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajisindhu9/32/100908_2.png) [@ajisindhu9](https://discourse.nodered.org/u/ajisindhu9)\
**Post date:** [23 May 2025 07:53 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/23 "2025-05-23T07:53:45Z")

</div>

thank you, I will try to either run as service or by PM2 as sugested above,

---

<div class="post-metadata">

**Author:** ![ajisindhu9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajisindhu9/32/100908_2.png) [@ajisindhu9](https://discourse.nodered.org/u/ajisindhu9)\
**Post date:** [23 May 2025 09:31 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/24 "2025-05-23T09:31:45Z")

</div>

so I learn the nssm and able to run it in my dev pc, but now the problem is that my original node.js is really low that no node-red can run, I can not upgrade it because there is another app that use that node.js (v16.13.2), so I use virtual environment (python and then nodeenv if I am not wrong) to run node red on production server, so in my condition, can I still use nssm ?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [23 May 2025 09:49 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/25 "2025-05-23T09:49:35Z")

</div>

My background as a Linux developer surely influences my opinion but I find running Node-red on Windows ridiculously difficult. Trying to use the oxymoronic "Non Sucking Service Manager" to make Node-red start up was the final straw for me.

I suggest you run Node-red on a Linux server. It does not need to be very powerful, an old miniPC or a Raspberry Pi should be sufficient, or a web based virtual server. Remember Node-red has a web based interface and you can access it with a browser from any PC on your network, regardless of where it is hosted.

---

<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:** [23 May 2025 12:01 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/26 "2025-05-23T12:01:57Z")

</div>

> [@Steve-Mcl](#):
>
> The better solution is to run node-red as a service where you don't interact with the terminal. For logging purposes, something like NSSM can be used as a service runner. It can be set to redirect log output and errors to a file which you can follow and inspect at your leisure.

The better solution for production use on Windows Server is to use iisnode as I already explained.

NSSM or PM2 are fine for development or on a workstation for casual use.

> [@ajisindhu9](#):
>
> will try to either run as service or by PM2 as sugested above,

I would recommend that you don't, please look at iisnode. This is what Microsoft use for running Node.js microservices on Azure, it works fine on your own servers too. In fact, it looks like Microsoft themselves took over the library.

> [@ajisindhu9](#):
>
> but now the problem is that my original node.js is really low that no node-red can run, I can not upgrade it because there is another app that use that node.js (v16.13.2), so I use virtual environment (python and then nodeenv if I am not wrong) to run node red on production server, so in my condition, can I still use nssm ?

If you use iisnode, you should be able to avoid any other changes.

> [@jbudd](#):
>
> Trying to use the oxymoronic "Non Sucking Service Manager" to make Node-red start up was the final straw for me.

Completely. It isn't actually harder to do on Windows but, as I suggested, using NSSM is not the right tool for a production server.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2025 12:11 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/27 "2025-05-23T12:11:45Z")

</div>

There is nothing inherently wrong with any of the solutions. If you like complexity and all the moving pieces of iis, go for iisnode but note, it is no longer under active development.

I was suitably annoyed by iis to move away from iis/iisnode (it's awful)

Fortunately I no longer maintain windows servers.

If you take anything away from this thread, it should be that Linux is the better os for running node services.

---

<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:** [23 May 2025 13:38 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/28 "2025-05-23T13:38:23Z")

</div>

> [@Steve-Mcl](#):
>
> iisnode but note, it is no longer under active development.

While it hasn't been updated in a while, I'm not sure it needs it? It still seems to be Microsoft's preferred approach as far as I can tell.

There is some additional independent information here: [https://stackoverflow.com/a/57352751/1309986](https://stackoverflow.com/a/57352751/1309986) which also includes some other possible options.

> [@Steve-Mcl](#):
>
> I was suitably annoyed by iis to move away from iis/iisnode (it's awful)

Though, even as a Windows desktop adherent, I much prefer running Linux servers 😃 - I never found IIS that bad and never had any issues with iisnode (though I've mostly used it with Azure). I do like the AD/AAD integration though, it makes authentication soooo very easy.

> [@Steve-Mcl](#):
>
> If you take anything away from this thread, it should be that Linux is the better os for running node services.

Not denying that for sure. Also, a Linux server is almost certain to be more performant on the same tin.

---

<div class="post-metadata">

**Author:** ![ajisindhu9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajisindhu9/32/100908_2.png) [@ajisindhu9](https://discourse.nodered.org/u/ajisindhu9)\
**Post date:** [26 May 2025 03:30 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/29 "2025-05-26T03:30:57Z")

</div>

> [@TotallyInformation](#):
>
> I would recommend that you don't, please look at iisnode. This is what Microsoft use for running Node.js microservices on Azure, it works fine on your own servers too. In fact, it looks like Microsoft themselves took over the library.

I already tried those in my development server, will take a look for sure, thank you especially you mention this

> [@TotallyInformation](#):
>
> If you use iisnode, you should be able to avoid any other changes.

> [@Steve-Mcl](#):
>
> If you take anything away from this thread, it should be that Linux is the better os for running node services.

yes, I think atleast I should have another server that run on linux, not necessarily high end but atleast enough to run some services

---

<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:** [9 June 2025 03:31 UTC](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180/30 "2025-06-09T03:31:29Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/node-red-stopped-running-but-not-crashed/97180.md?page=1)
