微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

乘客申请错误:内部错误

如何解决乘客申请错误:内部错误

我正在尝试从本地环境迁移托管上的 Python Django Web 应用程序。安装进行得很顺利,但最后我在 staging.changerz.education 中没有看到 Django 的起始页面。在日志中,我发现了错误,但不确定我需要在我的应用程序中修复什么问题。请帮助任何人:

   "error" : {
      "category" : "INTERNAL_ERROR","id" : "23a01cfb","problem_description_html" : "<p>The Phusion Passenger application server tried to start the web application. But the application itself (and not Passenger) encountered an internal error.</p><p>The stdout/stderr output of the subprocess so far is:</p><pre>Traceback (most recent call last):\n  File &quot;/usr/share/passenger/helper-scripts/wsgi-loader.py&quot;,line 369,in &lt;module&gt;\n    app_module = load_app()\n  File &quot;/usr/share/passenger/helper-scripts/wsgi-loader.py&quot;,line 76,in load_app\n    return imp.load_source(&apos;passenger_wsgi&apos;,startup_file)\n  File &quot;/var/www/u1115154/data/www/staging.changerz.education/passenger_wsgi.py&quot;,line 6,in &lt;module&gt;\n    from django.core.wsgi import get_wsgi_application\n  File &quot;/var/www/u1115154/data/djangoenv/lib/python3.7/site-packages/django/__init__.py&quot;,line 1,in &lt;module&gt;\n    from django.utils.version import get_version\n  File &quot;/var/www/u1115154/data/djangoenv/lib/python3.7/site-packages/django/utils/version.py&quot;,line 71,in &lt;module&gt;\n    @functools.lru_cache()\nAttributeError: &apos;module&apos; object has no attribute &apos;lru_cache&apos;\n</pre>","solution_description_html" : "<p class=\"sole-solution\">Unfortunately,Passenger does not kNow how to solve this problem. Please try troubleshooting the problem by studying the <strong>error message</strong> and the <strong>diagnostics</strong> reports. You can also consult <a href=\"https://www.phusionpassenger.com/support\">the Passenger support resources</a> for help.</p>","summary" : "The application process exited prematurely."
   },

解决方法

刚刚发现 Python 版本与我在虚拟环境中的版本不同,因此值得在托管服务提供商方面检查 Python 版本。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。