Open nlhkabu opened 6 years ago
I've also run into stuff like this and would appreciate a docs update.
make purge
will stop all running containers (same as make stop
), and then purge them, so now it should perform as @nlhkabu expected.I agree we should document make purge
somewhere, something like:
To remove all containers related to Warehouse, you can run
make purge
from the repository root.
Thinking about it now, I'm not sure the bit about a sqlalchemy.exec.OperationalError
is the best possible advice -- usually this will happen either because a) the developer missed a step and didn't make initdb
, or b) there has been a migration since they last made their database, and they need to docker-compose run web python -m warehouse db upgrade head
. Actually doing a purge/shutdown should rarely be necessary (although the Postgres update is one example).
I think the "empty DB" error is different enough that we can differentiate our advice better, but someone will have to experiment a bit to find out.
Today I had some trouble after an upgrade of postgres. I tried to run
make purge
to nuke everything, but it didn't do the job.The solution was to run
docker-compose down -v
then re-runmake serve
andmake initdb
.It would be good to:
make purge
leave the docker setup in a pristine statemake purge
at https://warehouse.readthedocs.io/development/getting-started/#troubleshootingCurrent docs:
Maybe we could replace this with:
Thanks to @ewdurbin for helping me get everything up and running again :)