質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

2回答

781閲覧

railsのサーバー軌道の際のエラー

alexanderpierce

総合スコア2

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2021/03/30 16:00

前提・実現したいこと

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を使っています。
ここにより詳細な情報を記載してください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

Gemfileのbootsnapとwebpackerをコメントアウトしたところサーバーを起動することができました。

投稿2021/04/03 10:35

alexanderpierce

総合スコア2

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

ベストアンサー

invalid multibyte character があるので文字codeが混乱しているのかも。Windwsか、、、、
全てのfileの日本語が UTF-8 で書かれていて、shift-jisが混じっていないことを確認してください
日本後が無い様に見えてじつは全角の空白がある なんてこともあるので注意。

投稿2021/03/30 21:16

winterboum

総合スコア23401

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問