Why Does a Task Fail on an Ubuntu Host After Being Successfully Run on a CentOS Host?
Symptoms
The following log information is displayed.
Cause Analysis
By default, CentOS uses bash and Ubuntu OS uses dash. Bash and dash are incompatible with each other. In CodeArts Deploy, the default script generated can only run on a host that uses bash. Therefore, an error will be reported if the script is run on an Ubuntu host.
Solution
Log in to the target host, run the sudo dpkg-reconfigure dash command, and select no to switch the shell of the Ubuntu OS to bash.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot