首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >AWS弹性豆柄(Dash巧妙应用)- 502坏网关

AWS弹性豆柄(Dash巧妙应用)- 502坏网关
EN

Stack Overflow用户
提问于 2020-11-25 06:04:06
回答 1查看 754关注 0票数 0

我是一个编程新手,我的老板希望我在AWS弹性豆柄上部署一个简洁的应用程序。该代码已成功部署,但显示了502错误的网关。

502坏网关

nginx/1.18.0

我试图查看/var/log/nginx/error.log,并将端口更改为8000,但仍然无法工作。

这个错误的解决方案是什么?我应该添加Procfile吗?我应该在该文件中添加什么?提前谢谢你!

/var/log/nginx/error.log

代码语言:javascript
运行
复制
2020/11/25 05:24:52 [error] 16068#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:01 [error] 16068#0: *40 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.244, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:07 [error] 16068#0: *42 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:16 [error] 16545#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.244, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:22 [error] 16545#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "dashmonitoring1-env.eba-umwfi3nn.us-east-2.elasticbeanstalk.com"
2020/11/25 05:25:22 [error] 16545#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:22 [error] 16545#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8000/favicon.ico", host: "dashmonitoring1-env.eba-umwfi3nn.us-east-2.elasticbeanstalk.com", referrer: "http://dashmonitoring1-env.eba-umwfi3nn.us-east-2.elasticbeanstalk.com/"
2020/11/25 05:25:31 [error] 16545#0: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.244, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:37 [error] 16545#0: *10 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:46 [error] 16545#0: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.244, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:25:52 [error] 16545#0: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:26:01 [error] 16545#0: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.244, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
2020/11/25 05:26:07 [error] 16545#0: *18 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.38.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.7.83"
EN

回答 1

Stack Overflow用户

发布于 2021-04-28 15:14:26

对我来说,这解决了https://stackoverflow.com/a/67300325/15524555的问题。基本上,我的.ebextensions/application.config文件没有正确地指向dash应用程序实例。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64999249

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档