© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
7 replies
eyebonk (Alex)

Having issues with setting up local env

I have a cloud version of supabase, but now I want to set up a local version thats sync'd to my prod. I have installed the supabase cli and docker, and ive followed various instructions, but no matter what I do I always have issue when trying to apply the migration I have downloaded from the cloud. Heres the steps I follow below, can anyone spot what im doing wrong?

Within my project:
- supabase init
- supabase login
- supabase link
- then select my project to link to
- supabase start
- supabase db pull (which pulls in my migration)
- then either supabase db reset or supabase db start
- it always fails with the container showing as unhealthy

one of the errors I see multipul times is 'psql: error: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql: No such file or directory'

Anyone got any ideas?
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

Setting up local database
SupabaseSSupabase / help-and-questions
13mo ago
problem setting up website dev environment
SupabaseSSupabase / help-and-questions
4y ago
Local Development Issues
SupabaseSSupabase / help-and-questions
11mo ago
Pull secrets for local env
SupabaseSSupabase / help-and-questions
6mo ago