CodeDeploy иногда дает сбой без каких-либо сообщений об ошибках.Разверните его снова и он работает нормально - PullRequest
0 голосов
/ 25 сентября 2019

Я использую CodeDeploy с CodePipeline уже довольно давно.Внезапно я вижу, что развертывание терпит неудачу время от времени.Если я запустлю развертывание снова без изменений, он будет работать нормально и пройдет.

Когда я смотрю на события жизненного цикла развертывания на панели инструментов AWS, они бесполезны, поскольку все они говорят мне следующее:

Оригинал имеет статус «Неизвестно» и при просмотре событийвы видите:

BeforeBlockTraffic      Unknown
BlockTraffic                Unknown
AfterBlockTraffic       Unknown

Замена имеет статус "Неудачно", и при просмотре событий она показывает, что все события были пропущены.

Журналы неудачных и пропущенных журналов приведены ниже..

Codebuild не дает никаких других указаний на то, почему он потерпел неудачу.

Где-нибудь еще, чтобы посмотреть журналы или подсказки, почему он потерпел неудачу?

Спасибо за любую помощь!

Вот содержимое журнала развертывания кода (/var/log/aws/codedeploy-agent/codedeploy-agent.log) из экземпляра, запущенного из неудачного развертывания:

2019-09-25 13:08:15 INFO  [codedeploy-agent(2061)]: master 2061: Spawned child 1/1
2019-09-25 13:08:16 INFO  [codedeploy-agent(2065)]: On Premises config file does not exist or not readable
2019-09-25 13:08:16 INFO  [codedeploy-agent(2065)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5}
2019-09-25 13:08:16 INFO  [codedeploy-agent(2065)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:08:16 INFO  [codedeploy-agent(2061)]: Started master 2061 with 1 children
2019-09-25 13:09:16 INFO  [codedeploy-agent(2065)]: [Aws::CodeDeployCommand::Client 200 60.122422 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0dad6d3fcdf0xxxx")

2019-09-25 13:09:17 INFO  [codedeploy-agent(2065)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:10:18 INFO  [codedeploy-agent(2065)]: [Aws::CodeDeployCommand::Client 200 61.02391 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0dad6d3fcdf0xxxx")

2019-09-25 13:10:19 INFO  [codedeploy-agent(2065)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:11:19 INFO  [codedeploy-agent(2065)]: [Aws::CodeDeployCommand::Client 200 60.071791 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0dad6d3fcdf0xxxx")

2019-09-25 13:11:20 INFO  [codedeploy-agent(2065)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:12:20 INFO  [codedeploy-agent(2065)]: [Aws::CodeDeployCommand::Client 200 60.045927 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0dad6d3fcdf0xxxx")

2019-09-25 13:12:21 INFO  [codedeploy-agent(2065)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:13:22 INFO  [codedeploy-agent(2065)]: [Aws::CodeDeployCommand::Client 200 60.551739 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0dad6d3fcdf0xxxx")

2019-09-25 13:13:23 INFO  [codedeploy-agent(2065)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:14:23 INFO  [codedeploy-agent(2065)]: [Aws::CodeDeployCommand::Client 200 60.627054 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0dad6d3fcdf0xxxx")

"/var/log/aws/codedeploy-agent/codedeploy-agent.log" [readonly] 38L, 4545C

Вот журнал успешного развертывания, который был запущен в той же настройке сразу после неудачного развертывания:

2019-09-25 13:20:17 INFO  [codedeploy-agent(2036)]: master 2036: Spawned child 1/1
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: On Premises config file does not exist or not readable
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5}
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.074098 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.028728 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkFwcGxpY2F0aW9uU3RvcCIsImNvbW1hbmRQb3NpdGlvbiI6MSwiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.015252 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:17 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.014355 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkFwcGxpY2F0aW9uU3RvcCIsImNvbW1hbmRQb3NpdGlvbiI6MSwiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:20:18 INFO  [codedeploy-agent(2036)]: Started master 2036 with 1 children
2019-09-25 13:20:18 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:18 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.045746 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:18 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:18 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.025593 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkRvd25sb2FkQnVuZGxlIiwiY29tbWFuZFBvc2l0aW9uIjoyLCJjb21tYW5kQXR0ZW1wdCI6MX1d")

2019-09-25 13:20:18 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:18 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.024258 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:19 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:38 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:38 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.056778 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkRvd25sb2FkQnVuZGxlIiwiY29tbWFuZFBvc2l0aW9uIjoyLCJjb21tYW5kQXR0ZW1wdCI6MX1d")

2019-09-25 13:20:38 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 19.272478 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:38 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:38 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.172167 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkJlZm9yZUluc3RhbGwiLCJjb21tYW5kUG9zaXRpb24iOjMsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:20:38 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.199375 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:39 WARN  [codedeploy-agent(2040)]: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: /aws/scripts/before_install.sh is not executable.  Trying to make it executable.
2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.018422 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkJlZm9yZUluc3RhbGwiLCJjb21tYW5kUG9zaXRpb24iOjMsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.084844 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.031777 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6Ikluc3RhbGwiLCJjb21tYW5kUG9zaXRpb24iOjQsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:39 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.01897 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:40 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.026985 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6Ikluc3RhbGwiLCJjb21tYW5kUG9zaXRpb24iOjQsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 13.004045 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.041782 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkFmdGVySW5zdGFsbCIsImNvbW1hbmRQb3NpdGlvbiI6NSwiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:53 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.01711 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:53 WARN  [codedeploy-agent(2040)]: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: /aws/scripts/after_install.sh is not executable.  Trying to make it executable.
2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.017418 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkFmdGVySW5zdGFsbCIsImNvbW1hbmRQb3NpdGlvbiI6NSwiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.051494 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.026478 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkFwcGxpY2F0aW9uU3RhcnQiLCJjb21tYW5kUG9zaXRpb24iOjYsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:54 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.016735 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:54 WARN  [codedeploy-agent(2040)]: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: /aws/scripts/application_start.sh is not executable.  Trying to make it executable.
2019-09-25 13:20:55 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.024182 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IkFwcGxpY2F0aW9uU3RhcnQiLCJjb21tYW5kUG9zaXRpb24iOjYsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.905537 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.029999 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IlZhbGlkYXRlU2VydmljZSIsImNvbW1hbmRQb3NpdGlvbiI6NywiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.026361 0 retries] get_deployment_specification(deployment_execution_id:"CodeDeploy/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Revision",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:20:56 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.015475 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiQ29kZURlcGxveS91cy1lYXN0LTIvUHJvZC9hcm46YXdzOnNkczp1cy1lYXN0LTI6NDk5MDAwODgxOTM2OmRlcGxveW1lbnQvZC1JVFlZUEM4T05fUmV2aXNpb24iLCJob3N0SWQiOiJhcm46YXdzOmVjMjp1cy1lYXN0LTI6NDk5MDAwODgxOTM2Omluc3RhbmNlL2ktMDQ5N2MyZTg4MDYyZjgxNjEiLCJjb21tYW5kTmFtZSI6IlZhbGlkYXRlU2VydmljZSIsImNvbW1hbmRQb3NpdGlvbiI6NywiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:20:57 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:21:01 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 4.050164 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:21:01 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:21:02 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.046346 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiRmxpcERlcGxveW1lbnRNYW5hZ2VyL3VzLWVhc3QtMi9Qcm9kL2Fybjphd3M6c2RzOnVzLWVhc3QtMjo0OTkwMDA4ODE5MzY6ZGVwbG95bWVudC9kLUlUWVlQQzhPTl9GbGlwLUdyZWVuIiwiaG9zdElkIjoiYXJuOmF3czplYzI6dXMtZWFzdC0yOjQ5OTAwMDg4MTkzNjppbnN0YW5jZS9pLTA0OTdjMmU4ODA2MmY4MTYxIiwiY29tbWFuZE5hbWUiOiJCZWZvcmVBbGxvd1RyYWZmaWMiLCJjb21tYW5kUG9zaXRpb24iOjEsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:21:02 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:21:02 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.030583 0 retries] get_deployment_specification(deployment_execution_id:"FlipDeploymentManager/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Flip-Green",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:21:02 WARN  [codedeploy-agent(2040)]: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: /aws/scripts/before_allow_traffic.sh is not executable.  Trying to make it executable.
2019-09-25 13:21:02 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:21:02 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.026595 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiRmxpcERlcGxveW1lbnRNYW5hZ2VyL3VzLWVhc3QtMi9Qcm9kL2Fybjphd3M6c2RzOnVzLWVhc3QtMjo0OTkwMDA4ODE5MzY6ZGVwbG95bWVudC9kLUlUWVlQQzhPTl9GbGlwLUdyZWVuIiwiaG9zdElkIjoiYXJuOmF3czplYzI6dXMtZWFzdC0yOjQ5OTAwMDg4MTkzNjppbnN0YW5jZS9pLTA0OTdjMmU4ODA2MmY4MTYxIiwiY29tbWFuZE5hbWUiOiJCZWZvcmVBbGxvd1RyYWZmaWMiLCJjb21tYW5kUG9zaXRpb24iOjEsImNvbW1hbmRBdHRlbXB0IjoxfV0=")

2019-09-25 13:21:02 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:22:04 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 61.159342 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")



2019-09-25 13:23:34 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:23:34 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.105599 0 retries] put_host_command_acknowledgement(diagnostics:nil,host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiRmxpcERlcGxveW1lbnRNYW5hZ2VyL3VzLWVhc3QtMi9Qcm9kL2Fybjphd3M6c2RzOnVzLWVhc3QtMjo0OTkwMDA4ODE5MzY6ZGVwbG95bWVudC9kLUlUWVlQQzhPTl9GbGlwLUdyZWVuIiwiaG9zdElkIjoiYXJuOmF3czplYzI6dXMtZWFzdC0yOjQ5OTAwMDg4MTkzNjppbnN0YW5jZS9pLTA0OTdjMmU4ODA2MmY4MTYxIiwiY29tbWFuZE5hbWUiOiJBZnRlckFsbG93VHJhZmZpYyIsImNvbW1hbmRQb3NpdGlvbiI6MywiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:23:34 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:23:34 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.038098 0 retries] get_deployment_specification(deployment_execution_id:"FlipDeploymentManager/us-east-2/Prod/arn:aws:sds:us-east-2:4900xxxxxxxx:deployment/d-ITYYPC8ON_Flip-Green",host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")

2019-09-25 13:23:34 WARN  [codedeploy-agent(2040)]: InstanceAgent::Plugins::CodeDeployPlugin::HookExecutor: Script at specified location: /aws/scripts/after_allow_traffic.sh is not executable.  Trying to make it executable.
2019-09-25 13:23:35 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:23:36 INFO  [codedeploy-agent(2040)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2019-09-25 13:23:36 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 0.047799 0 retries] put_host_command_complete(command_status:"Succeeded",diagnostics:{format:"JSON",payload:"{\"error_code\":0,\"script_name\":\"\",\"message\":\"Succeeded\",\"log\":\"\"}"},host_command_identifier:"WyJjb20uYW1hem9uLmFwb2xsby5kZXBsb3ljb250cm9sLmRvbWFpbi5Ib3N0Q29tbWFuZElkZW50aWZpZXIiLHsiZGVwbG95bWVudElkIjoiRmxpcERlcGxveW1lbnRNYW5hZ2VyL3VzLWVhc3QtMi9Qcm9kL2Fybjphd3M6c2RzOnVzLWVhc3QtMjo0OTkwMDA4ODE5MzY6ZGVwbG95bWVudC9kLUlUWVlQQzhPTl9GbGlwLUdyZWVuIiwiaG9zdElkIjoiYXJuOmF3czplYzI6dXMtZWFzdC0yOjQ5OTAwMDg4MTkzNjppbnN0YW5jZS9pLTA0OTdjMmU4ODA2MmY4MTYxIiwiY29tbWFuZE5hbWUiOiJBZnRlckFsbG93VHJhZmZpYyIsImNvbW1hbmRQb3NpdGlvbiI6MywiY29tbWFuZEF0dGVtcHQiOjF9XQ==")

2019-09-25 13:24:36 INFO  [codedeploy-agent(2040)]: [Aws::CodeDeployCommand::Client 200 60.278552 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-2:4900xxxxxxxx:instance/i-0497c2e88062fxxxx")
...