Redmine requires Bundler. Please install it with `gem install bundler`
Added by Rob D about 12 years ago
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`.
(in /usr/share/redmine-1.4.4)
Bundler was installed when upgrading, with no errors during install/upgrade, and redmine itself works fine.
The 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.
#!/bin/bash
export PATH=$PATH:/usr/local/bin
env > /home/username/temp/check-email-env.log
cd /usr/share/redmine-1.4.4
/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.
Replies (1)
RE: Redmine requires Bundler. Please install it with `gem install bundler` - Added by Rob D about 12 years ago
To solve my problem, my check-email script above required the following when run from cron:
export PATH=/usr/local/bin:/usr/bin:/bin
export GEM_HOME=/usr/local/lib/ruby/gems/1.8
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.