version : OFFICIAL_1.6.0-49
ec2 : amazon linux , t2micro
Sometimes not 100% downloading file from s3.
------------- Log when error
Downloading artifact bundle from bucket 'cicd-github-s3' and key 'abc.zip', version '', etag ''
2023-09-14T13:50:48 INFO [codedeploy-agent(2084)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.6.0-49_rpm.
2023-09-14T13:56:54 INFO [codedeploy-agent(2084)]: [Aws::CodeDeployCommand::Client 200 357.607912 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:ap-northeast-2:920425076442:instance/i-0aacf45a0be4d5739")
2023-09-14T13:57:10 INFO [codedeploy-agent(2084)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.6.0-49_rpm.
2023-09-14T14:10:42 INFO [codedeploy-agent(2077)]: master 2077: Spawned child 1/1
2023-09-14T14:10:43 INFO [codedeploy-agent(2077)]: Started master 2077 with 1 children
2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: On Premises config file does not exist or not readable
2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: CodeDeploy endpoint: https://codedeploy-commands.ap-northeast-2.amazonaws.com
2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5}
2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: CodeDeploy endpoint: https://codedeploy-commands.ap-northeast-2.amazonaws.com
2023-09-14T14:10:46 INFO [codedeploy-agent(2082)]: CodeDeploy endpoint: https://codedeploy-commands.ap-northeast-2.amazonaws.com
2023-09-14T14:10:46 WARN [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Deployment tracking file found: /opt/codedeploy-agent/deployment-root/ongoing-deployment. The agent likely restarted while running a customer-supplied script. Failing the lifecycle event.
Below is not problem log
2023-09-14T14:17:08 INFO [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Downloading artifact bundle from bucket 'cicd-github-s3' and key 'abc.zip', version '', etag ''
2023-09-14T14:17:08 INFO [codedeploy-agent(2082)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.6.0-49_rpm.
2023-09-14T14:17:14 INFO [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Download complete from bucket cicd-github-s3 and key abc.zip
version : OFFICIAL_1.6.0-49 ec2 : amazon linux , t2micro
Sometimes not 100% downloading file from s3.
------------- Log when error Downloading artifact bundle from bucket 'cicd-github-s3' and key 'abc.zip', version '', etag '' 2023-09-14T13:50:48 INFO [codedeploy-agent(2084)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.6.0-49_rpm. 2023-09-14T13:56:54 INFO [codedeploy-agent(2084)]: [Aws::CodeDeployCommand::Client 200 357.607912 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:ap-northeast-2:920425076442:instance/i-0aacf45a0be4d5739") 2023-09-14T13:57:10 INFO [codedeploy-agent(2084)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.6.0-49_rpm. 2023-09-14T14:10:42 INFO [codedeploy-agent(2077)]: master 2077: Spawned child 1/1 2023-09-14T14:10:43 INFO [codedeploy-agent(2077)]: Started master 2077 with 1 children 2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: On Premises config file does not exist or not readable 2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: CodeDeploy endpoint: https://codedeploy-commands.ap-northeast-2.amazonaws.com 2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5} 2023-09-14T14:10:45 INFO [codedeploy-agent(2082)]: CodeDeploy endpoint: https://codedeploy-commands.ap-northeast-2.amazonaws.com 2023-09-14T14:10:46 INFO [codedeploy-agent(2082)]: CodeDeploy endpoint: https://codedeploy-commands.ap-northeast-2.amazonaws.com 2023-09-14T14:10:46 WARN [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Deployment tracking file found: /opt/codedeploy-agent/deployment-root/ongoing-deployment. The agent likely restarted while running a customer-supplied script. Failing the lifecycle event.
Below is not problem log
2023-09-14T14:17:08 INFO [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Downloading artifact bundle from bucket 'cicd-github-s3' and key 'abc.zip', version '', etag '' 2023-09-14T14:17:08 INFO [codedeploy-agent(2082)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.6.0-49_rpm. 2023-09-14T14:17:14 INFO [codedeploy-agent(2082)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Download complete from bucket cicd-github-s3 and key abc.zip
Why not complete downloading from s3 bundle file.