Updated on 2023-05-26 GMT+08:00

Interactive Shell Commands Are Used

Symptoms

When a shell command that requires users to enter the next instruction is deployed, for example, yum install, cat ${filename}, or awk '{print $0}' ${filename}, the progress is stuck in deploying state until timeout occurs.

Cause Analysis

The shell command is remotely pushed to the target host for deployment and interactive operations are not allowed. If an interactive operation is required in the command, the host keeps waiting for subsequent input instructions until the deployment times out. In this case, the deployment fails and a message indicating deployment timeout is displayed.

Solution

When deploying the action Run Shell Commands, add subsequent operation instructions, for example, yum –y install, to the command in advance.

Running Shell Commands FAQs

more