# Endless node execution

**URL:** <https://community.n8n.io/t/endless-node-execution/24771>\
**Category:** Questions\
**Tags:** core, nextcloud, out-of-memory\
**Created:** [April 3, 2023, 8:27am UTC](https://community.n8n.io/t/endless-node-execution/24771 "2023-04-03T08:27:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadsergius](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sadsergius/32/22263_2.png) [@sadsergius](https://community.n8n.io/u/sadsergius)\
**Post date:** [April 3, 2023, 8:27am UTC](https://community.n8n.io/t/endless-node-execution/24771/1 "2023-04-03T08:27:17Z")

</div>

## 

I start the process everything goes well. However, the last node runs endlessly. If I remove it, then the previous node will start to run endlessly. With a manual stop, everything is fine and despite the fact that the node wasn’t executed in n8n, the files were loaded where they should be. When a process is moved to the active state, the process runs indefinitely, and then the docker crashes and the entire n8n needs to be restarted.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/8/586d57350f3fc98bce09b9a5e75ed3aad583a892.png)

## What is the error message (if any)?

No

## Information on your n8n setup

- **n8n version:** 0.222.0
- **Running n8n via [Docker]:**

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [April 5, 2023, 11:10am UTC](https://community.n8n.io/t/endless-node-execution/24771/2 "2023-04-05T11:10:17Z")

</div>

Hi @sadsergius, I am sorry you are having trouble.

> the process runs indefinitely, and then the docker crashes and the entire n8n needs to be restarted.

Can you confirm the exact error/console output n8n crashes with? Could this possibly be a memory problem (where the workflow execution requires more memory than available to your n8n instance)? If so, and seeing you are processing binary files, a first step in avoiding these could be to set the `N8N_DEFAULT_BINARY_DATA_MODE` [environment variable](https://docs.n8n.io/hosting/environment-variables/environment-variables/#binary-data) to `filesystem`.

---

<div class="post-metadata">

**Author:** ![sadsergius](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sadsergius/32/22263_2.png) [@sadsergius](https://community.n8n.io/u/sadsergius)\
**Post date:** [April 7, 2023, 12:13pm UTC](https://community.n8n.io/t/endless-node-execution/24771/3 "2023-04-07T12:13:03Z")

</div>

Thank you for your answer

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [April 12, 2023, 1:18pm UTC](https://community.n8n.io/t/endless-node-execution/24771/4 "2023-04-12T13:18:09Z")

</div>

Thank you so much for confirming @sadsergius. Sounds like you are simply processing too much data as suspected in my last post.

If the aforementionted environment variable doesn’t resolve the problem for you, you might want to take a look at [Memory-related errors - n8n Documentation](https://docs.n8n.io/flow-logic/error-handling/memory-errors/) for more approaches to dealing with such issues.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 11, 2023, 1:18pm UTC](https://community.n8n.io/t/endless-node-execution/24771/5 "2023-07-11T13:18:40Z")

</div>

Closed on July 11, 2023, 1:18pm UTC

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