Composer Airflow UI now working: airflow-webserver pod in CrashLoopBackOff

935 views
Skip to first unread message

Rahul K Gupta

unread,
Sep 2, 2018, 10:02:18 PM9/2/18
to cloud-composer-discuss
Composer Airflow UI is not working. It shows the following error

Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.

On investigation I found error in Kubernetes pod
Composer environment is getting  CrashLoopBackOff on airflow-webserver pod.

Pod log: 


gcs
-syncd Sep 3, 2018, 11:49:10 AM Building synchronization state...

airflow
-webserver Sep 3, 2018, 11:49:01 AM Found non-zero Airflow scheduler return-code.

airflow
-webserver Sep 3, 2018, 11:49:01 AM airflow: error: unrecognized arguments: -n 200

airflow
-webserver Sep 3, 2018, 11:49:01 AM ...

airflow
-webserver Sep 3, 2018, 11:49:01 AM
{resetdb,render,variables,connections,pause,task_failed_deps,version,trigger_dag,initdb,test,unpause,dag_state,run,list_tasks,backfill,list_dags,kerberos,worker,webserver,flower,scheduler,task_state,pool,serve_logs,clear,upgradedb}

airflow
-webserver Sep 3, 2018, 11:49:01 AM usage: airflow [-h]

airflow
-webserver Sep 3, 2018, 11:49:01 AM





I deleted all dags from folder to see if there is some issue in dags code 
Reset default airflow configuration using
gcloud composer environments update ENVIRONMENT_NAME --location LOCATION --clear-airflow-configs
 Both methods didn't work. Need help to make airflow UI running. 

Trevor Edwards

unread,
Sep 13, 2018, 2:45:55 AM9/13/18
to cloud-composer-discuss
I assume you are using the self-managed webserver (https://cloud.google.com/composer/docs/how-to/managing/deploy-webserver)? It looks like you may have not switched the "image" field. See step 2 in "Create the web server deployment configuration"
Reply all
Reply to author
Forward
0 new messages