feluelle edited a comment on issue #9564:
URL: https://github.com/apache/airflow/issues/9564#issuecomment-716593574
Sorry, I forgot to respond back. The issue for me was that I am running
docker-compose and I run the `db upgrade` command directly after the db
container was created. The init failed and that's why this issue occured for me.
```
fdb-airflow-db:
image: library/postgres:latest
container_name: fdb_airflow_db
env_file: postgres.airflow.env
ports:
- 55433:5432
restart: always
fdb-airflow-db-init:
<<: *airflow-environment
build: .
container_name: fdb_airflow_db_init
command: db upgrade
depends_on:
- fdb-airflow-db
```
If I manually run `docker-compose start fdb-airflow-db-init` it `db
upgrade`s successfully and the scheduler does not die.
```
fdb-airflow-scheduler:
<<: *airflow-environment
container_name: fdb_airflow_scheduler
command: scheduler
<<: *airflow-volumes
depends_on:
- fdb-airflow-db-init
restart: always
```
(scheduler `depends_on` the init container but it still starts even if the
init failed.)
----------------------------------------------------------------
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]