You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jepson (JIRA)" <ji...@apache.org> on 2017/04/21 06:00:14 UTC

[jira] [Comment Edited] (AIRFLOW-1134) airflow webserver -p 8080,can't start the webserver

    [ https://issues.apache.org/jira/browse/AIRFLOW-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15978100#comment-15978100 ] 

Jepson edited comment on AIRFLOW-1134 at 4/21/17 5:59 AM:
----------------------------------------------------------

Now,I use the command of "pip uninstall airflow", and again install.

[root@hadoopdn-04 ~]# export AIRFLOW_HOME=~/airflow
[root@hadoopdn-04 ~]# pip install airflow
[root@hadoopdn-04 ~]# airflow initdb
-bash: airflow: command not found

[root@hadoopdn-04 ~]# find / -name airflow
find: `/nfs/home': Permission denied
/usr/local/python27/bin/airflow
/usr/local/python27/lib/python2.7/site-packages/airflow
/usr/local/python27/lib/python2.7/site-packages/airflow/bin/airflow
/usr/local/python27/lib/python2.7/site-packages/airflow/www/templates/airflow
/usr/local/python27/lib/python2.7/site-packages/airflow/www/static/docs/_modules/airflow
[root@hadoopdn-04 ~]# /usr/local/python27/bin/airflow initdb

[root@hadoopdn-04 ~]#  /usr/local/python27/bin/airflow webserver -p 8080
[2017-04-21 13:56:19,229] {__init__.py:57} INFO - Using executor SequentialExecutor
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
 
/usr/local/python27/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.
  .format(x=modname), ExtDeprecationWarning
[2017-04-21 13:56:20,230] [3013] {models.py:167} INFO - Filling up the DagBag from /root/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
=================================================================            
Traceback (most recent call last):
  File "/usr/local/python27/bin/airflow", line 28, in <module>
    args.func(args)
  File "/usr/local/python27/lib/python2.7/site-packages/airflow/bin/cli.py", line 791, in webserver
    gunicorn_master_proc = subprocess.Popen(run_args)
  File "/usr/local/python27/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/local/python27/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[root@hadoopdn-04 ~]# 


was (Author: 1028344078@qq.com):
Now,I use the command of "pip uninstall airflow",
and i try to git from github with incubator-airflow.git.

> airflow webserver -p 8080,can't start the webserver
> ---------------------------------------------------
>
>                 Key: AIRFLOW-1134
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1134
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>    Affects Versions: Airflow 1.8
>         Environment: centos6.5+python2.7.5+pip
> airflow1.8.0
>            Reporter: Jepson
>            Assignee: Jepson
>              Labels: features, patch, test
>   Original Estimate: 672h
>  Remaining Estimate: 672h
>
> [root@hadoopdn-04 ~]# /usr/local/python27/bin/airflow webserver -D
> [2017-04-21 12:59:41,341] {__init__.py:57} INFO - Using executor SequentialExecutor
> Namespace(access_logfile='-', daemon=True, debug=False, error_logfile='-', func=<function webserver at 0x48fd320>, hostname='0.0.0.0', log_file=None, pid=None, port=8080, ssl_cert=None, ssl_key=None, stderr=None, stdout=None, subcommand='webserver', worker_timeout=120, workerclass='sync', workers=4)
>   ____________       _____________
>  ____    |__( )_________  __/__  /________      __
> ____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
> ___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
>  _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
>  
> /usr/local/python27/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.
>   .format(x=modname), ExtDeprecationWarning
> [2017-04-21 12:59:42,719] [1616] {models.py:167} INFO - Filling up the DagBag from /root/learnproject/app/airflow/dags
> Running the Gunicorn Server with:
> Workers: 4 sync
> Host: 0.0.0.0:8080
> Timeout: 120
> Logfiles: - -
> =================================================================            
> Traceback (most recent call last):
>   File "/usr/local/python27/bin/airflow", line 29, in <module>
>     args.func(args)
>   File "/usr/local/python27/lib/python2.7/site-packages/airflow/bin/cli.py", line 791, in webserver
>     gunicorn_master_proc = subprocess.Popen(run_args)
>   File "/usr/local/python27/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/local/python27/lib/python2.7/subprocess.py", line 1308, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)