© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6d ago•
53 replies
nunkyB

Self-hosted supabase works weird

self-hosted
Hi everyone, i've installed the supabase using that guide https://supabase.com/docs/guides/self-hosting/docker, but it works really weird and unstable, that's why
1. Can't create API keys http://localhost:8000/project/default/settings/api-keys -
Failed to create API key: API error happened while trying to communicate with the server
Failed to create API key: API error happened while trying to communicate with the server
. Also se the same error with different actions like creation new user, org configuration, projecty select etc.
2. Can't run migrations push
supabase db push --include-all --db-url postgresql://$SELFHOSTED_DB_USER:$SELFHOSTED_DB_PASSWORD@$SELFHOSTED_DB_DOMAIN:$SELFHOSTED_DB_PORT/$SELFHOSTED_DB_NAME
supabase db push --include-all --db-url postgresql://$SELFHOSTED_DB_USER:$SELFHOSTED_DB_PASSWORD@$SELFHOSTED_DB_DOMAIN:$SELFHOSTED_DB_PORT/$SELFHOSTED_DB_NAME
-
failed to connect to postgres: failed to connect to host=localhost user=postgres database=postgres: tls error (server refused TLS connection)
failed to connect to postgres: failed to connect to host=localhost user=postgres database=postgres: tls error (server refused TLS connection)
. But it works if i adding the
--debug
--debug
flag
3. Seed data was added with first migrations, but for now tables are empty and seeds doesn't works.

Tried for Windows and Mac, got same behaviour.

The only difference is that the supervisor container is constantly restarting when using Windows, and an error appears in the logs.

supabase-pooler  | Setting RLIMIT_NOFILE to 100000
supabase-pooler  | 19:37:26.076 [info] Migrations already up
supabase-pooler  | ** (SyntaxError) invalid syntax found on nofile:30:4:
supabase-pooler  |     error: unexpected token: carriage return (column 4, code point U+000D)
supabase-pooler  |     │
supabase-pooler  |  30 │ end
supabase-pooler  |     │    ^
supabase-pooler  |     │
supabase-pooler  |     └─ nofile:30:4
supabase-pooler  |     (elixir 1.18.2) lib/code.ex:571: Code.validated_eval_string/3
supabase-pooler  | Setting RLIMIT_NOFILE to 100000
supabase-pooler  | 19:37:26.076 [info] Migrations already up
supabase-pooler  | ** (SyntaxError) invalid syntax found on nofile:30:4:
supabase-pooler  |     error: unexpected token: carriage return (column 4, code point U+000D)
supabase-pooler  |     │
supabase-pooler  |  30 │ end
supabase-pooler  |     │    ^
supabase-pooler  |     │
supabase-pooler  |     └─ nofile:30:4
supabase-pooler  |     (elixir 1.18.2) lib/code.ex:571: Code.validated_eval_string/3
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
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

Self-Hosted Supabase (Coolify)
SupabaseSSupabase / help-and-questions
2mo ago
Updating supabase self-hosted
SupabaseSSupabase / help-and-questions
13mo ago
Self Hosted Supabase RDS setup
SupabaseSSupabase / help-and-questions
3w ago
Supabase Self Hosted connection error
SupabaseSSupabase / help-and-questions
4w ago