본문 바로가기
Data/Data Engineering

[Airflow] 데몬으로 실행 설정 오류 : The unit airflow-webserver.service has entered the 'failed' state with result 'resources'

by DenverAlmighty 2023. 4. 23.
반응형

0. 실행 환경

OS : Ubuntu 22.04.2 LTS

 

1. Error 메세지

원인

airflow-scheduler.service > [Service] 에 EnvironmentFile  경로가 잘못 지정되어있거나,

AIRFLOW_CONFIG, AIRFLOW_HOME 이 지정되어있지 않아서 발생한다.

해결 방법

Ubuntu(데비안 계열)이라면 /etc/environment, Redhat 계열이라면 /etc/sysconfig/airflow 로  설정되어있고, 

AIRFLOW_CONFIG, AIRFLOW_HOME 경로 바르게 설정하면 된다.

sudo journalctl -xeu airflow-webserver. service
A stop job for unit airflow-webserver. service has finished.
The job identifier is 143495 and the job result is done.
Apr 23 19:24:18 linux systemd[1]: airflow-webserver.service: Failed to load environment files:
Apr 23 19:24:18 linux systemd[1]: airflow-webserver.service: Failed to run 'start' task: Is a Apr 23 19:24:18 linux systemd[1]: airflow-webserver.service: Failed with result 'resources
Subject: Unit failed
Defined-By: systemd
Support: http: //www.ubuntu.com/support
The unit airflow-webserver.service has entered the 'failed' state with result 'resources'
Apr 23 19:24:18 linux systemd[1]: Failed to start Airflow webserver daemon.
Subject: A start job for unit airflow-webserver.service has failed
Defined-Bv: systemd
Support: http: //www.ubuntu.com/support
A start job for unit airflow-webserver.service has finished with a failure.
728x90
반응형