Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #1

Closed
xiaofengtongxue opened this issue Mar 26, 2020 · 7 comments
Closed

error #1

xiaofengtongxue opened this issue Mar 26, 2020 · 7 comments

Comments

@xiaofengtongxue
Copy link

[error] 4102#0: *65 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /api/query HTTP/1.0", upstream: "uwsgi://0.0.0.0:8000", host: "127.0.0.1:8800",

不知道为啥出现这个问题

@taomujian
Copy link
Owner

这是进行什么操作时出现的问题?其它操作有这个问题吗?

@xiaofengtongxue
Copy link
Author

运行起来后,进行页面注册的时候

@taomujian
Copy link
Owner

uwsgi.ini这个文件中的配置修改过吗?

@xiaofengtongxue
Copy link
Author

配置过

@taomujian
Copy link
Owner

https://blog.csdn.net/fsj818077/article/details/85243145,看下这篇文章呢,
socket = 127.0.0.1:8001     # 这个是被访问地址,十分重要,因为后续的nginx访问后端链接地址就是 这个地址,而不是http地址,必须注意,否则nignx的log就会显示以下错误:

upstream prematurely closed connection while reading response header from upstre    am, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8080", host: "127.0.0.1"

@xiaofengtongxue
Copy link
Author

uwsgi.ini中已经有了socket,这个错误主要在注册模块

@taomujian
Copy link
Owner

这个错误的主要原因可能是你修改过uwsgi.ini文件,能否把你的uwsgi.ini配置文件和nginx的配置,截图发下呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants