Project

General

Profile

What version of rake is recommended for Redmine 1.4.x?

Added by Deoren Moor over 12 years ago

The 1.3.x and earlier series had this line in the documentation:

Rake 0.8.7 is required (rake 0.9.x is not supported by Rails yet)

I don't see that mentioned in the 1.4.x documentation, so I'm guessing that rake 0.9.2.2 would be supported?

I manage Redmine installations on various systems, and one of the Redmine 1.4.0 installations has a cron script that executes every 15 minutes to scrape repositories associated with Redmine projects.

This is the line in the cron script:

RAILS_ENV="production" /usr/bin/rake -f /opt/redmine/Rakefile redmine:fetch_changesets

Prior to adding

gem "rake", "0.8.7"
to /opt/redmine/Gemfile.local, this error was thrown via cron on that system:

/etc/cron.15minutes/redmine_fetch_changesets:
rake aborted!
uninitialized constant Rake::DSL
/opt/redmine/Rakefile:7:in `require'
(See full trace by running task with --trace) (in /)
run-parts: /etc/cron.15minutes/redmine_fetch_changesets exited with return code 1

gem list

*** LOCAL GEMS ***

actionmailer (2.3.14, 2.3.11, 2.3.5)
actionpack (2.3.14, 2.3.11, 2.3.5)
activerecord (2.3.14, 2.3.11, 2.3.5)
activeresource (2.3.14, 2.3.11, 2.3.5)
activesupport (2.3.14, 2.3.11, 2.3.5)
bundler (1.1.3)
coderay (1.0.6)
fastercsv (1.5.4)
i18n (0.4.2)
json (1.6.6)
mysql (2.8.1)
net-ldap (0.3.1)
pg (0.13.2)
rack (1.1.3, 1.1.0, 1.0.1)
rails (2.3.14, 2.3.11, 2.3.5)
rake (0.9.2.2, 0.8.7)
rdoc (3.12, 2.4.2)
rmagick (2.13.1)
ruby-openid (2.1.8)
sqlite3 (1.3.5)
tzinfo (0.3.33)

bundle show

Gems included by the bundle:
  * actionmailer (2.3.14)
  * actionpack (2.3.14)
  * activerecord (2.3.14)
  * activeresource (2.3.14)
  * activesupport (2.3.14)
  * bundler (1.1.3)
  * coderay (1.0.6)
  * fastercsv (1.5.4)
  * i18n (0.4.2)
  * json (1.6.6)
  * mysql (2.8.1)
  * net-ldap (0.3.1)
  * pg (0.13.2)
  * rack (1.1.3)
  * rails (2.3.14)
  * rake (0.8.7)
  * rdoc (3.12)
  * rmagick (2.13.1)
  * ruby-openid (2.1.8)
  * sqlite3 (1.3.5)
  * tzinfo (0.3.33)

Runs on:

  • Ubuntu 11.10
  • Apache 2.2.x
  • Phusion Passenger 2.2.11debian-2

The 0.8.7 version of rake that you see is from the Gemfile.local addition I mentioned earlier. Using that version, no problems are encountered on that particular system. If 0.9.2.2 is included in the bundle, the error provided is thrown via cron.

Thanks in advance.


Replies (1)

RE: What version of rake is recommended for Redmine 1.4.x? - Added by Deoren Moor about 12 years ago

During an upgrade of Redmine 1.4.3 to 1.4.4 today this warning was given:

Check the recommended version of rake on the install docs

I have rake 0.9.2.2 installed as mentioned previously.

    (1-1/1)