如何调试openshift v2

时间:2017-06-24 23:35:12

标签: python django apache openshift

我正在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日志中没有信息。我还从.htaccess文件夹中删除了app/wsgi/。最近我设置了env变量。 (rhc env set BLA=bla -a app)。

我还读过env应该在引号中,所以我尝试了rhc env set BLA="bla" -a app。没运气。

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

1 个答案:

答案 0 :(得分:0)

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