前提・実現したいこと
railsでサーバーを立ち上げる
<開発環境>
awsのcloud9でrubyonrailsを利用してweleveという名前のwebアプリケーションを開発しています。DBはMySQLを利用しています
発生している問題・エラーメッセージ
ec2-user:~/environment/weleve (master) $ 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.4 (ruby 2.5.1-p57), codename: Llamas in Pajamas
- Min threads: 5, max threads: 5
- Environment: development
Exiting
Traceback (most recent call last):
43: from bin/rails:3:in <main>' 42: from bin/rails:3:in
load'
41: from /home/ec2-user/environment/weleve/bin/spring:15:in <top (required)>' 40: from /home/ec2-user/environment/weleve/bin/spring:15:in
require'
39: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in <top (required)>' 38: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in
load'
37: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/bin/spring:49:in <top (required)>' 36: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client.rb:30:in
run'
35: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client/command.rb:7:in call' 34: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in
call'
33: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in load' 32: from /home/ec2-user/environment/weleve/bin/rails:9:in
<top (required)>'
31: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in require' 30: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in
load_dependency'
29: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in block in require' 28: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in
require'
27: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' 26: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in
register'
25: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' 24: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in
require'
23: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands.rb:18:in <top (required)>' 22: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/command.rb:46:in
invoke'
21: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/command/base.rb:69:in perform' 20: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/thor-1.0.1/lib/thor.rb:392:in
dispatch'
19: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 18: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
17: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:142:in perform' 16: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:142:in
tap'
15: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:147:in block in perform' 14: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:53:in
start'
13: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/rack-2.2.2/lib/rack/server.rb:327:in start' 12: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/rack/handler/puma.rb:73:in
run'
11: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/launcher.rb:186:in run' 10: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/single.rb:98:in
run'
9: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/runner.rb:153:in load_and_bind' 8: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:90:in
parse'
7: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:90:in each' 6: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:106:in
block in parse'
5: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:266:in add_tcp_listener' 4: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:266:in
each'
3: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:267:in block in add_tcp_listener' 2: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:273:in
add_tcp_listener'
1: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/puma-3.12.4/lib/puma/binder.rb:273:in `new'
試したこと
〇server.pidファイルを削除
〇再度ターミナルを立ち上げる
補足情報(FW/ツールのバージョンなど)
rails初心者です。サーバーを立ち上げたままターミナルを閉じてしまったことが原因だと思うのですが...どなたかご教授いただければ幸いです。