Django应用程序的错误崩溃了NGNIX和服务器
我的Django应用程序运行良好一段时间,然后我得到了502 BAD GATEWAWAY
,几个小时后,我无法ping域并使用SSH连接我的服务器(来自Amazon Lightsail)。那时我也没有由NGNIX提供的其他应用程序。虽然我没有启动Django应用程序,但NGNIX提供的应用程序将稳定运行。因此,我想这是我的Django应用程序的错误崩溃了NGNIX和服务器。
在为服务器时间重新启动服务器后,服务器似乎已恢复,然后我可以ping域并使用SSH连接服务器。但是过了一会儿,同样的问题将再次发生。我想知道如何解决问题。
自Django应用程序开始到下面提供的NGINX服务器末尾的一些诊断信息。
UWSGI日志。 https://bpa.st/fp7q
nginx错误日志。 https://bpa.st/35eq
My Django application run well for a while, then I got 502 Bad Gateway
, after a few hours, I am unable to ping the domain and use SSH to connect my server(from Amazon Lightsail). My other application served by ngnix was also not available then. While if I didn't start the Django application, ther application served by ngnix would run steadily. So I guess it is the error of my Django application crashed ngnix and the server.
After rebooting the server for serveral times, the server seems recovered then I can ping the domain and use SSH to connect the server. But after a while, the same problem would occurs again. I wonder how to fix the problem.
Some diagnostic information since the start of the Django application to the end of the Nginx server provided below.
The uwsgi log. https://bpa.st/FP7Q
The Nginx error log. https://bpa.st/35EQ
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论