You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/17 12:42:38 UTC

[GitHub] [airflow] nicnguyen3103 opened a new issue #22338: Airflow webserver cannot start: error: invalid command 'webserver'

nicnguyen3103 opened a new issue #22338:
URL: https://github.com/apache/airflow/issues/22338


   ### Apache Airflow version
   
   2.2.4 (latest released)
   
   ### What happened
   
   I was performing update for my swarm cluster from 2.2.2 to 2.2.4. After airflow db upgrade, both worker and scheduler can start just fine but the airflow webserver returns error: invalid command 'webserver'. 
   
   I exec into the worker container and try to start the webserver manually from there to reproduce the issue. Here is the screenshot from the CLI of the worker container when I try to start the webserver there 
   ![Screenshot from 2022-03-17 07-54-44](https://user-images.githubusercontent.com/46189714/158809735-1e6513d2-f6be-4363-99b0-af2013e457e0.png)
   
   
   
   ### What you think should happen instead
   
   I have no idea how to fix this issue as the airflow webserver start but then stop to yield command error, which is quite weird. 
   
   ### How to reproduce
   
   here is the command in the dockerfile for a clean airflow setup on my side
   
   RUN . $AIRFLOW_VENV/bin/activate && pip install 'apache-airflow[mysql,amazon,celery,papermill,ssh]==2.2.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.2.4/constraints-3.8.txt"
   RUN . $AIRFLOW_VENV/bin/activate && pip install -r $HOME/requirements-extend-airflow.txt
   
   with requirements-extend-airflow.txt contains 
   
   `apache-airflow[statsd]
   apache-airflow[sentry]
   sentry-sdk==1.1.0
   blinker==1.4
   cached-property==1.5.1
   mysqlclient==2.0.1
   Flask-Bcrypt==0.7.1
   Flask-OAuthlib==0.9.5
   virtualenv==20.10.0`
   
   ### Operating System
   
   Ubuntu "20.04.2 LTS (Focal Fossa)"
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-amazon==3.0.0
   apache-airflow-providers-celery==2.1.0
   apache-airflow-providers-ftp==2.0.1
   apache-airflow-providers-http==2.0.3
   apache-airflow-providers-imap==2.2.0
   apache-airflow-providers-mysql==2.2.0
   apache-airflow-providers-papermill==2.2.0
   apache-airflow-providers-sqlite==2.1.0
   apache-airflow-providers-ssh==2.3.0
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Remote logs on s3
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org