在uwsgi服务器上运行的Flask应用程序无法加载属性文件

时间:2018-07-23 17:08:08

标签: python-2.7 nginx flask uwsgi

我正在用python 2.7(版本)编写的uwsgi服务器上运行Flask应用程序。 应用程序在运行在nginx后面的虚拟机上运行。 当安装了应用程序并且可以访问API时,便可以执行所有功能。

在理想的3-4天之后,当尝试访问功能或访问任何API时,应用程序会引发错误。

错误日志:

Traceback (most recent call last): 

File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1982, in
 wsgi_app response = self.full_dispatch_request() 

File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1614, in
 full_dispatch_request rv = self.handle_user_exception(e) 

File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1517, in
  handle_user_exception reraise(exc_type, exc_value, tb) 

File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1612, in
 full_dispatch_request rv = self.dispatch_request() 

File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1598, in
  dispatch_request return self.view_functions[rule.endpoint]   (**req.view_args)

0 个答案:

没有答案