指定位置的脚本:以root用户身份运行的scripts / stop_server.sh失败,退出代码为126

时间:2019-05-21 08:47:44

标签: amazon-web-services pipeline aws-code-deploy aws-codepipeline

我在将AWS Codepipeline与AWS Code Deployment一起使用时,在部署过程中遇到错误。

Error code: ScriptFailed
Script name: scripts/stop_server.sh
Message: Script at specified location: scripts/stop_server.sh run as user root failed with exit code 126

日志:

LifecycleEvent - ApplicationStop
Script - scripts/stop_server.sh
[stderr]bash: /opt/codedeploy-agent/deployment-root/50b0321b-9518-42bf-bdf5-6dfde87c2c04/d-HPNVZMNRZ/deployment-archive/scripts/stop_server.sh: /bin/bash^M: bad interpreter: No such file or directory

0 个答案:

没有答案