# Node red stopped working

**URL:** <https://discourse.nodered.org/t/node-red-stopped-working/84792>\
**Category:** General\
**Created:** [22 January 2024 11:06 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792 "2024-01-22T11:06:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [22 January 2024 11:06 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/1 "2024-01-22T11:06:14Z")

</div>

Hello, Node Red is shutting down while running. Resource consumption is normal. I couldn't detect any errors. I couldn't find the log records. I am using v3.1.3

---

<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:** [22 January 2024 11:08 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/2 "2024-01-22T11:08:22Z")

</div>

Hi, welcome to the forum.

Can you tell us the following:

- what procedure did you use to install node red?
- where is node red installed (docker? on a raspberry pi? windows computer? mac?)
- what version of NodeJs is installed?

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [22 January 2024 16:56 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/3 "2024-01-22T16:56:06Z")

</div>

@Steve-Mcl This has all the hallmarks of a flimflam valve problem 😉

---

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [6 February 2024 08:40 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/4 "2024-02-06T08:40:42Z")

</div>

Hello,

Sorry for the late response.

- I installed node redi via npm.
- installed on windows server 2012 R2
- Node.js version v16.15.1

I hope we can find a solution. When node-red closes, no log file is created and the cmd window closes.

---

<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:** [6 February 2024 09:05 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/5 "2024-02-06T09:05:46Z")

</div>

Windows console applications do not log to file (or anywhere) unlike Linux. So you need to do this yourself. How you do this depends on how you start Node-RED.

So, what starts node-red? A service? A start-up script? A scheduled task? Manually via a terminal? Manually via a shortcut?

And which account runs node-red? The same account as logged in or as a separate account (like a service account or reduced privileges account)?

---

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [6 February 2024 09:48 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/6 "2024-02-06T09:48:21Z")

</div>

I start it manually on the terminal, through CMD.

---

<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:** [6 February 2024 09:49 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/7 "2024-02-06T09:49:54Z")

</div>

In which case:

The terminal should remain open and you will see why it crashes.

If you want it logged to file, you need to redirect output to file.

See this: [Node-red Error Log File Location - #4 by Steve-Mcl](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/4)

---

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [29 March 2024 12:08 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/8 "2024-03-29T12:08:02Z")

</div>

hello, I still could not solve my problem. It stops for no reason. and Ram usage is increasing. waiting for your help.

---

<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:** [29 March 2024 13:01 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/9 "2024-03-29T13:01:37Z")

</div>

> [@bgultekin](#):
>
> waiting for your help

Waiting for logs!

Can't help if you don't provide required info.

---

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [1 April 2024 12:29 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/10 "2024-04-01T12:29:12Z")

</div>

Okay, I've attached the log. There was a crash at 15:14. Thank you.

[nodeRed Log.txt](https://discourse.nodered.org/uploads/short-url/4tHZfXFdFAHWtBn7qLRLMG4jIiK.txt) (113.6 KB)

---

<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:** [1 April 2024 12:50 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/11 "2024-04-01T12:50:11Z")

</div>

Did you look at the log? There is no evidence I can see that says node-red crashed. There are some errors in your function nodes.

```auto
1 Apr 15:14:01 - [error] [function:PulAyıklama_Mak1] TypeError: Cannot read properties of undefined (reading 'urunAdi')
1 Apr 15:14:01 - [error] [function:PulAyıklama_Mak3] TypeError: Cannot read properties of undefined (reading 'urunAdi')
1 Apr 15:14:01 - [error] [function:PulAyıklama_Mak5] TypeError: Cannot read properties of undefined (reading 'urunAdi')
1 Apr 15:14:01 - [error] [function:Makina1_Array_Buffer] TypeError: Cannot read properties of undefined (reading 'length')
1 Apr 15:14:01 - [error] [function:Makina2_Array_Buffer] TypeError: Cannot read properties of undefined (reading 'length')
1 Apr 15:14:01 - [error] [function:Makina3_Array_Buffer] TypeError: Cannot read properties of undefined (reading 'length')

```

I would start by addressing those issues in your function nodes.

---

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [4 April 2024 06:15 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/12 "2024-04-04T06:15:04Z")

</div>

Hello, can you also analyse this log? It looks like a memory error?

```auto
<--- Last few GCs --->

[8148:0000001BC06A17B0] 44712747 ms: Mark-sweep 1824.2 (2080.6) -> 1810.5 (2080.6) MB, 2712.8 / 0.0 ms (average mu = 0.195, current mu = 0.125) task; scavenge might not succeed
[8148:0000001BC06A17B0] 44714030 ms: Mark-sweep 1824.6 (2080.6) -> 1810.6 (2080.6) MB, 867.2 / 0.0 ms (average mu = 0.242, current mu = 0.324) task; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 00007FF6B7612BCF node_api_throw_syntax_error+175519
 2: 00007FF6B75983A6 DSA_meth_get_flags+64006
 3: 00007FF6B7599762 DSA_meth_get_flags+69058
 4: 00007FF6B803FDD4 v8::Isolate::ReportExternalAllocationLimitReached+116
 5: 00007FF6B802B132 v8::Isolate::Exit+674
 6: 00007FF6B7EACF8C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
 7: 00007FF6B7EBA26D v8::internal::Heap::PublishPendingAllocations+1117
 8: 00007FF6B7EB72F7 v8::internal::Heap::PageFlagsAreConsistent+3367
 9: 00007FF6B7EA9A27 v8::internal::Heap::CollectGarbage+2039
10: 00007FF6B7E50DC5 v8::internal::IndexGenerator::~IndexGenerator+22565
11: 00007FF6B752B913 v8::internal::interpreter::BytecodeArrayWriter::constant_array_builder+4835
12: 00007FF6B752A2B6 ?Build@?$CTypeInfoBuilder@X$S@v8@@SA?AVCTypeInfo@2@XZ+21718
13: 00007FF6B766E66B uv_update_time+491
14: 00007FF6B766E1B2 uv_run+1266
15: 00007FF6B7640895 node::SpinEventLoop+325
16: 00007FF6B754EE18 v8::internal::interpreter::BytecodeArrayWriter::constant_array_builder+149480
17: 00007FF6B75D4491 node::InitializeOncePerProcess+2897
18: 00007FF6B75D5C95 node::Start+821
19: 00007FF6B73D7E8C AES_cbc_encrypt+124092
20: 00007FF6B8635958 inflateValidate+18712
21: 00007FF8940913F2 BaseThreadInitThunk+34
22: 00007FF896145504 RtlUserThreadStart+52

```

---

<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:** [4 April 2024 08:02 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/13 "2024-04-04T08:02:21Z")

</div>

> [@bgultekin](#):
>
> looks like a memory error?

Yes, something is using lots of memory. First though address the earlier errors. They may not be related but they may be and are relatively simple to fix.

---

<div class="post-metadata">

**Author:** ![bgultekin](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bgultekin](https://discourse.nodered.org/u/bgultekin)\
**Post date:** [6 April 2024 21:10 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/14 "2024-04-06T21:10:17Z")

</div>

> [@Colin](#):
>
> Yes, something is using lots of memory. First though address the earlier errors. They may not be related but they may be and are relatively simple to fix.

So how should we follow a way to detect what uses this memory. In my project, data from 6 machines is transferred to sql. A single sql node (mssql-plus) is used. Data from 6 machines are kept in a separate array and deleted as they are sent. When I follow, there is not much accumulation in the array.

---

<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:** [7 April 2024 16:04 UTC](https://discourse.nodered.org/t/node-red-stopped-working/84792/15 "2024-04-07T16:04:18Z")

</div>

Show us what the startup log looks like now please. You can put the log level back to info.
