Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airflow in docker compose initdb 1 failing #10

Closed
tcg-peter opened this issue Jan 12, 2021 · 9 comments
Closed

airflow in docker compose initdb 1 failing #10

tcg-peter opened this issue Jan 12, 2021 · 9 comments

Comments

@tcg-peter
Copy link

Everything else was running great but this container is failing
image

@xnuinside
Copy link
Owner

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.

@tcg-peter
Copy link
Author

tcg-peter commented Jan 12, 2021

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

@xnuinside
Copy link
Owner

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

@xnuinside
Copy link
Owner

xnuinside commented Jan 12, 2021

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

@tcg-peter
Copy link
Author

tcg-peter commented Jan 12, 2021

@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
Copy link
Author

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

@xnuinside
Copy link
Owner

@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

@tcg-peter
Copy link
Author

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

@tcg-peter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants