質問編集履歴
1
エラーメッセージ周辺のエラーログ、ps aux | grep unicornの結果を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,76 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
+
上記エラーメッセージ周辺のエラーログ
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
I, [2021-03-10T08:43:28.849035 #9191] INFO -- : Refreshing Gem list
|
42
|
+
|
43
|
+
I, [2021-03-10T08:43:30.164563 #9191] INFO -- : listening on addr=0.0.0.0:3000
|
44
|
+
|
45
|
+
fd=9
|
46
|
+
|
47
|
+
E, [2021-03-10T08:43:30.164972 #9191] ERROR -- : Can't connect to local MySQL se
|
48
|
+
|
49
|
+
rver through socket '/tmp/mysql.sock' (2) (Mysql2::Error::ConnectionError)
|
50
|
+
|
51
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/m
|
52
|
+
|
53
|
+
ysql2/client.rb:90:in `connect'
|
54
|
+
|
55
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/m
|
56
|
+
|
57
|
+
ysql2/client.rb:90:in `initialize'
|
58
|
+
|
59
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activerecord-6.0.3
|
60
|
+
|
61
|
+
.5/lib/active_record/connection_adapters/mysql2_adapter.rb:24:in `new'
|
62
|
+
|
63
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activerecord-6.0.3
|
64
|
+
|
65
|
+
.5/lib/active_record/connection_adapters/mysql2_adapter.rb:24:in `mysql2_connect
|
66
|
+
|
67
|
+
ion'
|
68
|
+
|
69
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activerecord-6.0.3
|
70
|
+
|
71
|
+
.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:887:in `new
|
72
|
+
|
73
|
+
_connection'
|
74
|
+
|
75
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activerecord-6.0.3
|
76
|
+
|
77
|
+
.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `che
|
78
|
+
|
79
|
+
ckout_new_connection'
|
80
|
+
|
81
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activerecord-6.0.3
|
82
|
+
|
83
|
+
.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:910:in `try
|
84
|
+
|
85
|
+
_to_checkout_new_connection'
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
ps aux | grep unicorn の結果
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
ec2-user 439 0.0 9.3 454636 94576 ? Sl 02:02 0:01 unicorn master -c /var/www/breakpoint_app/current/config/unicorn.rb -E deployment -D
|
96
|
+
|
97
|
+
ec2-user 510 0.0 8.9 455660 90476 ? Sl 02:02 0:00 unicorn worker[0] -c /var/www/breakpoint_app/current/config/unicorn.rb -E deployment -D
|
98
|
+
|
99
|
+
ec2-user 3918 0.0 9.4 458396 95104 ? Sl 03:03 0:01 unicorn_rails master -c config/unicorn.rb -E production -D
|
100
|
+
|
101
|
+
ec2-user 3928 0.0 8.8 458396 89328 ? Sl 03:03 0:00 unicorn_rails worker[0] -c config/unicorn.rb -E production -D
|
102
|
+
|
103
|
+
ec2-user 8641 0.0 0.0 119436 972 pts/0 S+ 04:10 0:00 grep --color=auto unicorn
|
104
|
+
|
105
|
+
```
|
106
|
+
|
37
107
|
|
38
108
|
|
39
109
|
### 試したこと
|