启动Airflow时,Gunicorn出现错误。我如何解决它?

时间:2018-10-23 18:58:14

标签: python-3.x airflow

我正在尝试运行Apache Airflow,但遇到Gunicorn错误。我的操作系统OSX High Siearra 10.13.6和Python版本3.6。我该如何解决?

fatih-Air:~ fatihcelik$ airflow webserver
[2018-10-23 21:44:37,581] {__init__.py:57} INFO - Using executor 
SequentialExecutor
____________       _____________
____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
_/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site- 
packages/flask/exthook.py:71: ExtDeprecationWarning: Importing 
flask.ext.cache is deprecated, use flask_cache instead.
.format(x=modname), ExtDeprecationWarning
[2018-10-23 21:44:38,225] [2352] {models.py:167} INFO - Filling up the 
DagBag from /Users/fatihcelik/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
=================================================================            
[2018-10-23 21:44:39,642] {__init__.py:57} INFO - Using executor 
SequentialExecutor
[2018-10-23 21:44:39 +0300] [2353] [INFO] Starting gunicorn 19.3.0
[2018-10-23 21:44:39 +0300] [2353] [ERROR] Connection in use: 
('0.0.0.0', 8080)
[2018-10-23 21:44:39 +0300] [2353] [ERROR] Retrying in 1 second.
[2018-10-23 21:44:40 +0300] [2353] [ERROR] Connection in use: 
('0.0.0.0', 8080)
[2018-10-23 21:44:40 +0300] [2353] [ERROR] Retrying in 1 second.
[2018-10-23 21:44:41 +0300] [2353] [ERROR] Connection in use: 
('0.0.0.0', 8080)
[2018-10-23 21:44:41 +0300] [2353] [ERROR] Retrying in 1 second.
[2018-10-23 21:44:42 +0300] [2353] [ERROR] Connection in use: 
('0.0.0.0', 8080)
[2018-10-23 21:44:42 +0300] [2353] [ERROR] Retrying in 1 second.
[2018-10-23 21:44:43 +0300] [2353] [ERROR] Connection in use: 
('0.0.0.0', 8080)
[2018-10-23 21:44:43 +0300] [2353] [ERROR] Retrying in 1 second.
[2018-10-23 21:44:44 +0300] [2353] [ERROR] Can't connect to 
('0.0.0.0', 8080)

1 个答案:

答案 0 :(得分:0)

另一个进程(甚至可能是另一个Airflow Web服务器进程?)已经在8080端口上侦听。

我不是Mac用户,但是this article may help您发现哪个进程正在使用该端口并停止/杀死它。