cli icon indicating copy to clipboard operation
cli copied to clipboard

Issues trying to do supabase start, supabase pull and other commands locally

Open emarchiori opened this issue 1 year ago • 5 comments

I've been unable to do supabase start or supabase pull of my project, failing with docker issues. The core issue seems to stem from this:

This is the acutal error I get WARNING:  invalid configuration parameter name "supautils.extension_custom_scripts_path", removing it
DETAIL:  "supautils" is now a reserved prefix.
psql: error: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql: No such file or directory
[directory] container is not ready: unhealthy

The crash report id is c0a5e6cc8e61429989ec501b82c01786

I've not foudn the way to modify "supautils.extension_custom_scripts_path" or similar in the remote instance.

emarchiori avatar Jul 02 '25 12:07 emarchiori

Something similar is happening to us with PG 17.

.001 s; distance=5 kB, estimate=5 kB; lsn=0/1AFA858, redo lsn=0/1AFA858
 2025-07-23 09:34:33.937 UTC [35] LOG:  database system is ready to accept connections
 2025-07-23 09:34:33.940 UTC [48] LOG:  pg_cron scheduler started
 done
server started
ALTER ROLE
psql: error: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql: No such file or directory
Stopping containers..

luisfcofv avatar Jul 23 '25 09:07 luisfcofv

Me too, I started getting the error today. After a local db reset from a remote dump.

WARNING:  invalid configuration parameter name "supautils.extension_custom_scripts_path", removing it
DETAIL:  "supautils" is now a reserved prefix.

odeke avatar Jul 27 '25 01:07 odeke

Temporary fix I have gotten so far. find out the name of your container for postgres using docker ps

Then connect to it. (mine was supabase_db_ekko) docker exec -it supabase_db_ekko sh

You will now have a terminal inside the postgres container. take a look at the config. cat /etc/postgresql-custom/supautils.conf

You will see the problematic line supautils.extension_custom_scripts_path = '/etc/postgresql-custom/extension-custom-scripts' That is what we wanna delete.

I counted mine to be on line 10, so i deleted it using "sed" . since theres no nano or vim in the container, you can find your own way to edit the file to delete that line. sed -i '10d' /etc/postgresql-custom/supautils.conf

That command deleted line 10 from the file. I then reset my local supabase db

supabase db reset

Error is gone for now, it will return if I run supabase stop.

odeke avatar Aug 17 '25 14:08 odeke

Error is gone for now, it will return if I run supabase stop.

Thanks for this work around. I didn't want to wipe my local data with a reset, so I used this instead which works:

supabase stop
supabase start

The config files are mounted outside the container, so they survive container restarts and probably even updates.

yellowtailfan avatar Oct 04 '25 07:10 yellowtailfan

Hi all, We’re going to close this one due to inactivity. Please feel free to reopen if you’re still having issues here or open a new issue.

Hallidayo avatar Feb 22 '26 19:02 Hallidayo