mlflow启动之gunicorn启动失败

启动 mlflow server的时候报错,显示gunicorn连接失败

[2017-01-29 15:08:02 +0000] [19640] [INFO] Starting gunicorn 19.4.5
[2017-01-29 15:08:02 +0000] [19640] [ERROR] Connection in use: ('0.0.0.0', 8000)
[2017-01-29 15:08:02 +0000] [19640] [ERROR] Retrying in 1 second.
[2017-01-29 15:08:03 +0000] [19640] [ERROR] Connection in use: ('0.0.0.0', 8000)
[2017-01-29 15:08:03 +0000] [19640] [ERROR] Retrying in 1 second.
[2017-01-29 15:08:04 +0000] [19640] [ERROR] Connection in use: ('0.0.0.0', 8000)
[2017-01-29 15:08:04 +0000] [19640] [ERROR] Retrying in 1 second.
[2017-01-29 15:08:05 +0000] [19640] [ERROR] Connection in use: ('0.0.0.0', 8000)
[2017-01-29 15:08:05 +0000] [19640] [ERROR] Retrying in 1 second.
[2017-01-29 15:08:06 +0000] [19640] [ERROR] Connection in use: ('0.0.0.0', 8000)
[2017-01-29 15:08:06 +0000] [19640] [ERROR] Retrying in 1 second.
[2017-01-29 15:08:07 +0000] [19640] [ERROR] Can't connect to ('0.0.0.0', 8000)

查询进程发现上一次启动时的进程残留

ps aux | grep gunicorn
#user1  32237  0.0  0.0 196940 17032 pts/118  S    17:03   0:01 gunicorn: master [mlflow.server:app]
#user1  32244  0.0  0.0 1257056 81004 pts/118 S    17:03   0:02 gunicorn: worker [mlflow.server:app]
#user1  32245  0.2  0.0 1260656 84760 pts/118 S    17:03   0:09 gunicorn: worker [mlflow.server:app]
#user1  32301  0.0  0.0 1257076 81140 pts/118 S    17:03   0:01 gunicorn: worker [mlflow.server:app]
#user1  32328  0.0  0.0 1257092 81068 pts/118 S    17:03   0:01 gunicorn: worker [mlflow.server:app]

结束mlflow进程时,需要手动同时结束关联的gunicorn进程

上一篇:Docker 部署 Flask应用


下一篇:django-与gunicorn nginx长期运行的请求