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.

database migration from redmine 1.1.1 to chiliproject stops with error message Change(#?????????) expected, got Array(#????????) (Bug #684)


Added by Tammo Tjarks at 2011-11-05 10:10 pm. Updated at 2011-11-06 11:14 am.


Status:Duplicate Start date:2011-11-05
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Remote issue URL: Affected version:

Description

When the data base migration is started with:

rake db:migrate RAILS_ENV=production --trace

I got for ruby version 1.9.2 as well as 1.8.7 the stack trace:

tjarks: rake db:migrate RAILS_ENV=production --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
==  BuildInitialJournalsForActsAsJournalized: migrating =======================
-- Building initial journals for Message
   -> 0.0012s
-- Building initial journals for Attachment
   -> 3.8173s
-- Building initial journals for Document
   -> 0.0424s
-- Building initial journals for Changeset
rake aborted!
An error has occurred, all later migrations canceled:

Change(#23456303835880) expected, got Array(#23995044548140)
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:259:in `raise_on_type_mismatch'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:321:in `replace'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:321:in `each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:321:in `replace'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations.rb:1331:in `changes='
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:149:in `send'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:149:in `send'
/home/lib_tcqa/bugtracker/chiliproject-2.4.0/app/models/journal.rb:112:in `method_missing'
/home/lib_tcqa/bugtracker/chiliproject-2.4.0/vendor/plugins/acts_as_journalized/lib/redmine/acts/journalized/creation.rb:92:in `recreate_initial_journal!'
./db/migrate//20100714111653_build_initial_journals_for_acts_as_journalized.rb:45:in `up_without_benchmarks'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/batches.rb:26:in `find_each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/batches.rb:26:in `each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/batches.rb:26:in `find_each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/batches.rb:66:in `find_in_batches'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/batches.rb:25:in `find_each'
./db/migrate//20100714111653_build_initial_journals_for_acts_as_journalized.rb:41:in `up_without_benchmarks'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:328:in `say_with_time'
/opt/ruby/1.8.7/lib/ruby/1.8/benchmark.rb:293:in `measure'
/opt/ruby/1.8.7/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'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:282:in `send'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:282:in `migrate'
/opt/ruby/1.8.7/lib/ruby/1.8/benchmark.rb:293:in `measure'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:282:in `migrate'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:365:in `__send__'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:365:in `migrate'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:491:in `migrate'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:567:in `call'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:567:in `ddl_transaction'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:490:in `migrate'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:477:in `each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:477:in `migrate'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:401:in `up'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/migration.rb:383:in `migrate'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/tasks/databases.rake:112
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/opt/ruby/1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/opt/ruby/1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/opt/ruby/1.8.7/bin/rake:19:in `load'
/opt/ruby/1.8.7/bin/rake:19
Tasks: TOP => db:migrate
tjarks: which rake
/opt/ruby/1.8.7/bin/rake
tjarks: ruby --versopm
ruby: invalid option --versopm  (-h will show valid options)
tjarks: ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

For version 1.9.2 see also :
https://www.chiliproject.org/boards/1/topics/901

The used ruby versions are compiled for 64 bit-architecture (amd).


Related issues

duplicates Bug #554: Failed to migrate from 1.2.0 to 2.1.0 with Ruby 1.9.2 Closed 2011-07-31

History

Updated by Tammo Tjarks at 2011-11-05 10:11 pm

Relation to issue #554 (Do not find the option to set "related to" in the issue).

Updated by Holger Just at 2011-11-06 11:14 am

This is an exact duplicate of #554. Closing as such.

  • Status changed from Open to Duplicate

Also available in: Atom PDF