The execute command node runs indefinitely

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

(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

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?

@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

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

1 Like

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

Samuel

@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.

Additionally im running ubuntu 24.04 and docker engine 28.3.3 now.

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