openshift运行cron与无效的python版本 [英] Openshift run cron with an invalid python version

查看:332
本文介绍了openshift运行cron与无效的python版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两天前我的cron工作停止工作。在cron日志是一个加载库的错误,所以我改变cron只做一个python --version,显示2.6当我的cardtrige是Python 2.7。

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.

如果我尝试加载vritenv在cron失败,因为不foun Python 2.7 libs。

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?

编辑:

我报告了错误,他们正在处理 https://bugzilla.redhat.com/show_bug.cgi?id=1076626

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

推荐答案

似乎该错误是在cron盒中。

Seems that the bug is in the cron cartridge.

我在Ruby 1.9墨盒中也遇到了这个问题。当使用ruby -version运行cron脚本时,它显示了Ruby 1.8。

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.

尝试了解决方法,并导出了PATH和LD_LIBRARY_PATH。它工作,它现在在cron脚本中显示ruby 1.9.3p448。

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.

感谢@moisesgallego。我也更新了错误报告。

Thanks @moisesgallego. I updated the bug report too.

这篇关于openshift运行cron与无效的python版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆