Project

General

Profile

upgrade to 5.1.0 ,and run fail

Added by alex alex 5 months ago

i I followed the official document:RedmineUpgrade to update my redmine version to 5.1.0,but when i execute: bundle exec rails server,an error occured:


=> Booting WEBrick
=> Rails 6.1.7.6 application starting in development http://localhost:3000
=> Run `bin/rails server --help` for more startup options
Exiting
Traceback (most recent call last):
        65: from bin/rails:4:in `<main>'
        64: from bin/rails:4:in `require'
        63: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/commands.rb:18:in `<top (required)>'
        62: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/command.rb:48:in `invoke'
        61: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/command/base.rb:69:in `perform'
        60: from /usr/local/rvm/gems/ruby-2.7.2/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
        59: from /usr/local/rvm/gems/ruby-2.7.2/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
        58: from /usr/local/rvm/gems/ruby-2.7.2/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
        57: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:135:in `perform'
        56: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:135:in `tap'
        55: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:144:in `block in perform'
        54: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:37:in `start'
        53: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
        52: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/server.rb:422:in `wrapped_app'
        51: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/server.rb:249:in `app'
        50: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/server.rb:349:in `build_app_and_options_from_config'
        49: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/builder.rb:66:in `parse_file'
        48: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/builder.rb:105:in `load_file'
        47: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/builder.rb:116:in `new_from_string'
        46: from /usr/local/rvm/gems/ruby-2.7.2/gems/rack-2.2.9/lib/rack/builder.rb:116:in `eval'
        45: from config.ru:3:in `block in <main>'
        44: from config.ru:3:in `require_relative'
        43: from /home/web/redmine-5.1.0/config/environment.rb:16:in `<top (required)>'
        42: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!'
        41: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers'
        40: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
        39: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
        38: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
        37: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `call'
        36: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each'
        35: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
        34: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:415:in `each_strongly_connected_component_from'
        33: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:415:in `call'
        32: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:50:in `tsort_each_child'
        31: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:50:in `each'
        30: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
        29: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
        28: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        27: from /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'
        26: from /usr/local/rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
        25: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers'
        24: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run'
        23: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec'
        22: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/engine.rb:570:in `block in <class:Engine>'
        21: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/engine.rb:570:in `each'
        20: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/engine.rb:571:in `block (2 levels) in <class:Engine>'
        19: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require'
        18: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency'
        17: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require'
        16: from /usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
        15: from /usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
        14: from /home/web/redmine-5.1.0/config/environments/development.rb:5:in `<top (required)>'
        13: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/railtie.rb:234:in `configure'
        12: from /usr/local/rvm/gems/ruby-2.7.2/gems/railties-6.1.7.6/lib/rails/railtie.rb:234:in `instance_eval'
        11: from /home/web/redmine-5.1.0/config/environments/development.rb:58:in `block in <top (required)>'
        10: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require'
         9: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency'
         8: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require'
         7: from /usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
         6: from /usr/local/rvm/gems/ruby-2.7.2/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
         5: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/evented_file_update_checker.rb:6:in `<top (required)>'
         4: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require'
         3: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency'
         2: from /usr/local/rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require'
         1: from /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': cannot load such file -- listen (LoadError)

env info:
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
rails :Rails 6.1.7.6
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic


Replies (2)

RE: upgrade to 5.1.0 ,and run fail - Added by alex alex 5 months ago

i had solved this issue,thx

RE: upgrade to 5.1.0 ,and run fail - Added by Holger Just 5 months ago

Could you quickly describe what you did to fix this to help others to get unstuck themselves?

    (1-2/2)