Project

General

Profile

send_reminders not working stops with gem-version error

Added by Ortwin Herbst over 9 years ago

Hello,

we have a redmine installation on Debian 7.5 with latest updates.

When i want to run the Command to send reminder-Mails i get the following error:
"
root@redmine www/redmine# rake redmine:send_reminders days=7 users="15" RAILS_ENV="production"
rake aborted!
Gem::LoadError: You have already activated rake 10.2.2, but your Gemfile requires rake 10.1.1. Using bundle exec may solve this.
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup'
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top (required)>'
/var/www/redmine/config/boot.rb:6:in `<top (required)>'
/var/www/redmine/config/application.rb:1:in `<top (required)>'
/var/www/redmine/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
root@redmine www/redmine#
"
i allready tried the "bundle exec" with db:migrate or rake or update and nothing helps to solve this. I deleted the gemfile without any success.

Also the the cmd: RAILS_ENV=production script/about does not work. it says ": No such file or directory". Iam in /var/www/redmine and there is a Dir called script and in there is the about script.

Does anyone have a Solution about this things?

Regards
Ortwin

PS: it is Redmine 2.5


Replies (1)

RE: send_reminders not working stops with gem-version error - Added by Jan Niggemann (redmine.org team member) over 9 years ago

You have already activated rake 10.2.2, but your Gemfile requires rake 10.1.1.

This means that your version of rake is too recent, consider downgrading it or edit your Gemfile.lock.

I deleted the gemfile without any success.

Did you delete it manually? Gems are uninstalled with gem uninstall <gem-name>

Also the the cmd: RAILS_ENV=production script/about does not work. it says ": No such file or directory".

Perhaps you're in the wrong directory...

Iam in /var/www/redmine and there is a Dir called script and in there is the about script.

Open a shell and type the following (or copy & paste):
RAILS_ENV=production /var/www/redmine/script/about

    (1-1/1)