Unable to retrieve data when running execute command
-
I'm trying to run the following command
whois google.com
on the execute command node, but it fails and says thatERROR: Command failed: whois google.com /bin/sh: 1: whois: not found
I have whois package already installed on the server.
https://community.n8n.io/t/workflow-for-domain-expiry-notification/7834
-
Hey @alwynispat
Maybe you should use the SSH node instead of the Execute Command node. From what I understand the Whois package is installed on the server, so to run it you will have to call it via ssh command.
The Execute Command node executes commands inside the cloudron n8n container, which by default will run in the /app/code path of your n8n container.
That is the reason why it does not find the Whois package when running the Execute Command node.