ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Upgrading from redmine 1.1.3 to chiliproject 2.6.0

Added by Tiago Almeida at 2012-01-25 10:06 pm

Hi,

I've moved redmine to chiliproject following the steps in https://www.chiliproject.org/projects/chiliproject/wiki/Upgrade but when doing bundle exec rake db:migrate RAILS_ENV=production i get :

rake db:migrate --trace
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute db:migrate
    BuildInitialJournalsForActsAsJournalized: migrating =====================
    -- Building initial journals for Message
    > 0.0007s
    -
    Building initial journals for Attachment
    > 283.0642s
    -
    Building initial journals for Document
    > 7.5669s
    -
    Building initial journals for Changeset
    > 0.6981s
    -
    Building initial journals for Issue
    > 219.7322s
    -
    Building initial journals for TimeEntry
    rake aborted!
    An error has occurred, all later migrations canceled:

undefined method `journal_class_name' for Object:Class
/servers/sites/projects/vendor/plugins/acts_as_journalized/lib/acts_as_journalized.rb:37:in `journal_class_name'
/servers/sites/projects/vendor/plugins/acts_as_journalized/lib/acts_as_journalized.rb:37:in `journal_class_name'
/servers/sites/projects/vendor/plugins/acts_as_journalized/lib/acts_as_journalized.rb:93:in `journal_class'
./db/migrate//20100714111653_build_initial_journals_for_acts_as_journalized.rb:33:in `up_without_benchmarks'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:328:in `say_with_time'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:328:in `say_with_time'
./db/migrate//20100714111653_build_initial_journals_for_acts_as_journalized.rb:30:in `up_without_benchmarks'
./db/migrate//20100714111653_build_initial_journals_for_acts_as_journalized.rb:29:in `each'
./db/migrate//20100714111653_build_initial_journals_for_acts_as_journalized.rb:29:in `up_without_benchmarks'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:282:in `send'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:282:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:282:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:365:in `__send__'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:365:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:491:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:567:in `call'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:567:in `ddl_transaction'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:490:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:477:in `each'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:477:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:401:in `up'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:383:in `migrate'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/tasks/databases.rake:112
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/rvm/rubies/ree-1.8.7-2011.01/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19

any ideias why?

tks,
tigaszzz


Replies (2)

RE: Upgrading from redmine 1.1.3 to chiliproject 2.6.0 - Added by Felix Schäfer at 2012-01-29 06:03 pm

Tiago, thanks for the report, this seems to be a bug that crept up in recent changes, could you open a bug with this? Thnaks!

RE: Upgrading from redmine 1.1.3 to chiliproject 2.6.0 - Added by Tiago Almeida at 2012-01-30 09:44 am

Sure, i'ved open it , assigned it to you.

Tks,
tigaszzz

(1-2/2)