© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
alaincruz06

Error on "Migrating and Upgrading Projects" docs

https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects#backup-your-old-database
specifically on the "Backup your old database" section, I was trying to do a pg_dump of a previous project to another (both inside Supabase) and got a bunch of weird exceptions, most from my side, but then got this one:
pg_dump: error: connection to server at "db.MY-PROJECT-NAME.supabase.co" (MY-PROJECT-IP), port 5432 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

At first, I thought it was due to my laggy connection, but then working with the -h command in the terminal I discovered a --workdir command to specify where the files should be stored, after I added the --workdir command and a String path, I got the db dumped successfully. I think you should add that "--workdir" parameter in the doc.
Migrating and Upgrading Projects | Supabase Docs
Upgrade your project to the latest version of Supabase.
Migrating and Upgrading Projects | Supabase Docs
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

Similar Threads

Error on API Docs
SupabaseSSupabase / help-and-questions
6mo ago
Error viewing tables on projects created through OAUTH
SupabaseSSupabase / help-and-questions
4mo ago
Upgrading
SupabaseSSupabase / help-and-questions
7mo ago
Error When Migrating Database schema extensions does not exist when migrating database
SupabaseSSupabase / help-and-questions
4y ago