airflow_in_docker_compose icon indicating copy to clipboard operation
airflow_in_docker_compose copied to clipboard

airflow in docker compose initdb 1 failing

Open tcg-peter opened this issue 4 years ago • 9 comments

Everything else was running great but this container is failing image

tcg-peter avatar Jan 12 '21 03:01 tcg-peter

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.

xnuinside avatar Jan 12 '21 04:01 xnuinside

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 image

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

tcg-peter avatar Jan 12 '21 04:01 tcg-peter

@tcg-peter did you delete DB volume? Because all data from dB stored on volume and it is not inside container.

xnuinside avatar Jan 12 '21 06:01 xnuinside

Also, Can you send me logs from scheduler container and webserver?

xnuinside avatar Jan 12 '21 06:01 xnuinside

@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 image webserver image

tcg-peter avatar Jan 12 '21 07:01 tcg-peter

@xnuinside i deleted the volume and airflow in docker compose initdb 1 failed after i login as admin

tcg-peter avatar Jan 12 '21 07:01 tcg-peter

@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 avatar Jan 12 '21 07:01 xnuinside

@xnuinside yes but it's still fail after i after i delete the volume

tcg-peter avatar Jan 12 '21 08:01 tcg-peter

I'm running on WSL, and i changed /opt/ to /usr/local/ according to this issue #4

tcg-peter avatar Jan 12 '21 08:01 tcg-peter