aws cloud9からmacのローカル環境に移行した際にrails sを普通に打つと、うまく起動しないです。
このエラーの根本的な問題はどこにあるのでしょうか?
また、どうすれば解決できますでしょうか?
base) user-no-MacBook-Air:tradenote user$ rails s => Booting Puma => Rails 5.2.4.1 application starting in development => Run `rails server -h` for more startup options Puma starting in single mode... * Version 3.12.2 (ruby 2.6.3-p62), codename: Llamas in Pajamas * Min threads: 5, max threads: 5 * Environment: development Exiting Traceback (most recent call last): 41: from bin/rails:3:in `<main>' 40: from bin/rails:3:in `load' 39: from /Users/user/Documents/git_hub/tradenote/bin/spring:15:in `<top (required)>' 38: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 37: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 36: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>' 35: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load' 34: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>' 33: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run' 32: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call' 31: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call' 30: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load' 29: from /Users/user/Documents/git_hub/tradenote/bin/rails:9:in `<top (required)>' 28: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require' 27: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency' 26: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require' 25: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 24: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 23: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 22: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 21: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 20: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/commands.rb:18:in `<main>' 19: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/command.rb:46:in `invoke' 18: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/command/base.rb:69:in `perform' 17: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch' 16: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' 15: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' 14: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:142:in `perform' 13: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:142:in `tap' 12: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:147:in `block in perform' 11: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:53:in `start' 10: from /Library/Ruby/Gems/2.6.0/gems/rack-2.1.1/lib/rack/server.rb:329:in `start' 9: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/rack/handler/puma.rb:73:in `run' 8: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:186:in `run' 7: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/single.rb:98:in `run' 6: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/runner.rb:153:in `load_and_bind' 5: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/binder.rb:90:in `parse' 4: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/binder.rb:90:in `each' 3: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/binder.rb:106:in `block in parse' 2: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/binder.rb:273:in `add_tcp_listener' 1: from /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/binder.rb:273:in `new' /Library/Ruby/Gems/2.6.0/gems/puma-3.12.2/lib/puma/binder.rb:273:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
補足情報
rails server -b [IPアドレス] -dした場合、一応起動はしました。
ただ、rails sと普通に入力して仮想サーバーを起動させたいです。
よろしくお願い申し上げます。
追加
ruby
1#puma.rb 2# Puma can serve each request in a thread from an internal thread pool. 3# The `threads` method setting takes two numbers: a minimum and maximum. 4# Any libraries that use thread pools should be configured to match 5# the maximum value specified for Puma. Default is set to 5 threads for minimum 6# and maximum; this matches the default thread size of Active Record. 7# 8threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } 9threads threads_count, threads_count 10 11# Specifies the `port` that Puma will listen on to receive requests; default is 3000. 12# 13port ENV.fetch("PORT") { 3000 } 14 15# Specifies the `environment` that Puma will run in. 16# 17environment ENV.fetch("RAILS_ENV") { "development" } 18 19# Specifies the number of `workers` to boot in clustered mode. 20# Workers are forked webserver processes. If using threads and workers together 21# the concurrency of the application would be max `threads` * `workers`. 22# Workers do not work on JRuby or Windows (both of which do not support 23# processes). 24# 25# workers ENV.fetch("WEB_CONCURRENCY") { 2 } 26 27# Use the `preload_app!` method when specifying a `workers` number. 28# This directive tells Puma to first boot the application and load code 29# before forking the application. This takes advantage of Copy On Write 30# process behavior so workers use less memory. 31# 32# preload_app! 33 34# Allow puma to be restarted by `rails restart` command. 35plugin :tmp_restart
あなたの回答
tips
プレビュー