AWS Code部署卡住,没有错误

时间:2018-01-08 23:02:12

标签: aws-code-deploy

AWS Code部署在成功完成之后陷入困境

如何解决此问题?

Event              Status   
ApplicationStop     Succeeded       
DownloadBundle      Succeeded       
BeforeInstall       Succeeded       
Install                   Succeeded     
AfterInstall                Pending     
ApplicationStart                Pending     
ValidateService             Pending

查看日志,

2018-01-08 23:05:53 WARN  [codedeploy-agent(13854)]: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: scripts/autoinstall.sh is not executable.  Trying to make it executable.
2018-01-08 23:05:53 INFO  [codedeploy-agent(2703)]: master 2703: Received CHLD - cleaning dead child process
2018-01-08 23:05:53 INFO  [codedeploy-agent(2703)]: master 2703: been told to replace child 13854
2018-01-08 23:05:53 INFO  [codedeploy-agent(2703)]: master 2703: not enough child processes running - missing at least 1 - respawning
2018-01-08 23:05:58 INFO  [codedeploy-agent(2703)]: master 2703: Spawned child 1/1
2018-01-08 23:05:58 INFO  [codedeploy-agent(14131)]: On Premises config file does not exist or not readable
2018-01-08 23:05:58 INFO  [codedeploy-agent(14131)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5}
2018-01-08 23:05:58 INFO  [codedeploy-agent(14131)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1352_rpm.

没有错误或任何令人担忧的事情

1 个答案:

答案 0 :(得分:0)

chmod +x scripts/autoinstall.sh

Codedeploy代理正在重新启动,因为它可能会卡住。尝试手动重新启动codedeploy代理。 sudo service codedeploy-agent restart

2018-01-08 23:05:53 WARN [codedeploy-agent(13854)]:InstanceAgent :: Plugins :: CodeDeployPlugin :: HookExecutor:指定位置的脚本:脚本/autoinstall.sh不可执行。试图使其可执行。