Project

General

Profile

Update from Redmine 2.6.2.stable to 3.0.1 issues

Added by Fernando Possebon over 9 years ago

Hi all,

I'm trying to migrate my Redmine server from 2.6.2 version to 3.0.1

Besides a problem with a particular plugin (redmine_hide_estimated_hours_permission) that I removed from plugin folder, I'm having this error message when I execute: bundle exec rake db:migrate RAILS_ENV=production

[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
rake aborted!
ArgumentError: Unknown key: :conditions. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :dependent, :primary_key, :inverse_of, :required, :as, :foreign_type
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:75:in `block in assert_valid_keys'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:73:in `each_key'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:73:in `assert_valid_keys'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:82:in `validate_options'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:62:in `initialize'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:47:in `new'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:47:in `create_builder'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:35:in `build'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations.rb:1385:in `has_one'
/var/www/html/redmine/plugins/extra_queries/lib/extra_queries/issue_query_patch.rb:9:in `block in included'
/var/www/html/redmine/plugins/extra_queries/lib/extra_queries/issue_query_patch.rb:5:in `class_eval'
/var/www/html/redmine/plugins/extra_queries/lib/extra_queries/issue_query_patch.rb:5:in `included'
/var/www/html/redmine/plugins/extra_queries/init.rb:23:in `include'
/var/www/html/redmine/plugins/extra_queries/init.rb:23:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in `instance_exec'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in `block in make_lambda'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_prepare_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'
/usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:55:in `prepare!'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application/finisher.rb:50:in `block in <module:Finisher>'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
/var/www/html/redmine/config/environment.rb:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:328:in `require_environment!'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:443:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
[root@tm-redminedev redmine]# rails -v
Rails 4.2.0

I followed the upgrade procedure on http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

Any help?


Replies (5)

RE: Update from Redmine 2.6.2.stable to 3.0.1 issues - Added by Leonel Iturralde over 9 years ago

Hi,
The plugin extra_queries says that is only compatible with Redmine 2.6.x, 2.5.x, 2.4.x, 2.3.x

RE: Update from Redmine 2.6.2.stable to 3.0.1 issues - Added by Fernando Possebon over 9 years ago

Hi thanks for your reply.

I did not noticed that there was a message about the extra_queries plugin.

Even removing the extra_queries plugin, I still have issues

[root@tm-redminedev redmine]# bundle exec rake db:migrate RAILS_ENV=production
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
rake aborted!
ArgumentError: Unknown key: :include. 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, :foreign_type
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:75:in `block in assert_valid_keys'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:73:in `each_key'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:73:in `assert_valid_keys'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:82:in `validate_options'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:62:in `initialize'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/collection_association.rb:18:in `initialize'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:47:in `new'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:47:in `create_builder'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations/builder/association.rb:35:in `build'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/associations.rb:1258:in `has_many'
/var/www/html/redmine/plugins/global_roles/lib/global_roles/role_patch.rb:12:in `block in included'
/var/www/html/redmine/plugins/global_roles/lib/global_roles/role_patch.rb:7:in `class_eval'
/var/www/html/redmine/plugins/global_roles/lib/global_roles/role_patch.rb:7:in `included'
/var/www/html/redmine/plugins/global_roles/init.rb:19:in `include'
/var/www/html/redmine/plugins/global_roles/init.rb:19:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in `instance_exec'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in `block in make_lambda'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_prepare_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'
/usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:55:in `prepare!'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application/finisher.rb:50:in `block in <module:Finisher>'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
/var/www/html/redmine/config/environment.rb:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:328:in `require_environment!'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:443:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

I don't know Ruby and Rails but I believe that is something related with activesupport

RE: Update from Redmine 2.6.2.stable to 3.0.1 issues - Added by Leonel Iturralde over 9 years ago

it seems you have another plugin global_roles which is not compatible with redmine-3.0.0.

I don't know Ruby and Rails but I believe that is something related with activesupport

it seems the plugin does not support activesupport version 4.2.

RE: Update from Redmine 2.6.2.stable to 3.0.1 issues - Added by trianglesis trianglesis over 9 years ago

I have delete all plugins before rake:

root@tet-redmine www/redmine# rake generate_secret_token
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead

It looks looks there are MORE unsupported plugins can be found for ver. 3.0.1

RE: Update from Redmine 2.6.2.stable to 3.0.1 issues - Added by trianglesis trianglesis over 9 years ago

Guys, this is a really bad update, when almost all needed plugins lost for me:

  • redmine_digest
  • global_roles
  • redmine_ckeditor
  • redmine_people
  • hooks_manager
  • redmine_issue_checklist

It`s not a game-fun-lol plugins, they are required for normal and usual workflow.

    (1-5/5)