我在将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