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

程序正常运行一段时间,就莫名出现 504 Gateway timeout #27

Closed
smalldu opened this issue May 29, 2018 · 2 comments
Closed

Comments

@smalldu
Copy link

smalldu commented May 29, 2018

这个跟nginx配置有关系吗。怎么保证他的稳定性,我怎么查看docker中nginx的日志

@tiangolo
Copy link
Owner

I'm sorry, I don't speak Mandarin. I "google translated" it, and I see you are having 504 Gateway timeout errors. It's possible that your app code has a bug somewhere and breaks. But Nginx keeps trying to speak to uWSGI and waits for it to answer. And then it shows the timeout error. But it's probable that the code actually had an error before at some point.

To see the logs you can use docker logs commands: https://docs.docker.com/engine/reference/commandline/logs/

@smalldu smalldu closed this as completed May 29, 2018
@dwgeneral
Copy link

sudo systemctl restart docker

sudo usermod -aG docker $USER

and relogin your shell

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

3 participants