# Node Red application keeps quitting

**URL:** <https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112>\
**Category:** General\
**Created:** [28 February 2022 11:52 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112 "2022-02-28T11:52:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![EuroNiceguy](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@EuroNiceguy](https://discourse.nodered.org/u/EuroNiceguy)\
**Post date:** [28 February 2022 11:52 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/1 "2022-02-28T11:52:43Z")

</div>

Hello Everyone,

I have installed Node Red into our Oracle Linux (Red Hat based) instance and after a while, the browser just updates and comes up "Safari cannot connect to server"

I have to go back into the instance and type the command node-red-start.

Is there a setting where Node Red can continue running without having to type the command?

Thank you in advance,  
Michael

---

<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:** [28 February 2022 11:54 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/2 "2022-02-28T11:54:31Z")

</div>

> [@EuroNiceguy](#):
>
> Is there a setting where Node Red can continue running without having to type the command?

On Linux, you would typically set node-red as a service (search net for setting up a service on Oracle Linux (Red Hat)

As for why it is stopping, what does the log say?

---

<div class="post-metadata">

**Author:** ![EuroNiceguy](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@EuroNiceguy](https://discourse.nodered.org/u/EuroNiceguy)\
**Post date:** [28 February 2022 11:56 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/3 "2022-02-28T11:56:31Z")

</div>

I can't find the log.

I am assuming it would be a timeout after inactivity...

---

<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:** [28 February 2022 11:59 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/4 "2022-02-28T11:59:17Z")

</div>

> [@EuroNiceguy](#):
>
> I am assuming it would be a timeout after inactivity...

You know what they say about assume 😉

No, node-red does NOT simply stop after a period of inactivity. It stops when told to OR your code crashes it.

Check the syslog of your server running node-red.

---

<div class="post-metadata">

**Author:** ![EuroNiceguy](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@EuroNiceguy](https://discourse.nodered.org/u/EuroNiceguy)\
**Post date:** [28 February 2022 12:07 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/5 "2022-02-28T12:07:36Z")

</div>

my apologies for the assumption.

I am getting back on track to get this 4 year long project to completion, and I am nervous at the same time as looking forward to getting this finalised.

I have emailed our Oracle Cloud contact to advise of this. Hopefully they will provide the answer.

There is no code in Node Red right now..

---

<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:** [28 February 2022 12:13 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/6 "2022-02-28T12:13:56Z")

</div>

Does the command `node-red-log` work for you? If it shows the log then leave it open and see what happens.

---

<div class="post-metadata">

**Author:** ![EuroNiceguy](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@EuroNiceguy](https://discourse.nodered.org/u/EuroNiceguy)\
**Post date:** [28 February 2022 12:18 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/7 "2022-02-28T12:18:47Z")

</div>

Hello Colin,  
Thank you for this,

I will keep it active and hopefully I will be able to catch it when it occurs.

---

<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:** [28 February 2022 12:20 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/8 "2022-02-28T12:20:03Z")

</div>

Wait, are you opening a terminal & starting node-red via the command `node-red`?

Then are you closing that terminal?

If so, you are ending the session when you quit the terminal & need to run node-red as a service.

---

<div class="post-metadata">

**Author:** ![EuroNiceguy](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@EuroNiceguy](https://discourse.nodered.org/u/EuroNiceguy)\
**Post date:** [28 February 2022 12:21 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/9 "2022-02-28T12:21:09Z")

</div>

That makes sense.  
When I time out of Oracle Cloud or when I log out of Oracle Cloud, that is when it occurs.

---

<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:** [28 February 2022 13:19 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/10 "2022-02-28T13:19:08Z")

</div>

You must setup node-red to run as a service. How you do that on oracle cloud I don't know, but presumably their docs will help you out.

---

<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:** [29 April 2022 13:19 UTC](https://discourse.nodered.org/t/node-red-application-keeps-quitting/59112/11 "2022-04-29T13:19:30Z")

</div>

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