質問編集履歴

3

修正

2021/03/21 22:17

投稿

pay_561
pay_561

スコア26

test CHANGED
File without changes
test CHANGED
@@ -29,3 +29,115 @@
29
29
 
30
30
 
31
31
  ご教授いただけましたら幸いです。
32
+
33
+
34
+
35
+ ##追記
36
+
37
+ ```ここに言語を入力
38
+
39
+ $sudo rails s -b 0.0.0.0 -p 80
40
+
41
+ => Booting Puma
42
+
43
+ => Rails 6.1.2 application starting in development
44
+
45
+ => Run `bin/rails server --help` for more startup options
46
+
47
+ Puma starting in single mode...
48
+
49
+ * Puma version: 5.2.1 (ruby 2.7.2-p137) ("Fettisdagsbulle")
50
+
51
+ * Min threads: 5
52
+
53
+ * Max threads: 5
54
+
55
+ * Environment: development
56
+
57
+ * PID: 25060
58
+
59
+ Exiting
60
+
61
+ Traceback (most recent call last):
62
+
63
+ 39: from bin/rails:2:in `<main>'
64
+
65
+ 38: from bin/rails:2:in `load'
66
+
67
+ 37: from /home/ec2-user/game-bug-app/src/bin/spring:7:in `<top (required)>'
68
+
69
+ 36: from /home/ec2-user/game-bug-app/src/bin/spring:7:in `tap'
70
+
71
+ 35: from /home/ec2-user/game-bug-app/src/bin/spring:10:in `block in <top (required)>'
72
+
73
+ 34: from /home/ec2-user/game-bug-app/src/bin/spring:10:in `require'
74
+
75
+ 33: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
76
+
77
+ 32: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
78
+
79
+ 31: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
80
+
81
+ 30: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
82
+
83
+ 29: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
84
+
85
+ 28: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
86
+
87
+ 27: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
88
+
89
+ 26: from /home/ec2-user/game-bug-app/src/bin/rails:5:in `<top (required)>'
90
+
91
+ 25: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
92
+
93
+ 24: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
94
+
95
+ 23: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
96
+
97
+ 22: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
98
+
99
+ 21: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
100
+
101
+ 20: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/commands.rb:18:in `<main>'
102
+
103
+ 19: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/command.rb:50:in `invoke'
104
+
105
+ 18: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/command/base.rb:69:in `perform'
106
+
107
+ 17: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
108
+
109
+ 16: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
110
+
111
+ 15: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
112
+
113
+ 14: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:135:in `perform'
114
+
115
+ 13: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:135:in `tap'
116
+
117
+ 12: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:144:in `block in perform'
118
+
119
+ 11: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:39:in `start'
120
+
121
+ 10: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:327:in `start'
122
+
123
+ 9: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/rack/handler/puma.rb:72:in `run'
124
+
125
+ 8: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/launcher.rb:181:in `run'
126
+
127
+ 7: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/single.rb:44:in `run'
128
+
129
+ 6: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/runner.rb:144:in `load_and_bind'
130
+
131
+ 5: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/binder.rb:152:in `parse'
132
+
133
+ 4: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/binder.rb:152:in `each'
134
+
135
+ 3: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/binder.rb:169:in `block in parse'
136
+
137
+ 2: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/binder.rb:288:in `add_tcp_listener'
138
+
139
+ 1: from /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/binder.rb:288:in `new'
140
+
141
+ /home/ec2-user/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.2.1/lib/puma/binder.rb:288:in `initialize': Permission denied - bind(2) for "0.0.0.0" port 80 (Errno::EACCES)
142
+
143
+ ```

2

修正

2021/03/21 22:17

投稿

pay_561
pay_561

スコア26

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,10 @@
1
1
  ##前提・困っていること
2
2
 
3
3
  現在RailsアプリをAWS上にデプロイをしたいのですが、EC2のセキュリティグループで詰まっています。
4
+
5
+
6
+
7
+ サーバーはデフォルとのPuma使用しています。
4
8
 
5
9
 
6
10
 

1

修正

2021/03/21 21:51

投稿

pay_561
pay_561

スコア26

test CHANGED
File without changes
test CHANGED
@@ -16,4 +16,12 @@
16
16
 
17
17
 
18
18
 
19
+ またこのとき、rails serverに接続する際のコマンドは3000番ポートに接続したコマンドと同じく
20
+
21
+ bundle exec rails s -b 0.0.0.0 で接続するのしょうか。
22
+
23
+
24
+
25
+
26
+
19
27
  ご教授いただけましたら幸いです。