2016-10-18 7 views
0

공기 흐름 웹 서버는 디버그 모드공기 흐름 웹 서버

airflow webserver -p 8051 

[2016-10-18 18:41:13,816] {__init__.py:36} INFO - Using executor CeleryExecutor 
    ____________  _____________ 
____ |__()_________ __/__ /________  __ 
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /|// 
___ ___ |/_/ _ __/ _// /_/ /_ |/ |//
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ 

[2016-10-18 18:41:14,081] {models.py:154} INFO - Filling up the DagBag from /home/user/some_dir/airflow/dags 
Running the Gunicorn server with 4 syncworkers on host 0.0.0.0 and port 8051 with a timeout of 120... 
['gunicorn', '-w 4', '-k sync', '-t 120', '-b 0.0.0.0:8051', '-n airflow-webserver', '-p /home/user/some_dir/airflow/airflow-webserver.pid', 'airflow.www.app:cached_app()'] 
Traceback (most recent call last): 
    File "./airflow", line 15, in <module> 
    args.func(args) 
    File "/home/user/userenv/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 426, in webserver 
    'gunicorn', run_args 
    File "/home/user/userenv/lib/python2.7/os.py", line 344, in execvp 
    _execvpe(file, args) 
    File "/home/user/userenv/lib/python2.7/os.py", line 380, in _execvpe 
    func(fullname, *argrest) 
OSError: [Errno 2] No such file or directory 

에 시작 만 디버그 모드에서 시작하지만 $AIRFLOW_HOME

에 그러나에 airflow-webserver.pid 파일을 볼 수 없습니다 또한

[2016-10-18 18:45:45,750] {__init__.py:36} INFO - Using executor CeleryExecutor 
    ____________  _____________ 
____ |__()_________ __/__ /________  __ 
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /|// 
___ ___ |/_/ _ __/ _// /_/ /_ |/ |//
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ 

[2016-10-18 18:45:46,019] {models.py:154} INFO - Filling up the DagBag from /home/user/some_dir/airflow/dags 
Starting the web server on port 8051 and host 0.0.0.0. 
[2016-10-18 18:45:46,138] {_internal.py:87} INFO - * Running on http://0.0.0.0:8051/ (Press CTRL+C to quit) 
[2016-10-18 18:45:46,139] {_internal.py:87} INFO - * Restarting with stat 
[2016-10-18 18:45:46,417] {__init__.py:36} INFO - Using executor CeleryExecutor 
    ____________  _____________ 
____ |__()_________ __/__ /________  __ 
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /|// 
___ ___ |/_/ _ __/ _// /_/ /_ |/ |//
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ 

[2016-10-18 18:45:46,682] {models.py:154} INFO - Filling up the DagBag from /home/user/some_dir/airflow/dags 
Starting the web server on port 8051 and host 0.0.0.0. 
[2016-10-18 18:45:46,796] {_internal.py:87} WARNING - * Debugger is active! 
[2016-10-18 18:45:46,850] {_internal.py:87} INFO - * Debugger pin code: 231-950-074 

airflow webserver -p 8051 -d 작동 디버그 모드 실행할 수 없습니다. airflow worker

airflow worker 

[2016-10-18 18:48:28,541] {__init__.py:36} INFO - Using executor CeleryExecutor 
Traceback (most recent call last): 
    File "./airflow", line 15, in <module> 
    args.func(args) 
    File "/home/user/userenv/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 519, in worker 
    sp = subprocess.Popen(['airflow', 'serve_logs'], env=env) 
    File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ 
    errread, errwrite) 
    File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child 
    raise child_exception 
OSError: [Errno 2] No such file or directory 

답변

0

소스 코드 cli.py (webserversetup_locations 기능 참조)을 읽은 후에. gunicorn 프로세스가 시작될 때 설치 될 파일을 만들 수있는 권한이 없다고 생각합니다. AIRFLOW_HOME에 대한 쓰기 권한이 있는지 확인하십시오. 내 보낸 디렉토리 값을 변경하거나 Airflow가 디렉토리에 쓸 수있는 권한을 변경하지 않은 경우.

관련 문제