# Getting error COMMAND FAILED

**URL:** <https://community.n8n.io/t/getting-error-command-failed/25392>\
**Category:** Questions\
**Tags:** execute-command\
**Created:** [April 19, 2023, 8:31pm UTC](https://community.n8n.io/t/getting-error-command-failed/25392 "2023-04-19T20:31:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![martins](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/martins/32/50753_2.png) [@martins](https://community.n8n.io/u/martins)\
**Post date:** [April 19, 2023, 8:31pm UTC](https://community.n8n.io/t/getting-error-command-failed/25392/1 "2023-04-19T20:31:25Z")

</div>

## Describe the problem/error/question

I’m trying to automate a process, however I get an error “COMMAND FAILED” with no additional information on what is wrong with the command. OBS. None of the commands I try works, getting the same error.

Even though it works just fine directly on the terminal, both ZSH and BASH.

 ![console](https://europe1.discourse-cdn.com/n8n/original/3X/2/2/220035cb8931ff682b5f52f71948961291fef40f.png)

A simple Console Command PHP Symfony as LIST won’t work:

cd "/Users/rafaelmalheiros/Developer/apponteme-job-worker"; bin/console list

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

 ![errorsmple](https://europe1.discourse-cdn.com/n8n/original/3X/5/8/583e3d7ba1c84900c77958f88ad05aca145eba78.png)

- PROBLEM IN NODE “EXECUTE COMMAND” Command Failed

you can check more commands on

> <https://github.com/symfony/demo/blob/main/bin/console>

## Please share your workflow

```auto

```

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [April 20, 2023, 8:03am UTC](https://community.n8n.io/t/getting-error-command-failed/25392/2 "2023-04-20T08:03:35Z")

</div>

Hey @martins,

Welcome to the community 🙌

There is an error in the .env file in your terminal output, Not sure if that is going to cause any issues but it could be an unexpected output.

What happens if you try the cd then instead of `;` use `&&` and maybe try a quick ls as well. Using `;` will typically try the second command even if the first fails so it could be that for some reason the directory change isn’t happening.

---

<div class="post-metadata">

**Author:** ![martins](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/martins/32/50753_2.png) [@martins](https://community.n8n.io/u/martins)\
**Post date:** [April 24, 2023, 1:34pm UTC](https://community.n8n.io/t/getting-error-command-failed/25392/3 "2023-04-24T13:34:15Z")

</div>

Hi @Jon thx for the reply.

It looks like it was not an error, just an alert. I was able to solve the issue removing the “#” from the code command, it seems it was not being recognized in the script.

I appreciate the help and fast reply.

---

<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 23, 2023, 1:34pm UTC](https://community.n8n.io/t/getting-error-command-failed/25392/4 "2023-07-23T13:34:57Z")

</div>

Closed on July 23, 2023, 1:34pm UTC

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