Project

General

Profile

Redmine Upgrade from 0.8.0 to 2.4.3

Added by Praenom Cognomen over 10 years ago

Hi,

I'm trying to migrate all the data from an old RM install on OS X/Passenger/Apache to a new VM running CentOS/Unicorn/Nginx, and am getting errors on the db migration. The vanilla 2.4.3 install works fine, I can even hook up the svn repo fine, but after I drop/recreate the postgres db and import the data, the rake migrate fails with:

  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Invoke db:load_config (first_time)
  • Execute db:load_config
  • Execute db:migrate
    PopulateMemberRoles: migrating ==========================================
    rake aborted!
    StandardError: An error has occurred, this and all later migrations canceled:

undefined method `inherit_members?' for #<Project:0x7f5d67fbc108>/usr/lib/ruby/gems/1.8/gems/activemodel-3.2.16/lib/active_model/attribute_methods.rb:407:in `method_missing'

The new install:

Environment:
Redmine version 2.4.3.stable
Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter PostgreSQL
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
no plugin installed

The old install:

RAILS_ENV=development script/about
About your application's environment
Ruby version 1.8.6 (i686-darwin)
RubyGems version 1.3.7
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Application root /Volumes/Storage/fotech-redmine/redmine
Environment development
Database adapter postgresql
Database schema version 20090425161243

The old install does use LDAP for some accounts - would this be an issue?

Any help appreciated.