【问题标题】:How to debug openshift v2如何调试 openshift v2
【发布时间】:2017-06-24 23:35:11
【问题描述】:

我收到Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.15 (Red Hat) Server at www.example.com Port 80

我在 python 2.7 应用程序上有一个 django 1.8.8。查看 ~/app-root/logs 中的日志,cron_minutely.log 或 haproxy 日志中没有信息。我还从app/wsgi/ 文件夹中删除了.htaccess。最近我设置了环境变量。 (rhc env set BLA=bla -a app)。

我也读过 env 应该用引号引起来,所以我尝试了rhc env set BLA="bla" -a app。没运气。

我可能应该摆脱 openshift 并将其移至其他地方。但是在一个小应用程序上设置 docker、docker vps、postgres 实例和 crons 会花费我太长时间。那么请问,您知道如何找出问题所在吗?

【问题讨论】:

  • 但是 apache 错误日志中有什么内容?
  • 我看不到 Apache 的任何错误日志。是~/app-root/logs 的其他地方吗?

标签: python django apache openshift


【解决方案1】:

嗯,我已阅读 log files 并注意到,我应该重新启动应用程序。 rhc stop app,然后是 rhc start app。它奏效了。但是我尝试在 web 管理界面中重新启动,它没有帮助。这有帮助。

【讨论】:

  • 有时强制停止和启动是唯一有效的方法。根据问题,重新启动不会摇摆不定。
猜你喜欢
  • 1970-01-01
  • 2017-05-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-10
  • 2015-09-02
  • 2014-01-02
  • 1970-01-01
相关资源
最近更新 更多