-
-
Notifications
You must be signed in to change notification settings - Fork 175
postgres supabase_admin user not created in initial setup #1520
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
Comments
To not mess with the local postgres user, I commented out the ALTER ROLE postgres NOSUPERUSER CREATEDB CREATEROLE LOGIN REPLICATION BYPASSRLS; I instead added a But the issue is now instead ./migrate.sh: running /Users/albin/Programmering/postgres/migrations/db/migrations/20250220051611_
pg_net_perms_fix.sql
CREATE FUNCTION
DO
./migrate.sh: running /Users/albin/Programmering/postgres/migrations/db/migrations/20250312095419_
pgbouncer_ownership.sql
psql:/Users/albin/Programmering/postgres/migrations/db/migrations/20250312095419_pgbouncer_ownersh
ip.sql:2: ERROR: schema "pgbouncer" does not exist I've recently reset my database. I'll keep working at it and see if I can find some workaround. I tried adding the schema manually but then when running the supabase docker compose I'm back to that the analytics can't connect to the postgres, and since everything depends on the analytics being up, nothing works. |
I think the reason for the analytics failing might be due to the fact that there's no _analytics schema in the database, and I can't find anywhere in the migrations that such a schema would be created either. The only place I can find the _analytics schema being referenced is in And there, I can only see it being used in the docker-compose setup when spinning up the supabase/postgres, and I'm not sure if there's some kind of flow/script to run this for an external database. |
Describe the bug
After upgrading db container to 15.8.1.020 database won't startup correctly complaining that supabase_adming role does not exist.
db starts up correctly with container 15.1.1.78
To Reproduce
System information
I use the container in a kubernetes setup but it looks like a general problem with
migrations/db/init-scripts/00000000000000-initial-schema.sql
in the most recent commitab7f879
the line
create user supabase_admin
dissapeared (it was present before).Additional context
This seems to be related to 18836
The text was updated successfully, but these errors were encountered: