我使用whenever gem我schedule.rb含量(CRON)错误(孙子#26321,退出状态127失败)
每2.minutes做亚军 “炼油厂:: Page.update_publishing_date_to_list_in_menu” 结束
我用crontab中得到这个-l
# Begin Whenever generated tasks for: /home/harssh/Documents/Aptana Studio 3 Workspacwinbox/wineboxnew/config/schedule.rb
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58
* * * * /bin/bash -l -c 'cd /home/harssh/Documents/Aptana\ Studio\ 3\ Workspacwinbox/wineboxnew && RAILS_ENV=production bundle exec rake page:publish --silent'
# End Whenever generated tasks for: /home/harssh/Documents/Aptana Studio 3 Workspacwinbox/wineboxnew/config/schedule.rb
这在我的Ubuntu 10.10
运行良好但我我的Debian服务器 上得到(CRON) error (grandchild #26321 failed with exit status 127)
这里我使用Apache和乘客与RVM使用Ruby 1.9.3
如果我在debian的终端使用脚本它也运行正常,但自动的cron任务提供了错误
在/log/cron.log什么? –
大声笑,它可能只是'*/2' ...'127'问题是缺少命令 - 最有可能是一个'PATH'问题... – mpapis
此页面的瓦片是日志文件的内容Vadim – Magnum