ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
5 replies
pemontto

Postgres data inaccessible - self-hosted

Hi there, I'm trying to persist data with the default docker-compose setup. I un-commented
- ./volumes/db/data:/var/lib/postgresql/data
- ./volumes/db/data:/var/lib/postgresql/data
. However when I down/up the project
supabase-db
supabase-db
refuses to start with
2022-10-06 12:19:52.986 UTC [1] FATAL:  data directory "/var/lib/postgresql/data" has wrong ownership
2022-10-06 12:19:52.986 UTC [1] FATAL:  data directory "/var/lib/postgresql/data" has wrong ownership
...
The server must be started by the user that owns the data directory.
The server must be started by the user that owns the data directory.

However I'm not sure what UID the container is using. As a last resort I tried
chmod -R 777 docker/volumes/db/data
chmod -R 777 docker/volumes/db/data
to no avail
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

self-hosted postgres 17?
SupabaseSSupabase / help-and-questions
3mo ago
Self Hosted Postgres 17 Compatibility
SupabaseSSupabase / help-and-questions
8mo ago
Self-Hosted postgres database persistence
SupabaseSSupabase / help-and-questions
4y ago
self-hosted
SupabaseSSupabase / help-and-questions
8mo ago