Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web server of airflow is not running

m configuring email scheduler in Airflow in Django but its not working.

error in terminal:

airflow webserver
[2017-12-29 10:52:17,614] {__init__.py:57} INFO - Using executor SequentialExecutor
[2017-12-29 10:52:17,734] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python3.5/lib2to3/Grammar.txt
[2017-12-29 10:52:17,765] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python3.5/lib2to3/PatternGrammar.txt
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/

/usr/local/lib/python3.5/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.
  .format(x=modname), ExtDeprecationWarning
[2017-12-29 10:52:18,354] [8169] {models.py:167} INFO - Filling up the DagBag from /home/hitesh/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
=================================================================            

Error: 'airflow.www.gunicorn_config' doesn't exist
like image 430
Hitesh Roy Avatar asked Dec 29 '17 05:12

Hitesh Roy


2 Answers

Airflow (tested v1.8.0) doesn't work with gunicorn 19.4+ for the reasons described here: http://mail-archives.apache.org/mod_mbox/airflow-commits/201708.mbox/%3CJIRA.13063358.1491960900000.100006.1501939203227@Atlassian.JIRA%3E

It should work once you downgrade gunicorn with this command pip install gunicorn==19.3.0

like image 57
x97Core Avatar answered Sep 29 '22 21:09

x97Core


Try running sudo airflow webserver instead of airflow webserver. It helped me with this issue.

like image 23
enoted Avatar answered Sep 29 '22 22:09

enoted