前提・実現したいこと
railsのサーバーを起動させたいです。
ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
rails s を入力すると次のようなエラーが出ます。エラーの出た箇所を見てみましたがよくわかりませんでした
発生している問題・エラーメッセージ
エラーメッセージ 70: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 69: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/commands.rb:18:in `<top (required)>' 68: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/command.rb:50:in `invoke' 67: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/command/base.rb:69:in `perform' 66: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch' 65: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' 64: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run' 63: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/commands/server/server_command.rb:135:in `perform' 62: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/commands/server/server_command.rb:135:in `tap' 61: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/commands/server/server_command.rb:144:in `block in perform' 60: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/commands/server/server_command.rb:37:in `start' 59: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout' 58: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app' 57: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app' 56: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config' 55: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file' 54: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file' 53: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string' 52: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval' 51: from config.ru:3:in `block in <main>' 50: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative' 49: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `require' 48: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:299:in `load_dependency' 47: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `block in require' 46: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' 45: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 44: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 43: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 42: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 41: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 40: from C:/Users/username/zip_app/config/environment.rb:5:in `<top (required)>' 39: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/application.rb:384:in `initialize!' 38: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:60:in `run_initializers' 37: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each' 36: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each' 35: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component' 34: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:347:in `call' 33: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:347:in `each' 32: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component' 31: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from' 30: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' 29: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each' 28: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:61:in `block in run_initializers' 27: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:32:in `run' 26: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:32:in `instance_exec' 25: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-6.1.3.1/lib/active_record/railtie.rb:228:in `block in <class:Railtie>' 24: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `require' 23: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:299:in `load_dependency' 22: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `block in require' 21: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' 20: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 19: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 18: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 17: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 16: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 15: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-6.1.3.1/lib/active_record/railties/controller_runtime.rb:4:in `<top (required)>' 14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `require' 13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:299:in `load_dependency' 12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `block in require' 11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' 10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-6.1.3.1/lib/active_record/log_subscriber.rb:3:in `<top (required)>' 4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-6.1.3.1/lib/active_record/log_subscriber.rb:4:in `<module:ActiveRecord>' 3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-6.1.3.1/lib/active_record/log_subscriber.rb:7:in `<class:LogSubscriber>' 2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-6.1.3.1/lib/active_record/log_subscriber.rb:7:in `new' 1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/backtrace_cleaner.rb:34:in `initialize' C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-6.1.3.1/lib/active_support/backtrace_cleaner.rb:94:in `add_gem_filter': invalid multibyte character (ArgumentError) ### 該当のソースコード ```ここに言語名を入力 ソースコード
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
rubyは2.5.8, railsが6.1.3でデータベースはsqlite3では全くうまくいかなかったのでmysqlを使っています。
ここにより詳細な情報を記載してください。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。