luismaia/redmine_email_fetcher

Cron error

Opened this issue · 1 comments

4ev commented

Command Cron:
PATH=/usr/bin
GEM_PATH=/usr/local/rvm/gems/ruby-2.3.0@rails4/gems

  • * * * * root /usr/bin/rake -f /opt/redmine-3.3.0/Rakefile --silent redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&-

Error log:

rake aborted!
LoadError: cannot load such file -- bundler/setup
/opt/redmine-3.3.0/config/boot.rb:4:in <top (required)>' /opt/redmine-3.3.0/config/application.rb:1:in<top (required)>'
/opt/redmine-3.3.0/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

Hi,

Not sure if you managed to fix this, but you can try a slightly tweaked version I added to https://github.com/octoquad/redmine_email_fetcher#rake-task.

If you no longer have this problem, please consider closing this issue.

Thanks