upgrade to 5.1.0 fail
Added by alex alex 5 months ago
I want to upgrade from 4.2.10 to 5.1.0,but when i execute:bundle exec rake db:migrate RAILS_ENV=production --trace,an error occured:
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
LoadError: cannot load such file -- common
/usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies/zeitwerk_integration.rb:51:in `require_dependency'
/home/web/redmine-5.1.0/plugins/autocopy/init.rb:1:in `<top (required)>'
/home/web/redmine-5.1.0/lib/redmine/plugin_loader.rb:31:in `load'
/home/web/redmine-5.1.0/lib/redmine/plugin_loader.rb:31:in `run_initializer'
/home/web/redmine-5.1.0/lib/redmine/plugin_loader.rb:108:in `each'
/home/web/redmine-5.1.0/lib/redmine/plugin_loader.rb:108:in `block in load'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `instance_exec'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `catch'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `block in default_terminator'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:199:in `block in halting'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `block in invoke_before'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `each'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `invoke_before'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:105:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/reloader.rb:88:in `prepare!'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `call'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!'
/home/web/redmine-5.1.0/config/environment.rb:16:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/application.rb:367:in `require_environment!'
/usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:281:in `each'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke_task'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:138:in `each'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:83:in `block in run'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/lib/rake/application.rb:80:in `run'
/usr/local/rvm/gems/ruby-2.7.2/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.7.2/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.7.2/bin/rake:23:in `<top (required)>'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
/usr/local/rvm/rubies/ruby-2.7.2/bin/bundle:23:in `load'
/usr/local/rvm/rubies/ruby-2.7.2/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
please help me! thanks!!!!!