Upgrade from 3.1.1 to 3.4.6 fails at db:migrate
Added by Pasi Oja-Nisula over 6 years ago
RHEL 7.4 with Ruby 2.0. One of the gems (redmine_extensions) required newer Ruby, so I installed it from RHSCL repository.
$ ruby -v ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
After this the
bundle install --without test development
goes through fine. But the db:migrate fails like this. Any tips are much appreciated!
$ bundle exec rake db:migrate RAILS_ENV=production rake aborted! NoMethodError: private method `prepend' called for ActionDispatch::Routing::RouteSet::Generator:Class /home/redmine/.gem/ruby/gems/redmine_extensions-0.2.14/lib/redmine_extensions/engine.rb:37:in `block in <class:Engine>' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!' /opt/redmine-3.4.6/config/environment.rb:14:in `<top (required)>' /home/redmine/.gem/ruby/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require' /home/redmine/.gem/ruby/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require' /home/redmine/.gem/ruby/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency' /home/redmine/.gem/ruby/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/application.rb:328:in `require_environment!' /home/redmine/.gem/ruby/gems/railties-4.2.8/lib/rails/application.rb:457:in `block in run_tasks_blocks' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace)
Replies (1)
RE: Upgrade from 3.1.1 to 3.4.6 fails at db:migrate - Added by Pasi Oja-Nisula over 6 years ago
Newbie error. This was an issue with one plugin (redmine_dmsf).
When I moved all plugins away from plugins directory and run db:migrate again, things started working. Then I just tried all plugins one by one and found the problematic one. And eventually I went back a version with the problematic plugin and then there was no ruby issues etc.