不幸的是,我的Rails应用程序已从4.2.10升级到5.2.1。我附加了您可以找到boot.rb和错误消息。 我在Gemfile中包含了引导。知道有什么问题吗?如果您可以提出解决方案或进一步解决问题,我们将不胜感激。
rails s
=> Booting Puma
=> Rails 5.2.1 application starting in development
=> Run `rails server -h` for more startup options
Exiting
Traceback (most recent call last):
76: from bin/rails:4:in `<main>'
75: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
74: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
73: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
72: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
71: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
70: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
69: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
68: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
67: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<main>'
66: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
65: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
64: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
63: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
62: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
61: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
60: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
59: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:147:in `block in perform'
58: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:51:in `start'
57: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:89:in `log_to_stdout'
56: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
55: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:27:in `app'
54: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
53: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
52: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
51: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
50: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
49: from config.ru:in `<main>'
48: from config.ru:in `new'
47: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
46: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
45: from config.ru:3:in `block in <main>'
44: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
43: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
42: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
41: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
40: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
39: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
38: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
37: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
36: from /home/user/rails_apps/new-auction-bibip/config/environment.rb:5:in `<main>'
35: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!'
34: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers'
33: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
32: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
31: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
30: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:347:in `call'
29: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:347:in `each'
28: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
27: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
26: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:415:in `call'
25: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
24: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `each'
23: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
22: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
21: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
20: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
19: from /usr/share/rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
18: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
17: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run'
16: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec'
15: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/engine.rb:601:in `block in <class:Engine>'
14: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/engine.rb:601:in `each'
13: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/railties-5.2.1/lib/rails/engine.rb:602:in `block (2 levels) in <class:Engine>'
12: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
11: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
10: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
9: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
8: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
7: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
6: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
5: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
4: from /home/user/rails_apps/new-auction-bibip/config/environments/development.rb:1:in `<main>'
3: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
2: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
1: from /home/user/.rvm/gems/ruby-2.5.0@myproject/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
/home/user/.rvm/gems/ruby-2.5.0@myproject/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': cannot load such file -- rails/commands/server (LoadError)
config / boot.rb文件如下:
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.