docker - Elasticbeanstalk 部署失败

标签 docker amazon-elastic-beanstalk

我正在尝试部署一个基于 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/

相关文章:

Traefik Docker Swarm 模式真实 ip 背后的 Nginx

docker - 来自 dockerfile 的交互式 docker 构建?

django - 如何在AWS中为Django API提供可扩展性的背景?

java - 如何将 .war 文件与 JDBC jar 一起部署到 tomcat7 中?

windows - Docker和NET Core 2.0,无法运行docker镜像

bash - eval $(docker-machine env默认值)在iterm启动脚本中不起作用

amazon-web-services - 如何从 Heroku 迁移到 Amazon Web Services (AWS)

amazon-web-services - Elastic Beanstalk 无法创建

amazon-ec2 - laravel 4 on beanstalk, php artisan 如何弄清楚环境

docker - 在 AWS EB 上的 docker 中远程调试 JVM