python中的openshift Gear postreceive错误

时间:2022-04-10 03:01:11

I deployed my django application at

我将django应用程序部署在

django-appspot.rhcloud.com

django-appspot.rhcloud.com

Until yesterday everything was working fine. But later when I pushed my codes I found errors on the deploy script in the action hooks near

直到昨天,一切都很顺利。但后来,当我按下代码时,我发现部署脚本的操作钩子附近有错误

"$OPENSHIFT_REPO_DIR"wsgi/openshift/manage.py collectstatic --noinput"

" $ OPENSHIFT_REPO_DIR " wsgi / openshift /管理。py collectstatic——noinput”

Here is my error message i received on pushing the codes.

这是我在推送代码时收到的错误信息。

https://gist.github.com/maksudc/5894335

https://gist.github.com/maksudc/5894335

Here is the build Script:

下面是构建脚本:

https://gist.github.com/maksudc/5894366

https://gist.github.com/maksudc/5894366

It says that Resource Manager instance has no attribute '_warn_unsafe_extraction'

它说资源管理器实例没有属性'_warn_unsafe_extraction'

But until yesterday everything was working fine.

但直到昨天,一切都很顺利。

Currently my application is stopped . I couldn't start it . Even if it doesn't fixed. I need to download my media directory .

目前,我的应用程序已停止。我无法开始。即使它不固定。我需要下载我的媒体目录。

What can I do ??

我能做什么?

3 个解决方案

#1


2  

Try downgrading setuptools to 0.6c11.

尝试将setuptools降级为0.6c11。

I had the same issue in my project after upgrading setuptools to 0.7.5, so this appears to be an issue with that version.

在将setuptools升级到0.7.5之后,我在项目中遇到了同样的问题,因此这个版本似乎有问题。

(If anyone can shed some more light on the how and why, that would be nice)

(如果有人能就如何以及为什么给出更多的解释,那就太好了)

#2


0  

I was experiencing the same problem and posted to the Openshift Forum:

我也遇到了同样的问题,贴在Openshift论坛上:

https://www.openshift.com/forums/openshift/python-app-crashes-with-new-setuptools-v075

https://www.openshift.com/forums/openshift/python-app-crashes-with-new-setuptools-v075

The issue was solved by rebuilding the virtualenv. You can to this by adding the force_clean_build marker in ./openshift/markers in your repo and then doing a git push. My app now works with setuptools 0.7.7.

问题通过重建虚拟环境得到了解决。您可以将force_clean_build标记添加到您的repo中的./openshift/标记中,然后执行git推。我的应用程序现在使用的是setuptools 0.7.7。

#3


0  

Thanks everyone for your solution.

谢谢大家的解答。

I think Openshift authority has downgraded setuptools to 0.6.c11

我认为Openshift权威机构已经将setuptools降级为0.6.c11

So now I can again push my codes swiftly.

所以现在我可以再次快速地推进我的代码。

I have ssh into the server and checked what version it is currently using . I found setuptools 0.6c11

我有ssh到服务器并检查它当前使用的版本。我发现setuptools 0.6 c11

#1


2  

Try downgrading setuptools to 0.6c11.

尝试将setuptools降级为0.6c11。

I had the same issue in my project after upgrading setuptools to 0.7.5, so this appears to be an issue with that version.

在将setuptools升级到0.7.5之后,我在项目中遇到了同样的问题,因此这个版本似乎有问题。

(If anyone can shed some more light on the how and why, that would be nice)

(如果有人能就如何以及为什么给出更多的解释,那就太好了)

#2


0  

I was experiencing the same problem and posted to the Openshift Forum:

我也遇到了同样的问题,贴在Openshift论坛上:

https://www.openshift.com/forums/openshift/python-app-crashes-with-new-setuptools-v075

https://www.openshift.com/forums/openshift/python-app-crashes-with-new-setuptools-v075

The issue was solved by rebuilding the virtualenv. You can to this by adding the force_clean_build marker in ./openshift/markers in your repo and then doing a git push. My app now works with setuptools 0.7.7.

问题通过重建虚拟环境得到了解决。您可以将force_clean_build标记添加到您的repo中的./openshift/标记中,然后执行git推。我的应用程序现在使用的是setuptools 0.7.7。

#3


0  

Thanks everyone for your solution.

谢谢大家的解答。

I think Openshift authority has downgraded setuptools to 0.6.c11

我认为Openshift权威机构已经将setuptools降级为0.6.c11

So now I can again push my codes swiftly.

所以现在我可以再次快速地推进我的代码。

I have ssh into the server and checked what version it is currently using . I found setuptools 0.6c11

我有ssh到服务器并检查它当前使用的版本。我发现setuptools 0.6 c11