Redmine requires Bundler. Please install it with `gem install bundler`
After upgrading from 1.3.1 to 1.4.4, I am getting the the following error when trying to check incoming emails:
Redmine requires Bundler. Please install it with `gem install bundler`.
Bundler was installed when upgrading, with no errors during install/upgrade, and redmine itself works fine.
gem list command shows
bundler (1.2.1, 1.2.0)
The error only occurs when running the script from cron, but works OK when run from a terminal, which usually points to PATH or other environment configuration, but I can't see what I'm doing wrong.
env > /home/username/temp/check-email-env.log
/usr/local/bin/rake --trace redmine:email:receive_pop3 RAILS_ENV=production host=mail.domain.com port=110 username=redmine password=XXXX
I've tried specifying the full path to the Rakefile, same error.
I've tried adding
export GEM_HOME=/usr/local/lib/ruby/gems/1.8/gems/, same error.
Have I missed something obvious, or are there other ruby or bundler path variables I need to export in order for it to work in a cron environment.
RE: Redmine requires Bundler. Please install it with `gem install bundler` - Added by Rob D over 9 years ago
To solve my problem, my check-email script above required the following when run from cron:
That is an explicit path with
/usr/local/bin first. It did not work by just appending
/usr/local/bin to the default path set by cron.