Openshift run cron with an invalid python version

拟墨画扇 提交于 2019-12-31 06:49:24

问题


Two days ago my cron jobs stopped working. In the cron log is an error loading a library, so I change the cron to only make a "python --version" and shows 2.6 when my cardtrige is Python 2.7.

If I try to load the vritenv in the cron fails to, because don't foun Python 2.7 libs. But if I enter by ssh and run the bash in the crom, the code run perfect.

Anyone knows what happens?

EDIT:

I reported the bug and they are working on it https://bugzilla.redhat.com/show_bug.cgi?id=1076626


回答1:


Seems that the bug is in the cron cartridge.

I am experiencing this issue in my Ruby 1.9 cartridge too. It shows Ruby 1.8 when running a cron script with ruby --version.

Tried the workaround and exported the PATH and LD_LIBRARY_PATH. It works, and it shows ruby 1.9.3p448 in the cron script now.

Thanks @moisesgallego. I updated the bug report too.




回答2:


Exists a Workaround explained here: https://bugzilla.redhat.com/show_bug.cgi?id=1076626#c7 until the bug is fixed



来源:https://stackoverflow.com/questions/22411532/openshift-run-cron-with-an-invalid-python-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!