質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -34,4 +34,13 @@
|
|
34
34
|
|
35
35
|
#最後に
|
36
36
|
サーバーの再起動もしましたが、改善しません。
|
37
|
-
対処方法を教えてくださいますと助かります。
|
37
|
+
対処方法を教えてくださいますと助かります。
|
38
|
+
|
39
|
+
#追記
|
40
|
+
下記のコードを実行したところ、gunicornのサービスが無効になっていました。
|
41
|
+
起動方法はわからずのままです。
|
42
|
+
```
|
43
|
+
$ sudo systemctl list-unit-files | grep gunicorn
|
44
|
+
gunicorn.service disabled
|
45
|
+
gunicorn.socket enabled
|
46
|
+
```
|
1
補足
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,42 +7,31 @@
|
|
7
7
|
|
8
8
|
#エラー内容
|
9
9
|
```
|
10
|
+
$ systemctl status gunicorn
|
10
11
|
● gunicorn.service - gunicorn daemon
|
11
12
|
Loaded: loaded (/etc/systemd/system/gunicorn.service; disabled; vendor preset: enabled)
|
12
|
-
Active: failed (Result: exit-code) since
|
13
|
+
Active: failed (Result: exit-code) since Mon 2020-10-12 00:57:02 UTC; 12min ago
|
14
|
+
Process: 1948 ExecStart=/home/ubuntu/boardproject/boardprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/run/gunicorn.sock boa
|
13
|
-
Main PID:
|
15
|
+
Main PID: 1948 (code=exited, status=1/FAILURE)
|
14
16
|
|
15
|
-
Oct
|
17
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: File "/home/ubuntu/boardproject/boardprojectenv/lib/python3.6/site-packages/gunicorn/arbiter.py"
|
16
|
-
Oct
|
18
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: self.reap_workers()
|
17
|
-
Oct
|
19
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: File "/home/ubuntu/boardproject/boardprojectenv/lib/python3.6/site-packages/gunicorn/arbiter.py"
|
18
|
-
Oct
|
20
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
|
19
|
-
Oct 09 08:59:24 ip-172-31-5-157 gunicorn[26415]: File "/home/ubuntu/boardproject/boardprojectenv/lib/python3.6/site-packages/django/apps/config.
|
20
|
-
Oct 09 08:59:24 ip-172-31-5-157 gunicorn[26415]: % (mod_path, cls_name, ', '.join(candidates))
|
21
|
-
Oct
|
21
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
|
22
|
-
Oct 09 08:59:24 ip-172-31-5-157 gunicorn[26415]: [2020-10-09 17:59:24 +0900] [26447] [INFO] Worker exiting (pid: 26447)
|
23
|
-
Oct
|
22
|
+
Oct 12 00:57:02 ip-172-31-5-157 systemd[1]: gunicorn.service: Main process exited, code=exited, status=1/FAILURE
|
23
|
+
Oct 12 00:57:02 ip-172-31-5-157 systemd[1]: gunicorn.service: Failed with result 'exit-code'.
|
24
|
+
Oct 12 00:57:02 ip-172-31-5-157 systemd[1]: gunicorn.service: Start request repeated too quickly.
|
24
25
|
```
|
25
26
|
|
26
27
|
#試したこと
|
27
28
|
「ps aux | grep gunicorn」の後に「sudo pkill gunicorn」を
|
28
29
|
実行してみましたが、削除することが出来ませんでした。
|
29
30
|
```
|
30
|
-
ubuntu 26260 0.0 0.6 65400 6152 pts/0 T 08:53 0:00 systemctl status gunicorn.service
|
31
|
-
ubuntu 26313 0.0 0.5 65400 5976 pts/0 T 08:53 0:00 systemctl status gunicorn.service
|
32
|
-
ubuntu 26330 0.0 0.6 65400 6100 pts/0 T 08:56 0:00 systemctl status gunicorn
|
33
|
-
ubuntu 26347 0.0 0.5 65400 5708 pts/0 T 08:58 0:00 systemctl start gunicorn.service
|
34
|
-
ubuntu 26398 0.0 0.5 65400 5720 pts/0 T 08:58 0:00 systemctl start gunicorn.service
|
35
|
-
ubuntu 26405 0.0 0.5 65400 5992 pts/0 T 08:58 0:00 systemctl status gunicorn
|
36
|
-
ubuntu 26460 0.0 0.6 65400 6160 pts/0 T 08:59 0:00 systemctl status gunicorn
|
37
|
-
root 26492 0.0 0.4 68296 4340 pts/0 T 09:02 0:00 sudo vim /etc/systemd/system/gunicorn.socket
|
38
|
-
root 26493 0.0 0.9 55744 9188 pts/0 T 09:02 0:00 vim /etc/systemd/system/gunicorn.socket
|
39
|
-
root 26495 0.0 0.4 68296 4400 pts/0 T 09:02 0:00 sudo vim /etc/systemd/system/gunicorn.service
|
40
|
-
root 26496 0.0 0.9 55744 9080 pts/0 T 09:02 0:00 vim /etc/systemd/system/gunicorn.service
|
41
|
-
ubuntu 26536 0.0 0.5 65400 5968 pts/0 T 09:03 0:00 systemctl status gunicorn
|
42
|
-
ubuntu 26802 0.0 0.6 65400 6020 pts/0 T 09:11 0:00 systemctl status gunicorn
|
43
|
-
ubuntu
|
31
|
+
ubuntu 2101 0.0 0.1 14852 1008 pts/0 S+ 01:10 0:00 grep --color=auto gunicorn
|
32
|
+
↑ここの数字が増えるだけ
|
44
33
|
```
|
45
34
|
|
46
35
|
#最後に
|
47
|
-
|
36
|
+
サーバーの再起動もしましたが、改善しません。
|
48
|
-
|
37
|
+
対処方法を教えてくださいますと助かります。
|