Skip to content
ejunker edited this page Dec 5, 2011 · 10 revisions

Index:

  • No job gets executed on Ubuntu with RVM

Troubleshooting Details

No job gets executed on Ubuntu with RVM

The typical setting for ~/.bashrc on Ubuntu disable everything when the shell is not interactive. You should find the following two lines inside ~/.bashrc of your user:

# If not running interactively, don't do anything
[  -z "$PS1" ] && return

The only fix is to comment them out.


If that still doesn't make things happen, you might try whenever --clear-crontab. I don't have proof but it seems to have worked for me.

Job fails with cron not being able to find ruby in shell

I discovered that my cron jobs were failing via the internal mail that is sent by cron. The error message indicated that the shell could not find any ruby in the environment. The solution is to include a PATH in the crontab above the job schedules.

PATH=/opt/local/ree/bin:/bin:/sbin:/whateverpathyouneed

You can also set the PATH in your schedule.rb

env :PATH, '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'

Clone this wiki locally