Content
Migration from Chiliproject to OpenProject
Added by Niels Przybilla over 9 years ago
Hi,
we want to migrato to openproejct. We tried this way: https://community.openproject.org/topics/226
We have: ChiliProject v3.8.0 running.
I follow:
https://community.openproject.org/projects/14/wiki/From_Chilliproject_to_OpenProject
When installing 2.4.0 with ruby 2.1.5 after bundle install; npm install
When running:
RAILS_ENV=“production” bundle exec rake db:migrate
I have an error as follows:
AddUserFirstLoggedInAndImpairedFields: migrated (0.3953s) = LocalizeEmailHeaderAndFooter: migrating ===
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
private method `write_attribute’ called for #Setting:0x000000095b0780/home/openproject/.rvm/gems/ruby-2.1.5/gems/activemodel-3.2.21/lib/active_model/attribute_methods.rb:404:in `method_missing’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/attribute_methods.rb:149:in `method_missing’
/home/openproject/openproject/db/migrate/20120319095930_localize_email_header_and_footer.rb:41:in `up’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:370:in `up’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block (2 levels) in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:389:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:528:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:720:in `block (2 levels) in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `call’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `ddl_transaction’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:719:in `block in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `each’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:570:in `up’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:551:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval’
/home/openproject/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `
’
NoMethodError: private method `write_attribute’ called for #Setting:0x000000095b0780
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activemodel-3.2.21/lib/active_model/attribute_methods.rb:404:in `method_missing’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/attribute_methods.rb:149:in `method_missing’
/home/openproject/openproject/db/migrate/20120319095930_localize_email_header_and_footer.rb:41:in `up’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:370:in `up’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block (2 levels) in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:389:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:528:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:720:in `block (2 levels) in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `call’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `ddl_transaction’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:719:in `block in migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `each’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:570:in `up’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/migration.rb:551:in `migrate’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activerecord-3.2.21/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval’
/home/openproject/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `
’
Tasks: TOP => db:migrate
(See full trace by running task with —trace)
Any ideas ?
Best wishes
Niels
Replies (1)
Hi Niels,
Did you manage to solve the problem? I also had some while installing OP2.4 but finally made it. I am now facing other issues with the migration from OP 2.4 to OP3.0. I would like to have some feedback from your side.
The migration from OP3.0 to OP4.2 seems quite simple after the workaround of the problems from 2.4 to 3.0.
Cheers
Luis