You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/10/29 09:08:49 UTC

[GitHub] [superset] clorichel commented on issue #16247: docker-compose non-dev superset-init fails to migrate database

clorichel commented on issue #16247:
URL: https://github.com/apache/superset/issues/16247#issuecomment-954579134


   Watch out, the `depends_on` sounds like an appealing idea, but won't do it here because: _"for startup Compose does not wait until a container is “ready” (whatever that means for your particular application) - only until it’s running"_ as mentioned in the Docker documentation (https://docs.docker.com/compose/startup-order/).
   
   So the other containers will actually start as soon as `superset-init` is _started_, not once it's _done_ doing all the stuff it's made to do.
   
   Also been hitting this issue, and similarly to https://github.com/apache/superset/issues/10711 be aware initializing can just fail from time to time for reasons I do not know. The timing of the containers _might_ be the reason, and if that's the case some better coordination between `superset-init` and the other containers would then be needed (like a `wait-for-init.sh` such as the one described in the Docker docs) to actually fix the issue.
   
   ---
   
   Simply said, until the _real_ reasons are found and fixed, if you are facing this issue:
   
   1. just `CTRL+C` then remove the containers **and their volumes** with the `-v` option :
      `docker-compose -f docker-compose-non-dev.yml down -v`
      
   2. restart and enjoy:
      `docker-compose -f docker-compose-non-dev.yml down`


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org