Execute Command node common issues#
Here are some common errors and issues with the Execute Command node and steps to resolve or troubleshoot them.
Command failed: <command> /bin/sh: <command>: not found#
This error occurs when the shell environment can't find one of the commands in the Command parameter.
To fix this error, review the following:
- Check that the command and its arguments don't have typos in the Command parameter.
- Check that the command is in the
PATHof the user running SMS-iT Workflow. - If you are running SMS-iT Workflow with Docker, check if the command is available within the container by trying to run it manually. If your command isn't included in the container, you might have to extend the official SMS-iT Workflow image with a custom image that includes your command.
- If SMS-iT Workflow is already running:
1 2 3 4
# Find SMS-iT Workflow's container ID, it will be the first column docker ps | grep SMS-iT Workflow # Try to execute the command within the running container docker container exec <container_ID> <command_to_run> - If SMS-iT Workflow isn't running:
1 2 3
# Start up a new container that runs the command instead of SMS-iT Workflow # Use the same image and tag that you use to run SMS-iT Workflow normally docker run -it --rm --entrypoint /bin/sh docker.SMS-iT Workflow.io/SMS-iT Workflowio/SMS-iT Workflow -c <command_to_run>
- If SMS-iT Workflow is already running:
Error: stdout maxBuffer length exceeded#
This error happens when your command returns more output than the Execute Command node is able to process at one time.
To avoid this error, reduce output your command produces. Check your command's manual page or documentation to see if there are flags to limit or filter output. If not, you may need to pipe the output to another command to remove unneeded info.