首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >502 Bad Gateway django nginx + gunicorn

502 Bad Gateway django nginx + gunicorn
EN

Stack Overflow用户
提问于 2018-09-06 11:21:47
回答 1查看 686关注 0票数 0

我使用post请求将大量数据从用户输入(textarea)加载到数据库(18k lines),并得到502 Bad Gateway错误。

当我打印sudo nano /var/log/nginx/error.log时,我得到了这样的信息:

代码语言:javascript
复制
2018/09/06 10:21:04 [alert] 19688#19688: *3 open socket #22 left in connection 4
2018/09/06 10:21:04 [alert] 19688#19688: aborting
2018/09/06 11:04:32 [error] 20076#20076: *14 upstream prematurely closed connection while reading response header from upstream, client: 95.1$

这只在我的生产服务器上(nginx + gunicorn + postgres),在我的dev服务器上它工作得很好。

我该怎么办?

我也有

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-09-06 12:02:37

增加超时时间有助于解决这个问题。

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

https://stackoverflow.com/questions/52202975

复制
相关文章

相似问题

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