dlampsi commented on issue #8247: Serialized DAG trigger via UI error - 
AttributeError: 'NoneType' object has no attribute 'create_dagrun'
URL: https://github.com/apache/airflow/issues/8247#issuecomment-612672073
 
 
   > Did you put the following env variables on the Scheduler POD too:
   
   I'm using `.env` file in each container (docker-compose file example above 
in issue body). 
   Here `.env` file content:
   ```
   POSTGRES_HOST=postgres
   POSTGRES_PORT=5432
   POSTGRES_DB=airflow
   POSTGRES_USER=airflow
   POSTGRES_PASSWORD=airflow
   AIRFLOW__CORE__FERNET_KEY=Nk09IXzSw5GGYOUcbey4xxIzeKViJKxq47MqKFPRuik=
   AIRFLOW__CORE__COLORED_CONSOLE_LOG=False
   AIRFLOW__CORE__LOAD_EXAMPLES=False
   AIRFLOW__CORE__EXECUTOR=CeleryExecutor
   AIRFLOW__WEBSERVER__BASE_URL=http://127.0.0.1:8080
   AIRFLOW__WEBSERVER__ACCESS_LOGFILE=/usr/local/airflow/webserver_access.log
   AIRFLOW__WEBSERVER__RBAC=True
   RBAC_USER_REGISTRATION_ROLE=Admin
   RBAC_LDAP_SERVER=...
   RBAC_LDAP_SEARCH=...
   RBAC_LDAP_BIND_USER=...
   RBAC_LDAP_BIND_PASSWORD=...
   RBAC_LDAP_UID_FIELD=sAMAccountName
   # Dag Serialization
   AIRFLOW__CORE__STORE_SERIALIZED_DAGS=True
   AIRFLOW__CORE__MIN_SERIALIZED_DAG_UPDATE_INTERVAL=30
   AIRFLOW__CORE__STORE_DAG_CODE=True
   ```
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to