airflow_in_docker_compose
airflow_in_docker_compose copied to clipboard
airflow in docker compose initdb 1 failing
Everything else was running great but this container is failing

Hi @tcg-peter ! This log for 1st run or next runs? Also other services runs & works correct? Looks like just command fail because admin user already in dB.
i did run it a couple time before i can get localhost:8080 running, but i delete all the docker container docker stop $(docker ps -aq) and image docker rm $(docker ps -a -q) before i got this error, so it could be in the 1st run
Everything else run correctly

However i can't see any dag in localhost:8080

@tcg-peter did you delete DB volume? Because all data from dB stored on volume and it is not inside container.
Also, Can you send me logs from scheduler container and webserver?
@xnuinside
i do have data in volume, but i don't think i should delete it, is there a way to work around ?
Here is the scheduler
webserver

@xnuinside i deleted the volume and airflow in docker compose initdb 1 failed after i login as admin
@tcg-peter if you don't want to keep history and data in DB after container deletion - you can just remove volume from docker-compose file from postgres service - https://github.com/xnuinside/airflow_in_docker_compose/blob/master/docker-compose-2.0-with-celery-executor.yml#L17
@xnuinside yes but it's still fail after i after i delete the volume
I'm running on WSL, and i changed /opt/ to /usr/local/ according to this issue #4