You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
When executing supabase db push or supabase link or any other authenticated actions from the Supabase CLI, you might encounter an authentication error with messages such as failed SASL auth (invalid SCRAM server-final-message received from server).
Why This Occurs:
This typically indicates an authentication failure where the database connection pooler (Supavisor) in certain scenarios may be incorrectly caching credentials for the internal Supabase role cli_login_postgres used for password-less flows with the CLI. This can lead to the your IP being temporarily banned from repeated failed attempts to connect.
To resolve this, consider one of the following solutions:
Review any listed IP addresses that are blocked. Remove any entries that correspond to your current connection and then try the CLI action again.
Use the old Password-Based authentication flow instead:
Provide your database password directly through an environment variable when running the CLI command.
SUPABASE_DB_PASSWORD=<your-database-password> supabase db push
Skip the Pooler and connect directly to the database with the Supabase CLI (Requires IPv6):
If your network supports IPv6, you can use the beta CLI version with the --skip-pooler flag to bypass the connection pooler to avoid this particular issue. Install options are documented under Beta channel in the CLI getting started guide.
npx supabase@beta link --skip-pooler
npx supabase@beta db push
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
When executing
supabase db pushorsupabase linkor any other authenticated actions from the Supabase CLI, you might encounter an authentication error with messages such asfailed SASL auth (invalid SCRAM server-final-message received from server).Why This Occurs:
This typically indicates an authentication failure where the database connection pooler (Supavisor) in certain scenarios may be incorrectly caching credentials for the internal Supabase role
cli_login_postgresused for password-less flows with the CLI. This can lead to the your IP being temporarily banned from repeated failed attempts to connect.To resolve this, consider one of the following solutions:
Check Network Bans:
Use the old Password-Based authentication flow instead:
Skip the Pooler and connect directly to the database with the Supabase CLI (Requires IPv6):
--skip-poolerflag to bypass the connection pooler to avoid this particular issue. Install options are documented under Beta channel in the CLI getting started guide.Beta Was this translation helpful? Give feedback.
All reactions