Elasticbeanstalk部署失败

时间:2019-01-31 19:02:54

标签: docker amazon-elastic-beanstalk

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

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.        

1 个答案:

答案 0 :(得分:0)

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