# The execute command node runs indefinitely

**URL:** <https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753>\
**Category:** Questions\
**Tags:** execute-command\
**Created:** [July 30, 2025, 2:13am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753 "2025-07-30T02:13:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![smalldude](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/smalldude/32/105183_2.png) [@smalldude](https://community.n8n.io/u/smalldude)\
**Post date:** [July 30, 2025, 2:13am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/1 "2025-07-30T02:13:40Z")

</div>

## Describe the problem/error/question

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

When I run this workflow, the execute command runs indefinitely. Does anyone know what the problem is and how I can fix it?

## Please share your workflow

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:** 1.102.4
- **Database (default: SQLite):** SQLite
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** npm
- **Operating system:** Windows 10

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [July 30, 2025, 6:26pm UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/2 "2025-07-30T18:26:38Z")

</div>

It could be that you are using multiple commands (using `&&` to string them together). The CLI execution environment (i.e. nodejs emulated shell environment) might not support that, but it should support running a single script (.bat, .cmd) that strings all of those individual commands together for you. Have you tried that?

---

<div class="post-metadata">

**Author:** ![King\_Samuel\_David](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/king_samuel_david/32/83690_2.png) [@King\_Samuel\_David](https://community.n8n.io/u/King_Samuel_David)\
**Post date:** [July 30, 2025, 6:37pm UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/3 "2025-07-30T18:37:07Z")

</div>

@smalldude I would recommend using dockers with n8n, people have strange issues when using npm with env vars etc, but using && should work, but it seems the last command is

&& {{ $json.videoid }}

Which seems maybe just hanging, what the actual value of && {{ $json.videoid }} in the flow?

Have you tried running this just in a normal terminal?

I would test with just cd, soo what location it’s all being executed in, to see if the CD into folder is going right place. Also because the py runs in the middle, it could be erroring but not catching because of the last command.

Maybe try seperate execute command nodes to isolate issues should help fix it.

Samuel

---

<div class="post-metadata">

**Author:** ![smalldude](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/smalldude/32/105183_2.png) [@smalldude](https://community.n8n.io/u/smalldude)\
**Post date:** [July 31, 2025, 3:06am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/4 "2025-07-31T03:06:05Z")

</div>

Most of the solutions that you have mentioned trying I have already tried, except running the instance in docker.

I also can’t separate the command into different execute nodes because the cd command isn’t saved across nodes so I would have to rerun it in each node. This I have also tried and still doesn’t work.

I’ll see if running it in docker fixes my problem

---

<div class="post-metadata">

**Author:** ![King\_Samuel\_David](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/king_samuel_david/32/83690_2.png) [@King\_Samuel\_David](https://community.n8n.io/u/King_Samuel_David)\
**Post date:** [July 31, 2025, 11:27am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/5 "2025-07-31T11:27:02Z")

</div>

@smalldude Sure and happy to help furthr if needed, just ping me by tagging 🙂

Samuel

---

<div class="post-metadata">

**Author:** ![smalldude](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/smalldude/32/105183_2.png) [@smalldude](https://community.n8n.io/u/smalldude)\
**Post date:** [August 17, 2025, 1:07am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/6 "2025-08-17T01:07:51Z")

</div>

@King_Samuel_David I reinstalled n8n in docker (finally) but the execute command node still runs indefinitely. Is there anything else that I haven’t tried? Also to answer your question, the "{videoid} field is just a string for the video id for a youtube video. Essentially the execute command node runs a python script located in the container that asks for input (The videoid) and spits out the transcript for that youtube video.

---

<div class="post-metadata">

**Author:** ![smalldude](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/smalldude/32/105183_2.png) [@smalldude](https://community.n8n.io/u/smalldude)\
**Post date:** [August 17, 2025, 1:09am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/7 "2025-08-17T01:09:20Z")

</div>

Additionally im running ubuntu 24.04 and docker engine 28.3.3 now.

---

<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:** [November 15, 2025, 1:09am UTC](https://community.n8n.io/t/the-execute-command-node-runs-indefinitely/158753/8 "2025-11-15T01:09:25Z")

</div>

Closed on November 15, 2025, 1:09am UTC

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