質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -71,3 +71,21 @@
|
|
71
71
|
サーバーの再起動もしましたが、改善しません。
|
72
72
|
|
73
73
|
対処方法を教えてくださいますと助かります。
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
#追記
|
78
|
+
|
79
|
+
下記のコードを実行したところ、gunicornのサービスが無効になっていました。
|
80
|
+
|
81
|
+
起動方法はわからずのままです。
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
$ sudo systemctl list-unit-files | grep gunicorn
|
86
|
+
|
87
|
+
gunicorn.service disabled
|
88
|
+
|
89
|
+
gunicorn.socket enabled
|
90
|
+
|
91
|
+
```
|
1
補足
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,33 +16,35 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
+
$ systemctl status gunicorn
|
20
|
+
|
19
21
|
● gunicorn.service - gunicorn daemon
|
20
22
|
|
21
23
|
Loaded: loaded (/etc/systemd/system/gunicorn.service; disabled; vendor preset: enabled)
|
22
24
|
|
23
|
-
Active: failed (Result: exit-code) since
|
25
|
+
Active: failed (Result: exit-code) since Mon 2020-10-12 00:57:02 UTC; 12min ago
|
24
26
|
|
27
|
+
Process: 1948 ExecStart=/home/ubuntu/boardproject/boardprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/run/gunicorn.sock boa
|
28
|
+
|
25
|
-
Main PID:
|
29
|
+
Main PID: 1948 (code=exited, status=1/FAILURE)
|
26
30
|
|
27
31
|
|
28
32
|
|
29
|
-
Oct
|
33
|
+
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"
|
30
34
|
|
31
|
-
Oct
|
35
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: self.reap_workers()
|
32
36
|
|
33
|
-
Oct
|
37
|
+
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"
|
34
38
|
|
35
|
-
Oct
|
39
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
|
36
40
|
|
37
|
-
Oct
|
41
|
+
Oct 12 00:57:01 ip-172-31-5-157 gunicorn[1948]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
|
38
42
|
|
39
|
-
Oct
|
43
|
+
Oct 12 00:57:02 ip-172-31-5-157 systemd[1]: gunicorn.service: Main process exited, code=exited, status=1/FAILURE
|
40
44
|
|
41
|
-
Oct
|
45
|
+
Oct 12 00:57:02 ip-172-31-5-157 systemd[1]: gunicorn.service: Failed with result 'exit-code'.
|
42
46
|
|
43
|
-
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)
|
44
|
-
|
45
|
-
Oct
|
47
|
+
Oct 12 00:57:02 ip-172-31-5-157 systemd[1]: gunicorn.service: Start request repeated too quickly.
|
46
48
|
|
47
49
|
```
|
48
50
|
|
@@ -56,33 +58,9 @@
|
|
56
58
|
|
57
59
|
```
|
58
60
|
|
59
|
-
ubuntu 2
|
61
|
+
ubuntu 2101 0.0 0.1 14852 1008 pts/0 S+ 01:10 0:00 grep --color=auto gunicorn
|
60
62
|
|
61
|
-
ubuntu 26313 0.0 0.5 65400 5976 pts/0 T 08:53 0:00 systemctl status gunicorn.service
|
62
|
-
|
63
|
-
|
63
|
+
↑ここの数字が増えるだけ
|
64
|
-
|
65
|
-
ubuntu 26347 0.0 0.5 65400 5708 pts/0 T 08:58 0:00 systemctl start gunicorn.service
|
66
|
-
|
67
|
-
ubuntu 26398 0.0 0.5 65400 5720 pts/0 T 08:58 0:00 systemctl start gunicorn.service
|
68
|
-
|
69
|
-
ubuntu 26405 0.0 0.5 65400 5992 pts/0 T 08:58 0:00 systemctl status gunicorn
|
70
|
-
|
71
|
-
ubuntu 26460 0.0 0.6 65400 6160 pts/0 T 08:59 0:00 systemctl status gunicorn
|
72
|
-
|
73
|
-
root 26492 0.0 0.4 68296 4340 pts/0 T 09:02 0:00 sudo vim /etc/systemd/system/gunicorn.socket
|
74
|
-
|
75
|
-
root 26493 0.0 0.9 55744 9188 pts/0 T 09:02 0:00 vim /etc/systemd/system/gunicorn.socket
|
76
|
-
|
77
|
-
root 26495 0.0 0.4 68296 4400 pts/0 T 09:02 0:00 sudo vim /etc/systemd/system/gunicorn.service
|
78
|
-
|
79
|
-
root 26496 0.0 0.9 55744 9080 pts/0 T 09:02 0:00 vim /etc/systemd/system/gunicorn.service
|
80
|
-
|
81
|
-
ubuntu 26536 0.0 0.5 65400 5968 pts/0 T 09:03 0:00 systemctl status gunicorn
|
82
|
-
|
83
|
-
ubuntu 26802 0.0 0.6 65400 6020 pts/0 T 09:11 0:00 systemctl status gunicorn
|
84
|
-
|
85
|
-
ubuntu 26818 0.0 0.1 14852 1076 pts/0 S+ 09:13 0:00 grep --color=auto gunicorn
|
86
64
|
|
87
65
|
```
|
88
66
|
|
@@ -90,6 +68,6 @@
|
|
90
68
|
|
91
69
|
#最後に
|
92
70
|
|
93
|
-
|
71
|
+
サーバーの再起動もしましたが、改善しません。
|
94
72
|
|
95
|
-
|
73
|
+
対処方法を教えてくださいますと助かります。
|