Skip to content
Discussion options

You must be logged in to vote

This is the classic self-hosted gotcha: POSTGRES_PASSWORD is only applied to the internal database roles when the database volume is first initialized. If you changed the password in .env after the first docker compose up (or reused an old volumes/db/data directory from a previous attempt), the running database still has the old passwords for roles like supabase_auth_admin — while gotrue reads the new value from .env and fails with exactly this 28P01.

Two ways out:

A. Fresh install / no data to keep (fastest):

docker compose down -v
rm -rf volumes/db/data
docker compose up -d

The init scripts re-run and every internal role gets the current POSTGRES_PASSWORD.

B. Keep existing data — realig…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wihelmi
Comment options

@aantti
Comment options

Answer selected by wihelmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants