Skip to content

Instantly share code, notes, and snippets.

@bengrunfeld
Created February 6, 2019 04:28
Show Gist options
  • Save bengrunfeld/e2f46e3575a3f57a68ed3c39fd63e7d8 to your computer and use it in GitHub Desktop.
Save bengrunfeld/e2f46e3575a3f57a68ed3c39fd63e7d8 to your computer and use it in GitHub Desktop.
From Stack Overflow question: "AWS Elastic Beanstalk with ALB: Node Websocket times out"
# From Stack Overflow question: "AWS Elastic Beanstalk with ALB: Node Websocket times out"
-------------------------------------
/var/log/nodejs/nodejs.log
-------------------------------------
> tradey@1.0.0 start /var/app/current
> node ./dist/server.js
Prod: App listening to 8081....
Press Ctrl+C to quit.
Starting App...
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
-------------------------------------
/var/log/eb-activity.log
-------------------------------------
status: Unknown job: nginx
status: Unknown job: httpd
status: Unknown job: httpd
Did not find to find status of init job. Assuming stopped.
Did not find to find status of init job. Assuming stopped.
Did not find to find status of init job. Assuming stopped.
Did not find to find status of init job. Assuming stopped.
Did not find to find status of init job. Assuming stopped.
Did not find to find status of init job. Assuming stopped.
[2019-02-06T04:18:43.130Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/20clean.sh] : Starting activity...
[2019-02-06T04:18:43.234Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/20clean.sh] : Completed activity. Result:
++ /opt/elasticbeanstalk/bin/get-config container -k app_base_dir
+ EB_APP_BASE_DIR=/var/app
+ rm -rf /var/app
[2019-02-06T04:18:43.235Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/30app_deploy.sh] : Starting activity...
[2019-02-06T04:18:43.669Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/30app_deploy.sh] : Completed activity. Result:
++ /opt/elasticbeanstalk/bin/get-config container -k app_base_dir
+ EB_APP_BASE_DIR=/var/app
++ /opt/elasticbeanstalk/bin/get-config container -k app_staging_dir
+ EB_APP_STAGING_DIR=/tmp/deployment/application
++ /opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir
+ EB_APP_DEPLOY_DIR=/var/app/current
++ /opt/elasticbeanstalk/bin/get-config container -k app_user
+ EB_APP_USER=nodejs
+ mkdir /var/app
+ mv /tmp/deployment/application /var/app/current
+ chown -R nodejs:nodejs /var/app/current
[2019-02-06T04:18:43.670Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/40config_deploy.sh] : Starting activity...
[2019-02-06T04:18:43.786Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/40config_deploy.sh] : Completed activity. Result:
++ /opt/elasticbeanstalk/bin/get-config container -k config_staging_dir
+ EB_CONFIG_STAGING_DIR=/tmp/deployment/config
++ ls /tmp/deployment/config
+ for i in '$(ls $EB_CONFIG_STAGING_DIR)'
++ sed -e 's/#/\//g'
++ echo '#etc#init#nginx.conf'
+ FILE_NAME=/etc/init/nginx.conf
+ /bin/cp /tmp/deployment/config/#etc#init#nginx.conf /etc/init/nginx.conf
+ for i in '$(ls $EB_CONFIG_STAGING_DIR)'
++ sed -e 's/#/\//g'
++ echo '#etc#init#nodejs.conf'
+ FILE_NAME=/etc/init/nodejs.conf
+ /bin/cp /tmp/deployment/config/#etc#init#nodejs.conf /etc/init/nodejs.conf
+ for i in '$(ls $EB_CONFIG_STAGING_DIR)'
++ sed -e 's/#/\//g'
++ echo '#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf'
+ FILE_NAME=/etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf
+ /bin/cp /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf
+ for i in '$(ls $EB_CONFIG_STAGING_DIR)'
++ sed -e 's/#/\//g'
++ echo '#etc#nginx#nginx.conf'
+ FILE_NAME=/etc/nginx/nginx.conf
+ /bin/cp /tmp/deployment/config/#etc#nginx#nginx.conf /etc/nginx/nginx.conf
[2019-02-06T04:18:43.786Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/50start.sh] : Starting activity...
[2019-02-06T04:18:45.447Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/50start.sh] : Completed activity. Result:
+ /opt/elasticbeanstalk/containerfiles/ebnode.py --action start-all
nodejs start/running, process 3726
nginx start/running, process 3741
[2019-02-06T04:18:45.447Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/60monitor_pids.sh] : Starting activity...
[2019-02-06T04:18:45.943Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/60monitor_pids.sh] : Completed activity. Result:
+ '[' -d /etc/healthd ']'
++ /opt/elasticbeanstalk/bin/get-config optionsettings --namespace aws:elasticbeanstalk:container:nodejs --option-name ProxyServer
+ PROXY_SERVER=nginx
+ case "$PROXY_SERVER" in
+ /opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx
+ /opt/elasticbeanstalk/bin/healthd-track-pidfile --name application --location /var/run/nodejs.pid
[2019-02-06T04:18:45.943Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/70restart_healthd.sh] : Starting activity...
[2019-02-06T04:18:48.308Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook/70restart_healthd.sh] : Completed activity. Result:
+ '[' -d /etc/healthd ']'
++ /opt/elasticbeanstalk/bin/get-config optionsettings --namespace aws:elasticbeanstalk:container:nodejs --option-name ProxyServer
+ PROXY_SERVER=nginx
+ '[' -f /etc/healthd/config.yaml ']'
+ case "$PROXY_SERVER" in
++ grep -L /var/log/nginx/healthd/application.log /etc/healthd/config.yaml
+ '[' ']'
+ /opt/elasticbeanstalk/bin/healthd-restart
[2019-02-06T04:18:48.308Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployEnactHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/appdeploy/enact.
[2019-02-06T04:18:48.308Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployPostHook] : Starting activity...
[2019-02-06T04:18:48.308Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/AppDeployPostHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/appdeploy/post.
[2019-02-06T04:18:48.308Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/PostInitHook] : Starting activity...
[2019-02-06T04:18:48.308Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1/PostInitHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/postinit.
[2019-02-06T04:18:48.309Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/StartupStage1] : Completed activity. Result:
Application deployment - Command CMD-Startup stage 1 completed
[2019-02-06T04:18:48.309Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/AddonsAfter] : Starting activity...
[2019-02-06T04:18:48.309Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/AddonsAfter/ConfigLogRotation] : Starting activity...
[2019-02-06T04:18:48.309Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/AddonsAfter/ConfigLogRotation/10-config.sh] : Starting activity...
[2019-02-06T04:18:48.493Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/AddonsAfter/ConfigLogRotation/10-config.sh] : Completed activity. Result:
Disabled forced hourly log rotation.
[2019-02-06T04:18:48.493Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/AddonsAfter/ConfigLogRotation] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logpublish/hooks/config.
[2019-02-06T04:18:48.493Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1/AddonsAfter] : Completed activity.
[2019-02-06T04:18:48.493Z] INFO [3243] - [Application deployment app-e1b8-190206_151448@1] : Completed activity. Result:
Application deployment - Command CMD-Startup succeeded
[2019-02-06T04:26:41.976Z] INFO [4042] - [CMD-TailLogs] : Starting activity...
[2019-02-06T04:26:41.976Z] INFO [4042] - [CMD-TailLogs/AddonsBefore] : Starting activity...
[2019-02-06T04:26:41.976Z] INFO [4042] - [CMD-TailLogs/AddonsBefore] : Completed activity.
[2019-02-06T04:26:41.976Z] INFO [4042] - [CMD-TailLogs/TailLogs] : Starting activity...
[2019-02-06T04:26:41.976Z] INFO [4042] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
-------------------------------------
/var/log/nginx/access.log
-------------------------------------
172.31.29.39 - - [06/Feb/2019:04:18:58 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:19:13 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:19:23 +0000] "GET / HTTP/1.1" 200 660 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.29.39 - - [06/Feb/2019:04:19:24 +0000] "GET /main.css HTTP/1.1" 200 507 "http://tradey-12-hr-dev.ap-northeast-1.elasticbeanstalk.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.29.39 - - [06/Feb/2019:04:19:24 +0000] "GET /main.js HTTP/1.1" 200 39931 "http://tradey-12-hr-dev.ap-northeast-1.elasticbeanstalk.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.0.255 - - [06/Feb/2019:04:19:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:19:24 +0000] "GET /startApp HTTP/1.1" 304 0 "http://tradey-12-hr-dev.ap-northeast-1.elasticbeanstalk.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.29.39 - - [06/Feb/2019:04:19:24 +0000] "GET / HTTP/1.1" 304 0 "http://tradey-12-hr-dev.ap-northeast-1.elasticbeanstalk.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.29.39 - - [06/Feb/2019:04:19:25 +0000] "GET /main.css HTTP/1.1" 304 0 "http://tradey-12-hr-dev.ap-northeast-1.elasticbeanstalk.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.29.39 - - [06/Feb/2019:04:19:25 +0000] "GET /main.js.map HTTP/1.1" 200 98529 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "49.184.190.123"
172.31.29.39 - - [06/Feb/2019:04:19:28 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:19:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:19:43 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:19:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:19:58 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:20:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:20:13 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:20:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:20:28 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:20:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:20:43 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:20:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:20:58 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:21:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:21:13 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:21:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:21:28 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:21:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:21:43 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:21:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:21:58 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:22:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:22:13 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:22:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:22:28 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:22:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:22:43 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:22:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:22:58 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:23:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:23:13 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:23:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:23:29 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:23:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:23:44 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:23:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:23:59 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:24:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:24:14 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:24:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:24:29 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:24:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:24:44 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:24:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:24:59 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:25:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:25:14 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:25:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:25:29 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:25:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:25:44 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:25:54 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:25:59 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:26:09 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:26:14 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:26:24 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.29.39 - - [06/Feb/2019:04:26:29 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
172.31.0.255 - - [06/Feb/2019:04:26:39 +0000] "GET / HTTP/1.1" 200 660 "-" "ELB-HealthChecker/2.0" "-"
-------------------------------------
/var/log/eb-commandprocessor.log
-------------------------------------
[2019-02-06T04:16:16.668Z] DEBUG [2870] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||ManifestFileS3Key..
[2019-02-06T04:16:16.955Z] INFO [2870] : Finding latest manifest from bucket 'elasticbeanstalk-ap-northeast-1-209983798451' with prefix 'resources/environments/e-znpasdmi9z/_runtime/versions/manifest_'.
[2019-02-06T04:16:17.436Z] INFO [2870] : Found manifest with key 'resources/environments/e-znpasdmi9z/_runtime/versions/manifest_1549426500941'.
[2019-02-06T04:16:17.448Z] INFO [2870] : Updated manifest cache: deployment ID 1 and serial 1.
[2019-02-06T04:16:17.448Z] DEBUG [2870] : Loaded definition of Command CMD-PreInit.
[2019-02-06T04:16:17.449Z] INFO [2870] : Executing Initialization
[2019-02-06T04:16:17.449Z] INFO [2870] : Executing command: CMD-PreInit...
[2019-02-06T04:16:17.449Z] INFO [2870] : Executing command CMD-PreInit activities...
[2019-02-06T04:16:17.449Z] DEBUG [2870] : Setting environment variables..
[2019-02-06T04:16:17.449Z] INFO [2870] : Running AddonsBefore for command CMD-PreInit...
[2019-02-06T04:16:19.966Z] DEBUG [2870] : Running stages of Command CMD-PreInit from stage 0 to stage 0...
[2019-02-06T04:16:19.966Z] INFO [2870] : Running stage 0 of command CMD-PreInit...
[2019-02-06T04:16:19.967Z] DEBUG [2870] : Loaded 2 actions for stage 0.
[2019-02-06T04:16:19.967Z] INFO [2870] : Running 1 of 2 actions: DownloadSourceBundle...
[2019-02-06T04:16:20.336Z] INFO [2870] : Running 2 of 2 actions: PreInitHook...
[2019-02-06T04:16:23.840Z] INFO [2870] : Running AddonsAfter for command CMD-PreInit...
[2019-02-06T04:16:23.840Z] INFO [2870] : Command CMD-PreInit succeeded!
[2019-02-06T04:16:23.840Z] INFO [2870] : Command processor returning results:
{"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"","returncode":0,"events":[]}]}
[2019-02-06T04:18:15.658Z] DEBUG [3243] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-02-06T04:18:15.658Z] DEBUG [3243] : Checking if the command processor should execute...
[2019-02-06T04:18:15.660Z] DEBUG [3243] : Checking whether the command is applicable to instance (i-00d1710ef79fe0db8)..
[2019-02-06T04:18:15.660Z] INFO [3243] : Command is applicable to this instance (i-00d1710ef79fe0db8)..
[2019-02-06T04:18:15.660Z] DEBUG [3243] : Checking if the received command stage is valid..
[2019-02-06T04:18:15.660Z] INFO [3243] : No stage_num in command. Valid stage..
[2019-02-06T04:18:15.660Z] INFO [3243] : Received command CMD-Startup: {"execution_data"=>"{\"leader_election\":\"true\"}", "instance_ids"=>["i-00d1710ef79fe0db8"], "command_name"=>"CMD-Startup", "api_version"=>"1.0", "resource_name"=>"AWSEBAutoScalingGroup", "request_id"=>"5f3975a8-5163-4fbc-b033-5c34b1df9644"}
[2019-02-06T04:18:15.660Z] INFO [3243] : Command processor should execute command.
[2019-02-06T04:18:15.660Z] DEBUG [3243] : Storing current stage..
[2019-02-06T04:18:15.660Z] DEBUG [3243] : Stage_num does not exist. Not saving null stage. Returning..
[2019-02-06T04:18:15.660Z] DEBUG [3243] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-02-06T04:18:15.660Z] DEBUG [3243] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2019-02-06T04:18:15.661Z] DEBUG [3243] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2019-02-06T04:18:15.662Z] INFO [3243] : Found enabled addons: ["logstreaming", "logpublish"].
[2019-02-06T04:18:15.663Z] INFO [3243] : Updating Command definition of addon logstreaming.
[2019-02-06T04:18:15.663Z] INFO [3243] : Updating Command definition of addon logpublish.
[2019-02-06T04:18:15.663Z] DEBUG [3243] : Refreshing metadata...
[2019-02-06T04:18:16.128Z] DEBUG [3243] : Refreshed environment metadata.
[2019-02-06T04:18:16.128Z] INFO [3243] : Recreated directory /opt/elasticbeanstalk/deploy/configuration/.
[2019-02-06T04:18:16.128Z] DEBUG [3243] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_AppSourceUrlFileContent||url..
[2019-02-06T04:18:16.129Z] INFO [3243] : Created appsource url file at /opt/elasticbeanstalk/deploy/configuration/appsourceurl.
[2019-02-06T04:18:16.129Z] DEBUG [3243] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent..
[2019-02-06T04:18:16.131Z] INFO [3243] : Created container config file at /opt/elasticbeanstalk/deploy/configuration/containerconfiguration.
[2019-02-06T04:18:16.131Z] DEBUG [3243] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2019-02-06T04:18:16.132Z] DEBUG [3243] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2019-02-06T04:18:16.133Z] INFO [3243] : Found enabled addons: ["logstreaming", "logpublish"].
[2019-02-06T04:18:16.134Z] INFO [3243] : Updating Command definition of addon logstreaming.
[2019-02-06T04:18:16.134Z] INFO [3243] : Updating Command definition of addon logpublish.
[2019-02-06T04:18:16.134Z] DEBUG [3243] : Loaded definition of Command CMD-Startup.
[2019-02-06T04:18:16.134Z] INFO [3243] : Executing Application deployment
[2019-02-06T04:18:16.135Z] INFO [3243] : Executing command: CMD-Startup...
[2019-02-06T04:18:16.135Z] INFO [3243] : Executing command CMD-Startup activities...
[2019-02-06T04:18:16.135Z] DEBUG [3243] : Setting environment variables..
[2019-02-06T04:18:16.135Z] INFO [3243] : Running AddonsBefore for command CMD-Startup...
[2019-02-06T04:18:16.271Z] DEBUG [3243] : Running stages of Command CMD-Startup from stage 0 to stage 1...
[2019-02-06T04:18:16.271Z] INFO [3243] : Running stage 0 of command CMD-Startup...
[2019-02-06T04:18:16.271Z] INFO [3243] : Running leader election...
[2019-02-06T04:18:16.730Z] INFO [3243] : Instance is Leader.
[2019-02-06T04:18:16.730Z] DEBUG [3243] : Loaded 7 actions for stage 0.
[2019-02-06T04:18:16.730Z] INFO [3243] : Running 1 of 7 actions: HealthdLogRotation...
[2019-02-06T04:18:16.736Z] INFO [3243] : Running 2 of 7 actions: HealthdHTTPDLogging...
[2019-02-06T04:18:16.737Z] INFO [3243] : Running 3 of 7 actions: HealthdNginxLogging...
[2019-02-06T04:18:16.737Z] INFO [3243] : Running 4 of 7 actions: EbExtensionPreBuild...
[2019-02-06T04:18:17.217Z] INFO [3243] : Running 5 of 7 actions: AppDeployPreHook...
[2019-02-06T04:18:37.688Z] INFO [3243] : Running 6 of 7 actions: EbExtensionPostBuild...
[2019-02-06T04:18:39.248Z] INFO [3243] : Running 7 of 7 actions: InfraCleanEbExtension...
[2019-02-06T04:18:39.257Z] INFO [3243] : Running stage 1 of command CMD-Startup...
[2019-02-06T04:18:39.257Z] DEBUG [3243] : Loaded 3 actions for stage 1.
[2019-02-06T04:18:39.257Z] INFO [3243] : Running 1 of 3 actions: AppDeployEnactHook...
[2019-02-06T04:18:48.308Z] INFO [3243] : Running 2 of 3 actions: AppDeployPostHook...
[2019-02-06T04:18:48.308Z] INFO [3243] : Running 3 of 3 actions: PostInitHook...
[2019-02-06T04:18:48.309Z] INFO [3243] : Running AddonsAfter for command CMD-Startup...
[2019-02-06T04:18:48.493Z] INFO [3243] : Command CMD-Startup succeeded!
[2019-02-06T04:18:48.493Z] INFO [3243] : Command processor returning results:
{"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"","returncode":0,"events":[]}]}
[2019-02-06T04:26:41.971Z] DEBUG [4042] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-02-06T04:26:41.971Z] DEBUG [4042] : Checking if the command processor should execute...
[2019-02-06T04:26:41.972Z] DEBUG [4042] : Checking whether the command is applicable to instance (i-00d1710ef79fe0db8)..
[2019-02-06T04:26:41.972Z] INFO [4042] : Command is applicable to this instance (i-00d1710ef79fe0db8)..
[2019-02-06T04:26:41.972Z] DEBUG [4042] : Checking if the received command stage is valid..
[2019-02-06T04:26:41.972Z] INFO [4042] : No stage_num in command. Valid stage..
[2019-02-06T04:26:41.972Z] INFO [4042] : Received command CMD-TailLogs: {"execution_data"=>"*", "instance_ids"=>["i-00d1710ef79fe0db8"], "data"=>"65fbeb2e-29c7-11e9-9ebd-8b9b8fbdb4a3", "command_name"=>"CMD-TailLogs", "api_version"=>"1.0", "resource_name"=>"AWSEBAutoScalingGroup", "request_id"=>"65fbeb2e-29c7-11e9-9ebd-8b9b8fbdb4a3"}
[2019-02-06T04:26:41.972Z] INFO [4042] : Command processor should execute command.
[2019-02-06T04:26:41.972Z] DEBUG [4042] : Storing current stage..
[2019-02-06T04:26:41.972Z] DEBUG [4042] : Stage_num does not exist. Not saving null stage. Returning..
[2019-02-06T04:26:41.972Z] DEBUG [4042] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-02-06T04:26:41.973Z] DEBUG [4042] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2019-02-06T04:26:41.973Z] DEBUG [4042] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2019-02-06T04:26:41.974Z] INFO [4042] : Found enabled addons: ["logstreaming", "logpublish"].
[2019-02-06T04:26:41.975Z] INFO [4042] : Updating Command definition of addon logstreaming.
[2019-02-06T04:26:41.975Z] INFO [4042] : Updating Command definition of addon logpublish.
[2019-02-06T04:26:41.975Z] DEBUG [4042] : Loaded definition of Command CMD-TailLogs.
[2019-02-06T04:26:41.975Z] INFO [4042] : Executing CMD-TailLogs
[2019-02-06T04:26:41.976Z] INFO [4042] : Executing command: CMD-TailLogs...
[2019-02-06T04:26:41.976Z] INFO [4042] : Executing command CMD-TailLogs activities...
[2019-02-06T04:26:41.976Z] DEBUG [4042] : Setting environment variables..
[2019-02-06T04:26:41.976Z] INFO [4042] : Running AddonsBefore for command CMD-TailLogs...
[2019-02-06T04:26:41.976Z] DEBUG [4042] : Running stages of Command CMD-TailLogs from stage 0 to stage 0...
[2019-02-06T04:26:41.976Z] INFO [4042] : Running stage 0 of command CMD-TailLogs...
[2019-02-06T04:26:41.976Z] DEBUG [4042] : Loaded 1 actions for stage 0.
[2019-02-06T04:26:41.976Z] INFO [4042] : Running 1 of 1 actions: TailLogs...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment