Project

General

Profile

Defect #1032

Cannot install plugin on 2.5.2 with Rails 4

Added by Ben Senior over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
High
Category:
General
Target version:
-
Source:
Customer
Detected on version:
Blocked:
No
Alone:
Milestones:
Sprint:

Description

I get the following error on Jessie, which I believe is caused by using Rails 4 (incompatible syntax).

Redmine Information reports

Environment:
  Redmine version                2.5.2.devel
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.1.8
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.10
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  redmine_timesheet_plugin       0.7.0

The Error is

rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
ArgumentError: Unknown key: :order. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :table_name, :before_add, :after_add, :before_remove, :after_remove, :extend, :primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table
/usr/share/redmine/plugins/scrum v0.10.0/lib/scrum/issue_patch.rb:9:in `block in included'
/usr/share/redmine/plugins/scrum v0.10.0/lib/scrum/issue_patch.rb:6:in `class_eval'
/usr/share/redmine/plugins/scrum v0.10.0/lib/scrum/issue_patch.rb:6:in `included'
/usr/share/redmine/plugins/scrum v0.10.0/init.rb:16:in `include'
/usr/share/redmine/plugins/scrum v0.10.0/init.rb:16:in `<top (required)>'
/usr/share/redmine/lib/redmine/plugin.rb:139:in `block in load'
/usr/share/redmine/lib/redmine/plugin.rb:130:in `each'
/usr/share/redmine/lib/redmine/plugin.rb:130:in `load'
/usr/share/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'

#1

Updated by Emilio González Montaña over 9 years ago

According to Redmine install wiki you should be using an older version of Rails (3.2)

#2

Updated by Emilio González Montaña over 9 years ago

  • Target version deleted (Scrum v0.11.0)
#3

Updated by Ben Senior over 9 years ago

Is your suggestion therefore that I roll back to Rails 3.2?

#4

Updated by Emilio González Montaña over 9 years ago

According to Redmine install wiki page YES (http://www.redmine.org/projects/redmine/wiki/RedmineInstall), if you install gems with bundle install you get the exact versions of all needed gems.

#5

Updated by Ben Senior over 9 years ago

I had all sorts of problems with other plugins which I rely on... in the end (I can barely remember just now) I found the only way forward was to upgrade to Ruby 4. Dependency management - the dream which always ends in a nightmare.

#6

Updated by Emilio González Montaña over 9 years ago

Rails 3.2 is mandatory to Remine 2.x.x series + all compatible plugins with those Redmine versions.

Currently I'm migrating the plugin to Redmine 3, but it will take me a while (too much changes...).

Also available in: Atom PDF