2017-10-24 1 views
0

관리자와 함께 관리하는 gunicorn이 자동으로 종료됩니다. 이것은 Python3으로 작성된 Flask 프로젝트입니다. 도움을 얻으시기 바랍니다. 시작 명령은 다음과 같습니다관리자가 관리하는 gunicorn을 자동으로 종료하는 이유는 무엇입니까?

sudo supervisord -c /etc/supervisor/conf.d/app.conf 

로그 :

[2017-10-24 08:41:15 +0000] [10357] [INFO] Starting gunicorn 19.7.1 
[2017-10-24 08:41:15 +0000] [10357] [INFO] Listening at: http://0.0.0.0:8000 (10357) 
[2017-10-24 08:41:15 +0000] [10357] [INFO] Using worker: sync 
[2017-10-24 08:41:15 +0000] [10360] [INFO] Booting worker with pid: 10360 
[2017-10-24 08:41:16 +0000] [10362] [INFO] Booting worker with pid: 10362 
[2017-10-24 08:41:16 +0000] [10364] [INFO] Booting worker with pid: 10364 
[2017-10-24 08:41:16 +0000] [10366] [INFO] Booting worker with pid: 10366 
[2017-10-24 08:41:54 +0000] [10357] [INFO] Handling signal: term 
[2017-10-24 08:41:54 +0000] [10360] [INFO] Worker exiting (pid: 10360) 
[2017-10-24 08:41:54 +0000] [10362] [INFO] Worker exiting (pid: 10362) 
[2017-10-24 08:41:54 +0000] [10366] [INFO] Worker exiting (pid: 10366) 
[2017-10-24 08:41:54 +0000] [10364] [INFO] Worker exiting (pid: 10364) 
[2017-10-24 08:41:54 +0000] [10357] [INFO] Shutting down: Master 

관리자의 설정 :

[program:app] 
directory = /home/ubuntu/Flask-Blog/ 
command = /home/ubuntu/Flask-Blog/venv/bin/gunicorn -w4 -b0.0.0.0:8000 manage:app 
autostart = true  
startsecs = 5  
autorestart = true 
startretries = 3 
user = ubuntu 
redirect_stderr = true 
stdout_logfile_maxbytes = 50MB 
stdout_logfile_backups = 20 

stdout_logfile = /home/ubuntu/Flask-Blog/log/gunicorn.log 
stder_logfile = /home/ubuntu/Flask-Blog/log/gunicorn.err 
stopasgroup = false 
killasgroup = false 

[supervisorctl] 
[supervisord] 
[inet_http_server] 
port = 127.0.0.1:9001 
[rpcinterface:supervisor] 
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 
+0

중복 경로 엔드 포인트/논리 오류를 종료합니다. gunicorn없이 앱을 실행하고 앱이이 오류를 생성하지 않는다는 것을 확인하십시오. –

+0

동일한 명령으로 gunicorn을 시작했지만 그럴 수 없습니다. –

+0

나는 gunicorn없이 플라스크 앱을 실행했다. http://flask.pocoo.org/docs/0.12/quickstart/#debug-mode –

답변

0

내가 다시 설치하고 구성 파일을 다시 구성합니다. 그것은 내가 구성 과정에서 잘못 만든 것이어야합니다.

0

sudo는 supervisord -c /etc/supervisor/conf.d이 명령을 사용하고 자동으로이 일어날 수

관련 문제