Skip to content

Instantly share code, notes, and snippets.

@lambrospetrou
Created January 29, 2022 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lambrospetrou/d97df81a985558cc224b80c7fa8294fc to your computer and use it in GitHub Desktop.
Save lambrospetrou/d97df81a985558cc224b80c7fa8294fc to your computer and use it in GitHub Desktop.
The Elastic Beanstalk eb-engine.log for the AL2 Docker platform during a simple Dockerfile deployment.
timestamp message
1643482975156 2022/01/29 19:02:55.012950 [INFO] Starting...
1643482975156 2022/01/29 19:02:55.013002 [INFO] Starting EBPlatform-PlatformEngine
1643482975156 2022/01/29 19:02:55.013018 [INFO] reading event message file
1643482975156 2022/01/29 19:02:55.013572 [INFO] no eb envtier info file found, skip loading env tier info.
1643482975156 2022/01/29 19:02:55.013765 [INFO] Engine received EB command cfn-hup-exec
1643482975910 2022/01/29 19:02:55.101565 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBAutoScalingGroup --region eu-west-1
1643482976410 2022/01/29 19:02:55.677999 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBBeanstalkMetadata --region eu-west-1
1643482976410 2022/01/29 19:02:56.245445 [INFO] checking whether command app-deploy is applicable to this instance...
1643482976410 2022/01/29 19:02:56.245456 [INFO] this command is applicable to the instance, thus instance should execute command
1643482976410 2022/01/29 19:02:56.245459 [INFO] Engine command: (app-deploy)
1643482976411 2022/01/29 19:02:56.245464 [INFO] Downloading EB Application...
1643482976411 2022/01/29 19:02:56.245467 [INFO] Region: eu-west-1
1643482976411 2022/01/29 19:02:56.245471 [INFO] envID: e-234tsz8zsf
1643482976411 2022/01/29 19:02:56.245474 [INFO] envBucket: elasticbeanstalk-eu-west-1-<redacted>
1643482976411 2022/01/29 19:02:56.245478 [INFO] Using manifest file name from command request
1643482976411 2022/01/29 19:02:56.245486 [INFO] Manifest name is : manifest_1643482972391
1643482976411 2022/01/29 19:02:56.245488 [INFO] Download app version manifest
1643482976411 2022/01/29 19:02:56.245591 [INFO] Downloading: bucket: elasticbeanstalk-eu-west-1-<redacted>, object: /resources/environments/e-234tsz8zsf/_runtime/versions/manifest_1643482972391
1643482976411 2022/01/29 19:02:56.280789 [INFO] Download successful95bytes downloaded
1643482976411 2022/01/29 19:02:56.280917 [INFO] Trying to read and parse version manifest...
1643482976411 2022/01/29 19:02:56.280976 [INFO] Downloading: bucket: elasticbeanstalk-eu-west-1-<redacted>, object: /resources/environments/e-234tsz8zsf/_runtime/_versions/test-al2/test-al2-source-23
1643482976411 2022/01/29 19:02:56.358004 [INFO] Download successful6448415bytes downloaded
1643482976411 2022/01/29 19:02:56.358181 [INFO] Executing instruction: ElectLeader
1643482976411 2022/01/29 19:02:56.358187 [INFO] Running leader election for instance i-02105f9287bdabaa0...
1643482976411 2022/01/29 19:02:56.358190 [INFO] Calling the cfn-elect-cmd-leader to elect the command leader.
1643482976911 2022/01/29 19:02:56.358203 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-elect-cmd-leader --stack arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 --command-name ElasticBeanstalkCommand-AWSEBAutoScalingGroup --invocation-id a2c3c7a4-67a1-45a2-af8c-0355e7a43bbb --listener-id i-02105f9287bdabaa0 --region eu-west-1
1643482976911 2022/01/29 19:02:56.662746 [INFO] Instance is Leader.
1643482976911 2022/01/29 19:02:56.662791 [INFO] Executing instruction: stopSqsd
1643482976911 2022/01/29 19:02:56.662796 [INFO] This is a web server environment instance, skip stop sqsd daemon ...
1643482976911 2022/01/29 19:02:56.662799 [INFO] Executing instruction: PreBuildEbExtension
1643482976911 2022/01/29 19:02:56.662802 [INFO] Starting executing the config set Infra-EmbeddedPreBuild.
1643482977161 2022/01/29 19:02:56.662822 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-init -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBAutoScalingGroup --region eu-west-1 --configsets Infra-EmbeddedPreBuild
1643482977161 2022/01/29 19:02:56.977228 [INFO] Finished executing the config set Infra-EmbeddedPreBuild.
1643482977161 2022/01/29 19:02:56.977247 [INFO] Executing instruction: StagedockerApplication
1643482977411 2022/01/29 19:02:56.977259 [INFO] Running command /bin/sh -c docker ps -a -q -f status=running
1643482977411 2022/01/29 19:02:57.319369 [INFO] 361855b7f4ca
1643482977411 2022/01/29 19:02:57.319410 [INFO] Running command /bin/sh -c docker images | sed 1d
1643482977411 2022/01/29 19:02:57.394846 [INFO] aws_beanstalk/current-app latest dd957e4c31b1 29 minutes ago 17.1MB
1643482977411 alpine 3.14 0a97eee8041e 2 months ago 5.61MB
1643482977411 2022/01/29 19:02:57.394872 [INFO] save docker tag command: docker tag dd957e4c31b1 aws_beanstalk/current-app:latest
1643482977411 2022/01/29 19:02:57.394876 [INFO] save docker tag command: docker tag 0a97eee8041e alpine:3.14
1643482977661 2022/01/29 19:02:57.394904 [INFO] Running command /bin/sh -c docker rm `docker ps -aq`
1643482977661 2022/01/29 19:02:57.495792 [INFO] Running command /bin/sh -c docker rmi `docker images -aq`
1643482977661 2022/01/29 19:02:57.572302 [INFO] restore docker image name with command: docker tag dd957e4c31b1 aws_beanstalk/current-app:latest
1643482977661 2022/01/29 19:02:57.572323 [INFO] Running command /bin/sh -c docker tag dd957e4c31b1 aws_beanstalk/current-app:latest
1643482977661 2022/01/29 19:02:57.616579 [INFO] restore docker image name with command: docker tag 0a97eee8041e alpine:3.14
1643482977661 2022/01/29 19:02:57.616598 [INFO] Running command /bin/sh -c docker tag 0a97eee8041e alpine:3.14
1643482977911 2022/01/29 19:02:57.660162 [INFO] Running command /bin/sh -c /bin/file -m /opt/elasticbeanstalk/config/private/beanstalk-magic -b --mime-type /opt/elasticbeanstalk/deployment/app_source_bundle
1643482977911 2022/01/29 19:02:57.668376 [INFO] application/zip
1643482977911 2022/01/29 19:02:57.668389 [INFO] app source bundle is zip file ...
1643482977911 2022/01/29 19:02:57.668393 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/
1643482977911 2022/01/29 19:02:57.668404 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/staging/
1643482977911 2022/01/29 19:02:57.774482 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully
1643482977911 2022/01/29 19:02:57.774509 [INFO] Executing instruction: RunAppDeployPreBuildHooks
1643482977911 2022/01/29 19:02:57.774540 [INFO] The dir .platform/hooks/prebuild/ does not exist in the application. Skipping this step...
1643482977911 2022/01/29 19:02:57.774543 [INFO] Executing instruction: Generate environment file
1643482977911 2022/01/29 19:02:57.774574 [INFO] Executing instruction: Docker Specific Build Application
1643482977911 2022/01/29 19:02:57.774580 [INFO] start build docker app
1643482977911 2022/01/29 19:02:57.774591 [INFO] fetch image name
1643482977911 2022/01/29 19:02:57.775394 [INFO] pull docker image if update is not false in Dockerrun.aws.json
1643482979162 2022/01/29 19:02:57.775412 [INFO] Running command /bin/sh -c docker pull alpine:3.14
1643482979162 2022/01/29 19:02:58.918521 [INFO] 3.14: Pulling from library/alpine
1643482979162 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2
1643482979162 Status: Image is up to date for alpine:3.14
1643482979162 docker.io/library/alpine:3.14
1643482979162 2022/01/29 19:02:58.919053 [INFO] successfully execute command: docker pull alpine:3.14
1643482979162 2022/01/29 19:02:58.919415 [INFO] successfully pulled docker image alpine:3.14
1643482979162 2022/01/29 19:02:58.919421 [INFO] start to build docker image
1643482979663 2022/01/29 19:02:58.919519 [INFO] Running command /bin/sh -c docker build -t aws_beanstalk/staging-app /var/app/staging/
1643482979663 2022/01/29 19:02:59.584390 [INFO] Sending build context to Docker daemon 11.46MB
1643482979663 Step 1/4 : FROM alpine:3.14 ---> 0a97eee8041e
1643482979663 Step 2/4 : COPY . /app/ ---> Using cache ---> 852b27ace565
1643482979663 Step 3/4 : EXPOSE 5000 ---> Using cache ---> c96afab36242
1643482979663 Step 4/4 : ENTRYPOINT ["/app/bin/app"] ---> Using cache ---> dd957e4c31b1
1643482979663 Successfully built dd957e4c31b1
1643482979663 Successfully tagged aws_beanstalk/staging-app:latest
1643482979663 2022/01/29 19:02:59.585679 [INFO] successfully execute command: docker build -t aws_beanstalk/staging-app /var/app/staging/
1643482979663 2022/01/29 19:02:59.585688 [INFO] successfully build docker image alpine:3.14
1643482979663 2022/01/29 19:02:59.585694 [INFO] save staging docker image id
1643482979913 2022/01/29 19:02:59.587837 [INFO] Running command /bin/sh -c docker images aws_beanstalk/staging-app -q
1643482979913 2022/01/29 19:02:59.778054 [INFO] dd957e4c31b1
1643482979913 2022/01/29 19:02:59.782171 [INFO] Executing instruction: configure X-Ray
1643482979913 2022/01/29 19:02:59.782187 [INFO] X-Ray is not enabled.
1643482979913 2022/01/29 19:02:59.782191 [INFO] Executing instruction: configure proxy Nginx
1643482979913 2022/01/29 19:02:59.808927 [INFO] Executing instruction: configure healthd specific proxy conf
1643482979913 2022/01/29 19:02:59.812455 [INFO] Running command /bin/sh -c systemctl show -p PartOf healthd.service
1643482979913 2022/01/29 19:02:59.870743 [WARN] Warning: process healthd is already registered...
1643482979913 Deregistering the process ...
1643482979913 2022/01/29 19:02:59.870770 [INFO] Running command /bin/sh -c systemctl show -p PartOf healthd.service
1643482979913 2022/01/29 19:02:59.877937 [INFO] Running command /bin/sh -c systemctl is-active healthd.service
1643482979913 2022/01/29 19:02:59.882080 [INFO] Running command /bin/sh -c systemctl show -p PartOf healthd.service
1643482983298 2022/01/29 19:02:59.886622 [INFO] Running command /bin/sh -c systemctl stop healthd.service
1643482983298 2022/01/29 19:02:59.975220 [INFO] Running command /bin/sh -c systemctl disable healthd.service
1643482983298 2022/01/29 19:03:00.333213 [INFO] Running command /bin/sh -c systemctl daemon-reload
1643482983298 2022/01/29 19:03:00.412991 [INFO] Running command /bin/sh -c systemctl reset-failed
1643482983298 2022/01/29 19:03:00.422077 [INFO] Running command /bin/sh -c systemctl daemon-reload
1643482983298 2022/01/29 19:03:00.488407 [INFO] Running command /bin/sh -c systemctl reset-failed
1643482983298 2022/01/29 19:03:00.494746 [INFO] Running command /bin/sh -c systemctl is-enabled aws-eb.target
1643482983298 2022/01/29 19:03:00.500655 [INFO] Running command /bin/sh -c systemctl enable aws-eb.target
1643482983298 2022/01/29 19:03:00.582674 [INFO] Running command /bin/sh -c systemctl start aws-eb.target
1643482983298 2022/01/29 19:03:00.588198 [INFO] Running command /bin/sh -c systemctl enable healthd.service
1643482983298 2022/01/29 19:03:00.667452 [INFO] Running command /bin/sh -c systemctl show -p PartOf healthd.service
1643482983298 2022/01/29 19:03:00.673151 [INFO] Running command /bin/sh -c systemctl is-active healthd.service
1643482983298 2022/01/29 19:03:00.677393 [INFO] Running command /bin/sh -c systemctl start healthd.service
1643482983298 2022/01/29 19:03:00.724009 [INFO] Copying file /opt/elasticbeanstalk/config/private/healthd/healthd_logformat.conf to /var/proxy/staging/nginx/conf.d/healthd_logformat.conf
1643482983298 2022/01/29 19:03:00.725677 [INFO] Copying file /opt/elasticbeanstalk/config/private/healthd/healthd_nginx.conf to /var/proxy/staging/nginx/conf.d/elasticbeanstalk/healthd.conf
1643482983298 2022/01/29 19:03:00.726977 [INFO] Executing instruction: configure log streaming
1643482983298 2022/01/29 19:03:00.726988 [INFO] start to get cloudwatch log client
1643482983298 2022/01/29 19:03:00.732421 [INFO] start to config log streaming
1643482983298 2022/01/29 19:03:00.732445 [INFO] start to configure log streaming config file
1643482983298 2022/01/29 19:03:00.733850 [INFO] start to create cloudwatch log stream
1643482983298 2022/01/29 19:03:00.733857 [INFO] start to create log streaming
1643482983298 2022/01/29 19:03:00.792295 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/eb-engine.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.812991 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/eb-hooks.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.838528 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/nginx/error.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.862949 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/nginx/access.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.890718 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/docker-events.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.914269 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/docker already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.934606 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/eb-docker/containers/eb-current-app/stdouterr.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:00.972993 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/docker-compose-events.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:01.006010 [WARN] Log stream for log group /aws/elasticbeanstalk/Testal2-env/var/log/eb-docker/containers/eb-current-app/unexpected-quit.log already exists. No need to create it.
1643482983298 2022/01/29 19:03:01.006028 [INFO] start to fetch config
1643482983298 2022/01/29 19:03:01.006046 [INFO] Running command /bin/sh -c /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -c file:/opt/aws/amazon-cloudwatch-agent/etc/beanstalk.json -s
1643482983298 2022/01/29 19:03:02.105609 [INFO] ****** processing amazon-cloudwatch-agent ******
1643482983298 /opt/aws/amazon-cloudwatch-agent/bin/config-downloader --output-dir /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d --download-source file:/opt/aws/amazon-cloudwatch-agent/etc/beanstalk.json --mode ec2 --config /opt/aws/amazon-cloudwatch-agent/etc/common-config.toml --multi-config default
1643482983298 Successfully fetched the config and saved in /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/file_beanstalk.json.tmp
1643482983298 Start configuration validation...
1643482983298 /opt/aws/amazon-cloudwatch-agent/bin/config-translator --input /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json --input-dir /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d --output /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml --mode ec2 --config /opt/aws/amazon-cloudwatch-agent/etc/common-config.toml --multi-config default
1643482983298 Valid Json input schema.
1643482983298 I! Detecting run_as_user...
1643482983298 No csm configuration found.
1643482983298 No metric configuration found.
1643482983298 Configuration validation first phase succeeded
1643482983298 /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent -schematest -config /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml
1643482983298 Configuration validation second phase succeeded
1643482983298 Configuration validation succeeded
1643482983298 2022/01/29 19:03:02.106014 [INFO] Executing instruction: GetToggleForceRotate
1643482983298 2022/01/29 19:03:02.107602 [INFO] Checking if logs need forced rotation
1643482983298 2022/01/29 19:03:02.108760 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBAutoScalingGroup --region eu-west-1
1643482983298 2022/01/29 19:03:02.828563 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBBeanstalkMetadata --region eu-west-1
1643482983298 2022/01/29 19:03:03.149268 [INFO] Procfile not found. Generating default rsyslog config
1643482983298 2022/01/29 19:03:03.152741 [INFO] Running command /bin/sh -c systemctl restart rsyslog.service
1643482983298 2022/01/29 19:03:03.183776 [INFO] Executing instruction: Configure Docker Logging
1643482983298 2022/01/29 19:03:03.197042 [INFO] Executing instruction: PostBuildEbExtension
1643482983298 2022/01/29 19:03:03.197060 [INFO] Starting executing the config set Infra-EmbeddedPostBuild.
1643482983544 2022/01/29 19:03:03.197073 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-init -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBAutoScalingGroup --region eu-west-1 --configsets Infra-EmbeddedPostBuild
1643482983545 2022/01/29 19:03:03.533476 [INFO] Finished executing the config set Infra-EmbeddedPostBuild.
1643482983545 2022/01/29 19:03:03.533500 [INFO] Executing instruction: CleanEbExtensions
1643482983545 2022/01/29 19:03:03.534456 [INFO] Cleaned ebextensions subdirectories from app staging directory.
1643482983545 2022/01/29 19:03:03.534465 [INFO] Executing instruction: RunAppDeployPreDeployHooks
1643482983545 2022/01/29 19:03:03.534477 [INFO] The dir .platform/hooks/predeploy/ does not exist in the application. Skipping this step...
1643482983545 2022/01/29 19:03:03.534482 [INFO] Executing instruction: stop X-Ray
1643482983545 2022/01/29 19:03:03.534484 [INFO] stop X-Ray ...
1643482983545 2022/01/29 19:03:03.534498 [INFO] Running command /bin/sh -c systemctl show -p PartOf xray.service
1643482983545 2022/01/29 19:03:03.543893 [WARN] stopProcess Warning: process xray is not registered
1643482983803 2022/01/29 19:03:03.543911 [INFO] Running command /bin/sh -c systemctl stop xray.service
1643482983804 2022/01/29 19:03:03.550682 [INFO] Executing instruction: Run Docker Container
1643482983804 2022/01/29 19:03:03.550719 [INFO] stop currently running containers...
1643482983804 2022/01/29 19:03:03.550759 [INFO] detected old app is not docker compose app
1643482983804 2022/01/29 19:03:03.550854 [INFO] Running command /bin/sh -c iptables-save | grep -v added_by_elasticbeanstalk | iptables-restore
1643482983804 2022/01/29 19:03:03.576140 [INFO] Running command /bin/sh -c systemctl show -p PartOf nginx.service
1643482983804 2022/01/29 19:03:03.582925 [WARN] deregisterProcess Warning: process nginx is not registered, skipping...
1643482983804 2022/01/29 19:03:03.582955 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker.service
1643482983804 2022/01/29 19:03:03.587519 [INFO] Running command /bin/sh -c systemctl is-active eb-docker.service
1643482983804 2022/01/29 19:03:03.590944 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker.service
1643482984299 2022/01/29 19:03:03.595003 [INFO] Running command /bin/sh -c systemctl stop eb-docker.service
1643482984549 2022/01/29 19:03:04.216164 [INFO] Running command /bin/sh -c systemctl disable eb-docker.service
1643482984549 2022/01/29 19:03:04.303703 [INFO] Running command /bin/sh -c systemctl daemon-reload
1643482984549 2022/01/29 19:03:04.379036 [INFO] Running command /bin/sh -c systemctl reset-failed
1643482984549 2022/01/29 19:03:04.383723 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker-log.service
1643482984549 2022/01/29 19:03:04.388592 [INFO] Running command /bin/sh -c systemctl is-active eb-docker-log.service
1643482984549 2022/01/29 19:03:04.392397 [INFO] Running command /bin/sh -c systemctl disable eb-docker-log.service
1643482984800 2022/01/29 19:03:04.480956 [INFO] Running command /bin/sh -c systemctl daemon-reload
1643482984800 2022/01/29 19:03:04.564496 [INFO] Running command /bin/sh -c systemctl reset-failed
1643482984800 2022/01/29 19:03:04.586657 [INFO] stopping current container: 361855b7f4ca
1643482984800 2022/01/29 19:03:04.586682 [INFO] Running command /bin/sh -c docker ps | grep -q 361855b7f4ca
1643482984800 2022/01/29 19:03:04.636868 [INFO] Running command /bin/sh -c docker ps | grep -q 361855b7f4ca
1643482984800 2022/01/29 19:03:04.676183 [INFO] Running command /bin/sh -c docker container prune -f
1643482984800 2022/01/29 19:03:04.720816 [INFO] Deleted Containers:
1643482984800 361855b7f4cabe852137f7317c6257145376f34c12a57975569a07b01e03ef9e
1643482984800 Total reclaimed space: 49.26kB
1643482984800 2022/01/29 19:03:04.720842 [INFO] Running command /bin/sh -c docker rmi aws_beanstalk/current-app
1643482984800 2022/01/29 19:03:04.760154 [INFO] Untagged: aws_beanstalk/current-app:latest
1643482984800 2022/01/29 19:03:04.760948 [INFO] detected new app is not docker compose app
1643482985800 2022/01/29 19:03:04.762754 [INFO] Running command /bin/sh -c docker run -d --env-file /opt/elasticbeanstalk/deployment/env.list dd957e4c31b1
1643482990298 2022/01/29 19:03:05.684794 [INFO] 74b2ade9770c0f721888f97595e1a29d18db83ba529f0dc701d1a5cf247b4338
1643482991066 2022/01/29 19:03:10.687197 [INFO] Running command /bin/sh -c docker ps | grep -q 74b2ade9770c
1643482991066 2022/01/29 19:03:10.844172 [INFO] Clear existing beanstalk iptables rules...
1643482991066 2022/01/29 19:03:10.844492 [INFO] Running command /bin/sh -c iptables-save | grep -v added_by_elasticbeanstalk | iptables-restore
1643482991066 2022/01/29 19:03:10.857953 [INFO] Getting container info...
1643482991066 2022/01/29 19:03:10.857982 [INFO] Running command /bin/sh -c docker inspect 74b2ade9770c0f721888f97595e1a29d18db83ba529f0dc701d1a5cf247b4338
1643482991066 2022/01/29 19:03:10.920886 [INFO] Running command /bin/sh -c iptables -A FORWARD -i eth0 -o docker0 -j ACCEPT -m comment --comment added_by_elasticbeanstalk_forward
1643482991066 2022/01/29 19:03:10.924629 [INFO] Running command /bin/sh -c iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to 172.17.0.2:5000 -m comment --comment added_by_elasticbeanstalk
1643482991066 2022/01/29 19:03:10.927793 [INFO] Running command /bin/sh -c iptables -A OUTPUT -t nat -o lo -p tcp --dport 80 -j DNAT --to 172.17.0.2:5000 -m comment --comment added_by_elasticbeanstalk
1643482991066 2022/01/29 19:03:10.930066 [INFO] Running command /bin/sh -c iptables -A POSTROUTING -t nat -s 127.0.0.1 -o docker0 -j MASQUERADE -m comment --comment added_by_elasticbeanstalk
1643482991066 2022/01/29 19:03:10.932030 [INFO] Running command /bin/sh -c sysctl -w net.ipv4.conf.docker0.route_localnet=1
1643482991066 2022/01/29 19:03:10.943420 [INFO] net.ipv4.conf.docker0.route_localnet = 1
1643482991066 2022/01/29 19:03:10.943454 [INFO] deregister process nginx if it is registered
1643482991066 2022/01/29 19:03:10.943467 [INFO] Running command /bin/sh -c systemctl show -p PartOf nginx.service
1643482991066 2022/01/29 19:03:10.956388 [WARN] deregisterProcess Warning: process nginx is not registered, skipping...
1643482991066 2022/01/29 19:03:10.956428 [INFO] Running command /bin/sh -c service iptables save
1643482991066 2022/01/29 19:03:11.010058 [INFO] iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
1643482991066 2022/01/29 19:03:11.010075 [INFO] Traffic forward set-up completed.
1643482991066 2022/01/29 19:03:11.010078 [INFO] making STAGING app container current...
1643482991316 2022/01/29 19:03:11.010089 [INFO] Running command /bin/sh -c docker tag dd957e4c31b1 aws_beanstalk/current-app
1643482991316 2022/01/29 19:03:11.076882 [INFO] Running command /bin/sh -c docker rmi aws_beanstalk/staging-app
1643482991316 2022/01/29 19:03:11.137427 [INFO] Untagged: aws_beanstalk/staging-app:latest
1643482991316 2022/01/29 19:03:11.137544 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker.service
1643482991316 2022/01/29 19:03:11.150918 [INFO] Running command /bin/sh -c systemctl daemon-reload
1643482991316 2022/01/29 19:03:11.275189 [INFO] Running command /bin/sh -c systemctl reset-failed
1643482991566 2022/01/29 19:03:11.279182 [INFO] Running command /bin/sh -c systemctl enable eb-docker.service
1643482991566 2022/01/29 19:03:11.354063 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker.service
1643482991566 2022/01/29 19:03:11.360930 [INFO] Running command /bin/sh -c systemctl is-active eb-docker.service
1643482991566 2022/01/29 19:03:11.364885 [INFO] Running command /bin/sh -c systemctl start eb-docker.service
1643482991566 2022/01/29 19:03:11.404513 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker-log.service
1643482991566 2022/01/29 19:03:11.412094 [INFO] Running command /bin/sh -c systemctl daemon-reload
1643482991566 2022/01/29 19:03:11.497970 [INFO] Running command /bin/sh -c systemctl reset-failed
1643482991816 2022/01/29 19:03:11.502292 [INFO] Running command /bin/sh -c systemctl enable eb-docker-log.service
1643482991816 2022/01/29 19:03:11.608240 [INFO] Running command /bin/sh -c systemctl show -p PartOf eb-docker-log.service
1643482991816 2022/01/29 19:03:11.615699 [INFO] Running command /bin/sh -c systemctl is-active eb-docker-log.service
1643482991816 2022/01/29 19:03:11.619375 [INFO] Running command /bin/sh -c systemctl start eb-docker-log.service
1643482991816 2022/01/29 19:03:11.674413 [INFO] docker container 74b2ade9770c is running aws_beanstalk/current-app
1643482991816 2022/01/29 19:03:11.674827 [INFO] Executing instruction: Clean up Docker
1643482991816 2022/01/29 19:03:11.674865 [INFO] Running command /bin/sh -c docker ps -aq
1643482991816 2022/01/29 19:03:11.802499 [INFO] 74b2ade9770c
1643482992068 2022/01/29 19:03:11.802527 [INFO] Running command /bin/sh -c docker images | sed 1d
1643482992068 2022/01/29 19:03:11.893274 [INFO] aws_beanstalk/current-app latest dd957e4c31b1 30 minutes ago 17.1MB
1643482992068 alpine 3.14 0a97eee8041e 2 months ago 5.61MB
1643482992068 2022/01/29 19:03:11.893918 [INFO] save docker tag command: docker tag dd957e4c31b1 aws_beanstalk/current-app:latest
1643482992068 2022/01/29 19:03:11.893929 [INFO] save docker tag command: docker tag 0a97eee8041e alpine:3.14
1643482992068 2022/01/29 19:03:11.893948 [INFO] Running command /bin/sh -c docker rm `docker ps -aq`
1643482992317 2022/01/29 19:03:12.028331 [INFO] Running command /bin/sh -c docker rmi `docker images -aq`
1643482992317 2022/01/29 19:03:12.189605 [INFO] restore docker image name with command: docker tag dd957e4c31b1 aws_beanstalk/current-app:latest
1643482992317 2022/01/29 19:03:12.189630 [INFO] Running command /bin/sh -c docker tag dd957e4c31b1 aws_beanstalk/current-app:latest
1643482992317 2022/01/29 19:03:12.252914 [INFO] restore docker image name with command: docker tag 0a97eee8041e alpine:3.14
1643482992317 2022/01/29 19:03:12.252940 [INFO] Running command /bin/sh -c docker tag 0a97eee8041e alpine:3.14
1643482992317 2022/01/29 19:03:12.307835 [INFO] Executing instruction: start X-Ray
1643482992317 2022/01/29 19:03:12.308649 [INFO] X-Ray is not enabled.
1643482992317 2022/01/29 19:03:12.308658 [INFO] Executing instruction: configureSqsd
1643482992317 2022/01/29 19:03:12.309230 [INFO] This is a web server environment instance, skip configure sqsd daemon ...
1643482992317 2022/01/29 19:03:12.309240 [INFO] Executing instruction: startSqsd
1643482992317 2022/01/29 19:03:12.309243 [INFO] This is a web server environment instance, skip start sqsd daemon ...
1643482992317 2022/01/29 19:03:12.309247 [INFO] Executing instruction: Track pids in healthd
1643482992317 2022/01/29 19:03:12.309522 [INFO] This is an enhanced health env...
1643482992567 2022/01/29 19:03:12.309544 [INFO] Running command /bin/sh -c systemctl show -p ConsistsOf aws-eb.target | cut -d= -f2
1643482992567 2022/01/29 19:03:12.322377 [INFO] healthd.service amazon-cloudwatch-agent.service docker.service eb-docker-log.service eb-docker-events.service cfn-hup.service eb-docker.service
1643482992567 2022/01/29 19:03:12.322411 [INFO] Running command /bin/sh -c systemctl show -p ConsistsOf eb-app.target | cut -d= -f2
1643482992567 2022/01/29 19:03:12.328926 [INFO]
1643482992567 2022/01/29 19:03:12.331540 [INFO] Executing instruction: Configure Docker Container Logging
1643482992567 2022/01/29 19:03:12.340432 [INFO] Executing instruction: RunAppDeployPostDeployHooks
1643482992567 2022/01/29 19:03:12.340452 [INFO] The dir .platform/hooks/postdeploy/ does not exist in the application. Skipping this step...
1643482992567 2022/01/29 19:03:12.340456 [INFO] Executing cleanup logic
1643482992567 2022/01/29 19:03:12.343611 [INFO] CommandService Response: {"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"Engine execution has succeeded.","returncode":0,"events":[{"msg":"Instance deployment completed successfully.","timestamp":1643482992,"severity":"INFO"}]}]}
1643482997298 2022/01/29 19:03:12.343800 [INFO] Platform Engine finished execution on command: app-deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment