gpt4 book ai didi

docker - Elasticbeanstalk 部署失败

转载 作者:行者123 更新时间:2023-12-02 06:45:05 33 4
gpt4 key购买 nike

我正在尝试部署一个基于 Docker 的环境,该环境在 AWS elasticbeanstalk 中使用 1-1 应用程序负载均衡器。我收到以下错误消息。之前似乎部署得很好,但由于未知原因,新部署失败了。

2019-01-31 18:52:23    INFO    Environment update is starting.      
2019-01-31 18:53:03 INFO Deploying new version to instance(s).
2019-01-31 18:53:12 INFO Successfully pulled node:10.15.0
2019-01-31 18:57:34 INFO Successfully built aws_beanstalk/staging-app
2019-01-31 18:57:42 ERROR Failed to start nginx, abort deployment
2019-01-31 18:57:44 ERROR [Instance: i-0d4b3811324b90c27] Command failed on instance. Return code: 1 Output: nginx: [emerg] no host in upstream ":8080" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-upstream.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
Failed to start nginx, abort deployment.
Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/01flip.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2019-01-31 18:57:45 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2019-01-31 18:57:45 ERROR Unsuccessful command execution on instance id(s) 'i-0d4b3811324b90c27'. Aborting the operation.
2019-01-31 18:57:45 ERROR Failed to deploy application.

最佳答案

此问题是由我的 Node js 应用程序中的未捕获错误引起的。问题不在于 Beanstalk。

关于docker - Elasticbeanstalk 部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54467551/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com