- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
免责声明* 我知道对此有很多问题。我已经查看了它们并应用了答案,但它仍然不起作用。
我使用 .jar(不是 war)文件将 Spring Boot 应用程序部署到 Elastic Beanstalk。我正在使用Java 1.8。我将 application.properties 更改为 server.port = 5000。我还打开了我的 ec2 实例在 0.0.0.0/32 上用于端口 5000 的安全组。当我的 Elastic beanstalk 环境加载时,状态会变为降级。以下是来自 EB 的日志文件。
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2019/03/05 21:47:12 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:12 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
2019/03/05 21:47:40 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:40 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
2019/03/05 21:47:41 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:41 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
2019/03/05 21:47:42 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:42 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
2019/03/05 21:47:42 [error] 3256#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:42 [error] 3256#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
2019/03/05 21:47:42 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:42 [error] 3256#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
2019/03/05 21:47:42 [error] 3256#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "3.209.22.246"
2019/03/05 21:47:42 [error] 3256#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 198.72.235.68, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "3.209.22.246", referrer: "http://3.209.22.246/"
-------------------------------------
/var/log/eb-activity.log
-------------------------------------
inflating: /var/app/staging/resources/static/resources/logo.png
inflating: /var/app/staging/resources/static/resources/right.png
inflating: /var/app/staging/resources/static/resources/settings.png
inflating: /var/app/staging/.classpath
inflating: /var/app/staging/mvnw.cmd
inflating: /var/app/staging/coffee/CoffeeApplicationTests.class
inflating: /var/app/staging/.factorypath
inflating: /var/app/staging/.gitignore
Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor
[foreman export] writing: application.conf
Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs
Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs
[2019-03-05T21:43:24.963Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/AppDeployPreHook/01_configure_xray.sh] : Starting activity...
[2019-03-05T21:43:25.071Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/AppDeployPreHook/01_configure_xray.sh] : Completed activity.
[2019-03-05T21:43:25.071Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/AppDeployPreHook/03_configure_proxy.sh] : Starting activity...
[2019-03-05T21:43:25.249Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/AppDeployPreHook/03_configure_proxy.sh] : Completed activity. Result:
Executing: /opt/elasticbeanstalk/bin/log-conf -n nginx -l'/var/log/nginx/*'
Executing: /usr/sbin/nginx -t -c /var/elasticbeanstalk/staging/nginx/nginx.conf
nginx: the configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf syntax is ok
nginx: configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf test is successful
[2019-03-05T21:43:25.249Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/AppDeployPreHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/appdeploy/pre.
[2019-03-05T21:43:25.249Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/EbExtensionPostBuild] : Starting activity...
[2019-03-05T21:43:25.643Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild] : Starting activity...
[2019-03-05T21:43:25.643Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild] : Completed activity.
[2019-03-05T21:43:25.658Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/EbExtensionPostBuild] : Completed activity.
[2019-03-05T21:43:25.658Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/InfraCleanEbExtension] : Starting activity...
[2019-03-05T21:43:25.659Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0/InfraCleanEbExtension] : Completed activity. Result:
Cleaned ebextensions subdirectories from /var/app/staging.
[2019-03-05T21:43:25.659Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage0] : Completed activity. Result:
Application deployment - Command CMD-Startup stage 0 completed
[2019-03-05T21:43:25.659Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1] : Starting activity...
[2019-03-05T21:43:25.659Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook] : Starting activity...
[2019-03-05T21:43:25.659Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/01_stop_before_promote.sh] : Starting activity...
[2019-03-05T21:43:26.233Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/01_stop_before_promote.sh] : Completed activity. Result:
Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop application:*
unix:///tmp/supervisor.sock no such file
Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop all
unix:///tmp/supervisor.sock no such file
Executing: /sbin/status supervisord
supervisord stop/waiting
[2019-03-05T21:43:26.233Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/01stop_xray.sh] : Starting activity...
[2019-03-05T21:43:28.349Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/01stop_xray.sh] : Completed activity. Result:
Executing: if ( initctl status xray | grep start ); then initctl stop xray; fi
xray start/running, process 2239
xray stop/waiting
[2019-03-05T21:43:28.349Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/02start_xray.sh] : Starting activity...
[2019-03-05T21:43:28.456Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/02start_xray.sh] : Completed activity.
[2019-03-05T21:43:28.456Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/03_stop_proxy.sh] : Starting activity...
[2019-03-05T21:43:28.574Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/03_stop_proxy.sh] : Completed activity. Result:
Executing: service nginx stop
[2019-03-05T21:43:28.574Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/05_promote_application.sh] : Starting activity...
[2019-03-05T21:43:28.675Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/05_promote_application.sh] : Completed activity.
[2019-03-05T21:43:28.675Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/07_start_application.sh] : Starting activity...
[2019-03-05T21:43:28.780Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/07_start_application.sh] : Completed activity. Result:
Executing: /sbin/start supervisord
supervisord start/running, process 3207
[2019-03-05T21:43:28.780Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/09_start_proxy.sh] : Starting activity...
[2019-03-05T21:43:31.379Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/09_start_proxy.sh] : Completed activity. Result:
Executing: service nginx stop
Executing: service nginx start
Starting nginx: [ OK ]
Executing: /opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx
Executing: /opt/elasticbeanstalk/bin/healthd-configure --appstat-log-path /var/log/nginx/healthd/application.log --appstat-unit sec --appstat-timestamp-on 'completion'
Executing: /opt/elasticbeanstalk/bin/healthd-restart
[2019-03-05T21:43:31.379Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/11_stop_after_promote.sh] : Starting activity...
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook/11_stop_after_promote.sh] : Completed activity.
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployEnactHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/appdeploy/enact.
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployPostHook] : Starting activity...
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/AppDeployPostHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/appdeploy/post.
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/PostInitHook] : Starting activity...
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1/PostInitHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/postinit.
[2019-03-05T21:43:31.588Z] INFO [3054] - [Application deployment springcoffeep-source@1/StartupStage1] : Completed activity. Result:
Application deployment - Command CMD-Startup stage 1 completed
[2019-03-05T21:43:31.589Z] INFO [3054] - [Application deployment springcoffeep-source@1/AddonsAfter] : Starting activity...
[2019-03-05T21:43:31.589Z] INFO [3054] - [Application deployment springcoffeep-source@1/AddonsAfter/ConfigLogRotation] : Starting activity...
[2019-03-05T21:43:31.589Z] INFO [3054] - [Application deployment springcoffeep-source@1/AddonsAfter/ConfigLogRotation/10-config.sh] : Starting activity...
[2019-03-05T21:43:31.929Z] INFO [3054] - [Application deployment springcoffeep-source@1/AddonsAfter/ConfigLogRotation/10-config.sh] : Completed activity. Result:
Disabled forced hourly log rotation.
[2019-03-05T21:43:31.929Z] INFO [3054] - [Application deployment springcoffeep-source@1/AddonsAfter/ConfigLogRotation] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logpublish/hooks/config.
[2019-03-05T21:43:31.929Z] INFO [3054] - [Application deployment springcoffeep-source@1/AddonsAfter] : Completed activity.
[2019-03-05T21:43:31.929Z] INFO [3054] - [Application deployment springcoffeep-source@1] : Completed activity. Result:
Application deployment - Command CMD-Startup succeeded
[2019-03-05T21:48:01.292Z] INFO [3491] - [CMD-TailLogs] : Starting activity...
[2019-03-05T21:48:01.293Z] INFO [3491] - [CMD-TailLogs/AddonsBefore] : Starting activity...
[2019-03-05T21:48:01.293Z] INFO [3491] - [CMD-TailLogs/AddonsBefore] : Completed activity.
[2019-03-05T21:48:01.293Z] INFO [3491] - [CMD-TailLogs/TailLogs] : Starting activity...
[2019-03-05T21:48:01.293Z] INFO [3491] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
-------------------------------------
/var/log/nginx/access.log
-------------------------------------
198.72.235.68 - - [05/Mar/2019:21:47:12 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:12 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:40 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:40 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:41 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:41 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
198.72.235.68 - - [05/Mar/2019:21:47:42 +0000] "GET /favicon.ico HTTP/1.1" 502 575 "http://3.209.22.246/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
-------------------------------------
/var/log/eb-commandprocessor.log
-------------------------------------
[2019-03-05T21:42:54.163Z] DEBUG [2834] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||ManifestFileS3Key..
[2019-03-05T21:42:54.412Z] INFO [2834] : Finding latest manifest from bucket 'elasticbeanstalk-us-east-1-274999247491' with prefix 'resources/environments/e-xdvtnscapn/_runtime/versions/manifest_'.
[2019-03-05T21:42:54.523Z] INFO [2834] : Found manifest with key 'resources/environments/e-xdvtnscapn/_runtime/versions/manifest_1551822103235'.
[2019-03-05T21:42:54.571Z] INFO [2834] : Updated manifest cache: deployment ID 1 and serial 1.
[2019-03-05T21:42:54.571Z] DEBUG [2834] : Loaded definition of Command CMD-PreInit.
[2019-03-05T21:42:54.571Z] INFO [2834] : Executing Initialization
[2019-03-05T21:42:54.572Z] INFO [2834] : Executing command: CMD-PreInit...
[2019-03-05T21:42:54.572Z] INFO [2834] : Executing command CMD-PreInit activities...
[2019-03-05T21:42:54.572Z] DEBUG [2834] : Setting environment variables..
[2019-03-05T21:42:54.572Z] INFO [2834] : Running AddonsBefore for command CMD-PreInit...
[2019-03-05T21:42:58.783Z] DEBUG [2834] : Running stages of Command CMD-PreInit from stage 0 to stage 0...
[2019-03-05T21:42:58.783Z] INFO [2834] : Running stage 0 of command CMD-PreInit...
[2019-03-05T21:42:58.784Z] DEBUG [2834] : Loaded 2 actions for stage 0.
[2019-03-05T21:42:58.784Z] INFO [2834] : Running 1 of 2 actions: DownloadSourceBundle...
[2019-03-05T21:42:59.097Z] INFO [2834] : Running 2 of 2 actions: PreInitHook...
[2019-03-05T21:42:59.470Z] INFO [2834] : Running AddonsAfter for command CMD-PreInit...
[2019-03-05T21:42:59.470Z] INFO [2834] : Command CMD-PreInit succeeded!
[2019-03-05T21:42:59.471Z] INFO [2834] : Command processor returning results:
{"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"","returncode":0,"events":[]}]}
[2019-03-05T21:43:23.285Z] DEBUG [3054] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-03-05T21:43:23.286Z] DEBUG [3054] : Checking if the command processor should execute...
[2019-03-05T21:43:23.288Z] DEBUG [3054] : Checking whether the command is applicable to instance (i-0090acbe1f680bed4)..
[2019-03-05T21:43:23.288Z] INFO [3054] : Command is applicable to this instance (i-0090acbe1f680bed4)..
[2019-03-05T21:43:23.288Z] DEBUG [3054] : Checking if the received command stage is valid..
[2019-03-05T21:43:23.288Z] INFO [3054] : No stage_num in command. Valid stage..
[2019-03-05T21:43:23.288Z] INFO [3054] : Received command CMD-Startup: {"execution_data"=>"{\"leader_election\":\"true\"}", "instance_ids"=>["i-0090acbe1f680bed4"], "command_name"=>"CMD-Startup", "api_version"=>"1.0", "resource_name"=>"AWSEBAutoScalingGroup", "request_id"=>"74447fa8-3f8f-11e9-8e18-53c93173e114"}
[2019-03-05T21:43:23.288Z] INFO [3054] : Command processor should execute command.
[2019-03-05T21:43:23.288Z] DEBUG [3054] : Storing current stage..
[2019-03-05T21:43:23.288Z] DEBUG [3054] : Stage_num does not exist. Not saving null stage. Returning..
[2019-03-05T21:43:23.288Z] DEBUG [3054] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-03-05T21:43:23.289Z] DEBUG [3054] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2019-03-05T21:43:23.289Z] DEBUG [3054] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2019-03-05T21:43:23.290Z] INFO [3054] : Found enabled addons: ["logstreaming", "logpublish"].
[2019-03-05T21:43:23.291Z] INFO [3054] : Updating Command definition of addon logstreaming.
[2019-03-05T21:43:23.291Z] INFO [3054] : Updating Command definition of addon logpublish.
[2019-03-05T21:43:23.291Z] DEBUG [3054] : Refreshing metadata...
[2019-03-05T21:43:23.629Z] DEBUG [3054] : Refreshed environment metadata.
[2019-03-05T21:43:23.630Z] INFO [3054] : Recreated directory /opt/elasticbeanstalk/deploy/configuration/.
[2019-03-05T21:43:23.630Z] DEBUG [3054] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_AppSourceUrlFileContent||url..
[2019-03-05T21:43:23.630Z] INFO [3054] : Created appsource url file at /opt/elasticbeanstalk/deploy/configuration/appsourceurl.
[2019-03-05T21:43:23.630Z] DEBUG [3054] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent..
[2019-03-05T21:43:23.631Z] INFO [3054] : Created container config file at /opt/elasticbeanstalk/deploy/configuration/containerconfiguration.
[2019-03-05T21:43:23.631Z] DEBUG [3054] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2019-03-05T21:43:23.632Z] DEBUG [3054] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2019-03-05T21:43:23.633Z] INFO [3054] : Found enabled addons: ["logstreaming", "logpublish"].
[2019-03-05T21:43:23.633Z] INFO [3054] : Updating Command definition of addon logstreaming.
[2019-03-05T21:43:23.634Z] INFO [3054] : Updating Command definition of addon logpublish.
[2019-03-05T21:43:23.634Z] DEBUG [3054] : Loaded definition of Command CMD-Startup.
[2019-03-05T21:43:23.634Z] INFO [3054] : Executing Application deployment
[2019-03-05T21:43:23.634Z] INFO [3054] : Executing command: CMD-Startup...
[2019-03-05T21:43:23.634Z] INFO [3054] : Executing command CMD-Startup activities...
[2019-03-05T21:43:23.634Z] DEBUG [3054] : Setting environment variables..
[2019-03-05T21:43:23.634Z] INFO [3054] : Running AddonsBefore for command CMD-Startup...
[2019-03-05T21:43:23.754Z] DEBUG [3054] : Running stages of Command CMD-Startup from stage 0 to stage 1...
[2019-03-05T21:43:23.754Z] INFO [3054] : Running stage 0 of command CMD-Startup...
[2019-03-05T21:43:23.754Z] INFO [3054] : Running leader election...
[2019-03-05T21:43:24.091Z] INFO [3054] : Instance is Leader.
[2019-03-05T21:43:24.091Z] DEBUG [3054] : Loaded 7 actions for stage 0.
[2019-03-05T21:43:24.091Z] INFO [3054] : Running 1 of 7 actions: HealthdLogRotation...
[2019-03-05T21:43:24.097Z] INFO [3054] : Running 2 of 7 actions: HealthdHTTPDLogging...
[2019-03-05T21:43:24.097Z] INFO [3054] : Running 3 of 7 actions: HealthdNginxLogging...
[2019-03-05T21:43:24.097Z] INFO [3054] : Running 4 of 7 actions: EbExtensionPreBuild...
[2019-03-05T21:43:24.507Z] INFO [3054] : Running 5 of 7 actions: AppDeployPreHook...
[2019-03-05T21:43:25.249Z] INFO [3054] : Running 6 of 7 actions: EbExtensionPostBuild...
[2019-03-05T21:43:25.658Z] INFO [3054] : Running 7 of 7 actions: InfraCleanEbExtension...
[2019-03-05T21:43:25.659Z] INFO [3054] : Running stage 1 of command CMD-Startup...
[2019-03-05T21:43:25.659Z] DEBUG [3054] : Loaded 3 actions for stage 1.
[2019-03-05T21:43:25.659Z] INFO [3054] : Running 1 of 3 actions: AppDeployEnactHook...
[2019-03-05T21:43:31.588Z] INFO [3054] : Running 2 of 3 actions: AppDeployPostHook...
[2019-03-05T21:43:31.588Z] INFO [3054] : Running 3 of 3 actions: PostInitHook...
[2019-03-05T21:43:31.588Z] INFO [3054] : Running AddonsAfter for command CMD-Startup...
[2019-03-05T21:43:31.929Z] INFO [3054] : Command CMD-Startup succeeded!
[2019-03-05T21:43:31.930Z] INFO [3054] : Command processor returning results:
{"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"","returncode":0,"events":[]}]}
[2019-03-05T21:48:01.284Z] DEBUG [3491] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-03-05T21:48:01.285Z] DEBUG [3491] : Checking if the command processor should execute...
[2019-03-05T21:48:01.289Z] DEBUG [3491] : Checking whether the command is applicable to instance (i-0090acbe1f680bed4)..
[2019-03-05T21:48:01.289Z] INFO [3491] : Command is applicable to this instance (i-0090acbe1f680bed4)..
[2019-03-05T21:48:01.289Z] DEBUG [3491] : Checking if the received command stage is valid..
[2019-03-05T21:48:01.289Z] INFO [3491] : No stage_num in command. Valid stage..
[2019-03-05T21:48:01.289Z] INFO [3491] : Received command CMD-TailLogs: {"execution_data"=>"*", "instance_ids"=>["i-0090acbe1f680bed4"], "data"=>"5813e539-3f90-11e9-89f6-2fc23d76b855", "command_name"=>"CMD-TailLogs", "api_version"=>"1.0", "resource_name"=>"AWSEBAutoScalingGroup", "request_id"=>"5813e539-3f90-11e9-89f6-2fc23d76b855"}
[2019-03-05T21:48:01.289Z] INFO [3491] : Command processor should execute command.
[2019-03-05T21:48:01.289Z] DEBUG [3491] : Storing current stage..
[2019-03-05T21:48:01.289Z] DEBUG [3491] : Stage_num does not exist. Not saving null stage. Returning..
[2019-03-05T21:48:01.289Z] DEBUG [3491] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2019-03-05T21:48:01.289Z] DEBUG [3491] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_ContainerConfigFileContent||commands..
[2019-03-05T21:48:01.290Z] DEBUG [3491] : Retrieving metadata for key: AWS::ElasticBeanstalk::Ext||_API||_Commands..
[2019-03-05T21:48:01.291Z] INFO [3491] : Found enabled addons: ["logstreaming", "logpublish"].
[2019-03-05T21:48:01.292Z] INFO [3491] : Updating Command definition of addon logstreaming.
[2019-03-05T21:48:01.292Z] INFO [3491] : Updating Command definition of addon logpublish.
[2019-03-05T21:48:01.292Z] DEBUG [3491] : Loaded definition of Command CMD-TailLogs.
[2019-03-05T21:48:01.292Z] INFO [3491] : Executing CMD-TailLogs
[2019-03-05T21:48:01.292Z] INFO [3491] : Executing command: CMD-TailLogs...
[2019-03-05T21:48:01.292Z] INFO [3491] : Executing command CMD-TailLogs activities...
[2019-03-05T21:48:01.292Z] DEBUG [3491] : Setting environment variables..
[2019-03-05T21:48:01.293Z] INFO [3491] : Running AddonsBefore for command CMD-TailLogs...
[2019-03-05T21:48:01.293Z] DEBUG [3491] : Running stages of Command CMD-TailLogs from stage 0 to stage 0...
[2019-03-05T21:48:01.293Z] INFO [3491] : Running stage 0 of command CMD-TailLogs...
[2019-03-05T21:48:01.293Z] DEBUG [3491] : Loaded 1 actions for stage 0.
[2019-03-05T21:48:01.29
3Z] INFO [3491] : Running 1 of 1 actions: TailLogs...
最佳答案
最可能的情况是应用程序服务器(嵌入了 Spring Boot)未正确启动。应用程序服务器的日志存储在 /var/log/web-1.log
中,也可以通过 ElasticBeanstalk 中的“日志”选项卡获取。
根据我的经验,这通常与无法访问支持的服务(数据库集群)有关。可能未正确设置从 ElasticBeanstalk、EC2 环境到 RDS 数据库的安全组。
关于java - 将 Spring Boot 应用程序部署到 Elastic Beanstalk 时出现 502 Bad Gateway,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55012221/
我正在尝试将我的应用程序上载到Elastic Beanstalk,但是在节点预gyp安装--fallback-to-build上,npm安装失败。我尝试了各种版本的节点,但无济于事。似乎正在尝试获取一
设置 Elastic Beanstalk 的配置时,我没有获得解决方案堆栈的任何选项。 以下是有问题的行: `Select a solution stack. Available solution s
我正在尝试自定义 beanstalk 的默认 AMI,但每次我都会在一段随机时间后服务器重新启动。我什至没有改变任何东西,但没有任何效果。 我尝试过以下方法: 找到运行beanstalk的实例,创建A
我正在尝试使用sudo pip install awsebcli在新的Ubuntu 14.04(在Windows的Linux子系统上)上安装Elastic Beanstalk CLI(awsebcli
Amazon Beanstalk 是否会自动防止(分布式)拒绝服务攻击?如果没有,最方便的方法是什么? 最佳答案 我相信它会 New – AWS Shield AWS Shield is a new
每当我在 Elastic Beanstalk 中创建新环境时,我都会手动配置自定义 AMI ID、SNS 通知等,但我想自动完成,即,将设置(自定义 AMI ID、SNS、 key 对等)保存到一个配
我已使用以下方法连接到 Elastic Beanstalk: eb ssh XXXXXX --profile=xx 现在我想将一个文件复制到我的本地机器上,我该怎么做? 最佳答案 找出与 scp 一起
对于典型的 Java Web 应用程序,使用 Elastic Beanstalk 相对于手动创建 EC2 实例、设置 tomcat 服务器和部署等有哪些优势?负载平衡、监控和自动缩放是唯一的优势吗?
我有一个运行 PHP 的弹性 beanstalk 环境。在我的项目中,我有一个 .ebextensions 文件夹和一个名为“15-memorymonitor.config”的文件,其中包含以下内容;
我有 “更新”:Dockerrun.aws.json 中的“真” 当我更新 ECR 中的图像时,它应该自动更新 EC2 iontance 中的图像和容器。 但是当我在推送新图像后通过 ssh 进入实例
我有一个定义 Elastic Beanstalk 应用程序的 CloudFormation 模板。 我想扩展这个应用程序,即我希望端口 80 上的监听器重定向到 HTTPS。 AWS::Elastic
我在使用自定义 .ebextensions 文件部署 EB 实例时遇到问题。这是该文件中的相关部分: container_commands: 01_migrate: command: 'p
我已经使用带负载均衡器的 Elastic Beanstalk 创建了一个环境,并在各自的配置中分配了所有健康检查值 我也为ELB设置了应用健康检查url 但是当我检查自动缩放组配置时,健康检查类型是
我正在尝试部署我的 角申请通过GitHub Actions到 Elastic Beanstalk 。我正在使用这个 GitHub actions用于部署到 ELB。 我的问题是,部署失败,因为 ELB
我已阅读有关 Deploying Versions with Zero Downtime 的 AWS 文档,又名 CNAME 交换。 如 yegor256在 this answer 中有解释: The
我有一个弹性 beanstalk 设置,但无法访问环境中列出的 url,而如果我指向负载均衡器的 url,我可以访问它。 有什么建议吗? 最佳答案 将 LoadBalancer 安全组附加到实例。对我
我正在使用 AWS Elastic beanstalk 并希望为不同的环境配置不同的 ENV 变量。我发现的唯一方法是使用 ebextensions,但如果我将同一个数据包部署到多个环境,则无法覆盖在
我有一个应用程序,其中包含 nodejs 和 php 代码。 nodejs 用于运行应用程序所需的几个脚本。我如何使用 aws Elastic beanstalk 部署此类应用程序? 最佳答案 有两种
我今天遇到一个关于 Amazon Elastick BeanStalk 的奇怪问题:对于我的实例,我无法上传应用程序: XXX@-Vostro-2520:~/git_projects/ProjectB
我不断收到以下消息。但是在我的 nginx 日志中没有任何内容表明返回的请求状态为 5xx。此外,应用程序似乎按预期工作。我可能会得到这些的任何指示? 留言: Environment health h
我是一名优秀的程序员,十分优秀!