-
Hi there, I tried to self-host supabase on my server with docker and used their tutorial (https://supabase.com/docs/guides/self-hosting/docker). Everything worked perfectly fine until I adjusted the .env file. As described in their tutorial I adjusted
But after that I always get "container supabase-analytics is unhealthy" as a response to "docker compose up". If I use the standard .env file with the default values I can run and access my supabase environment. Can anyone help me out? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 7 replies
-
I solved it by first uninstalling Supabase and then executing Keep in mind that uninstalling will remove existing volumes |
Beta Was this translation helpful? Give feedback.
-
Had the same problem self-hosting. After testing some things out, changing the postgres password is what causes the issue. Changing other values in the .env does NOT affect supabase analytics. I have not yet found the root cause of this problem or how to get around it. Would be great if anyone has insights into this. |
Beta Was this translation helpful? Give feedback.
-
What worked for me was to run this set of commands: #11957 (comment) WARNING: This is a DESTRUCTIVE command and it WILL wipe your volume data. This should be your last resort, please take backups of your data :) docker system prune -a
sudo rm -rf docker/volumes/db/data
docker compose up |
Beta Was this translation helpful? Give feedback.
-
Changing the password for Postgres user (by logging with default password for supaabse_admin) resolves the error. |
Beta Was this translation helpful? Give feedback.
-
temporary fix for this bug is here |
Beta Was this translation helpful? Give feedback.
-
I have the same problem and suggestes fixes do not work. I have been trying to fix this for hours now and I don't progress.
and the output of supabase-analytics:
|
Beta Was this translation helpful? Give feedback.
-
is there any way to change password for POSTGRES and NOT make container supabase-analytics is unhealthy? |
Beta Was this translation helpful? Give feedback.
-
Honestly, I did the pinned solution, and I also did @Coddo-Python's complete wipeout version. Neither worked for me. My work around was literally uninstalling everything - not ideal if you already have data and what not, but I got rid of everything. Redownloaded the Docker based CLI. Got to You should edit the Self-Hosted instructions to show that you must edit the fake .env vars in your .env file before you pull and start the services. |
Beta Was this translation helpful? Give feedback.
-
Make sure to run docker compose up without -d to see what's cusing the error, could be a memory or storage allocation issue |
Beta Was this translation helpful? Give feedback.
temporary fix for this bug is here
#22605 (comment)