質問編集履歴
6
発生している問題・エラーメッセージ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,6 +19,9 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
### 発生している問題・エラーメッセージ
|
22
|
+
Doker-composeでローカル環境での動作確認
|
23
|
+
localhost:80は502エラーでした
|
24
|
+
|
22
25
|
|
23
26
|
```
|
24
27
|
ロードバランサーのログ
|
@@ -37,8 +40,14 @@
|
|
37
40
|
### 試したこと
|
38
41
|
Doker-composeでローカル環境での動作確認
|
39
42
|
localhost:3000にアクセスできました。(Railsの画面)
|
43
|
+
ただしlocalhost:80は502エラーでした
|
44
|
+
nginxのエラーログを確認するとなにも書き込まれていません
|
45
|
+
nginxもunicornも起動していました。
|
46
|
+
/tmp/sockets/.unicorn.sock
|
47
|
+
もあります
|
40
48
|
|
41
49
|
ECSのログでunicornとnginxは問題なく立ち上がっている
|
50
|
+
|
42
51
|
|
43
52
|
ドメインにアクセスはできるが503/504エラー
|
44
53
|
|
5
セキュリティグループ周りとタスク定義追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,4 +65,17 @@
|
|
65
65
|
](https://ddjkaamml8q8x.cloudfront.net/questions/2023-11-20/6b284a12-61ce-4f40-9c0e-f68e77fb9a0a.png)
|
66
66
|

|
67
67
|
|
68
|
+
### セキュリティグループ周り
|
69
|
+

|
70
|
+

|
71
|
+

|
72
|
+

|
73
|
+

|
68
74
|
|
75
|
+
### タスク定義
|
76
|
+

|
77
|
+

|
78
|
+

|
79
|
+

|
80
|
+

|
81
|
+
|
4
発生している問題・エラーメッセージ追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,6 +27,9 @@
|
|
27
27
|
```
|
28
28
|
ヘルスチェックのエラー
|
29
29
|
ターゲットグループを確認するとタイムアウトになっていた
|
30
|
+
|
31
|
+
Amazon ECS Exec(https://techblog.styleedge.co.jp/entry/2023/05/31/083500) ECS SSH接続 RDS(https://teratail.com/questions/v1nruunpzn1nsx)
|
32
|
+
などMacからのターミナル操作も失敗します。
|
30
33
|
|
31
34
|
### 該当のソースコード
|
32
35
|
https://github.com/yon-s/cat-img-api/pull/8
|
@@ -61,3 +64,5 @@
|
|
61
64
|
### ターゲットグループ周り
|
62
65
|
](https://ddjkaamml8q8x.cloudfront.net/questions/2023-11-20/6b284a12-61ce-4f40-9c0e-f68e77fb9a0a.png)
|
63
66
|

|
67
|
+
|
68
|
+
|
3
ターゲットグループ周り追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,3 +60,4 @@
|
|
60
60
|
|
61
61
|
### ターゲットグループ周り
|
62
62
|
](https://ddjkaamml8q8x.cloudfront.net/questions/2023-11-20/6b284a12-61ce-4f40-9c0e-f68e77fb9a0a.png)
|
63
|
+

|
2
サービス作成設定ターゲットグループ周り追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,4 +55,8 @@
|
|
55
55
|
|
56
56
|
cat-img-api/nginx/nginx.confの設定ミス?
|
57
57
|
|
58
|
+
### サービス作成設定
|
59
|
+
](https://ddjkaamml8q8x.cloudfront.net/questions/2023-11-20/2acf0311-2bf3-4367-b9bc-7d820d53d9ff.png)](https://ddjkaamml8q8x.cloudfront.net/questions/2023-11-20/56f0693a-60d2-4777-8de7-2c2c4dd79626.png)
|
58
60
|
|
61
|
+
### ターゲットグループ周り
|
62
|
+
](https://ddjkaamml8q8x.cloudfront.net/questions/2023-11-20/6b284a12-61ce-4f40-9c0e-f68e77fb9a0a.png)
|
1
ロードバランサーのログ変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,15 +17,12 @@
|
|
17
17
|
|
18
18
|
サーバ環境 unicornとnginx
|
19
19
|
|
20
|
-
(例)
|
21
|
-
TypeScriptで●●なシステムを作っています。
|
22
|
-
■■な機能を実装中に以下のエラーメッセージが発生しました。
|
23
20
|
|
24
21
|
### 発生している問題・エラーメッセージ
|
25
22
|
|
26
23
|
```
|
27
24
|
ロードバランサーのログ
|
28
|
-
この
|
25
|
+
このエントリは、Cloudflare経由でのリクエストがタイムアウトし、504 Gateway Timeoutが発生したことを示しています。クライアントからのリクエストがターゲットに正常に転送されなかった可能性があります。
|
29
26
|
|
30
27
|
```
|
31
28
|
ヘルスチェックのエラー
|