Skip to main content

Database Troubleshooting

This guide helps you diagnose and fix common database issues in the FindU ecosystem. Each section includes symptoms, causes, and step-by-step solutions.

Connection Issues

Cannot Connect to Database

  • FATAL: password authentication failed
  • could not connect to server
  • timeout expired
  • SASL authentication failed

SSL Connection Required

Migration Issues

Migration Already Exists

Never modify a migration that has been deployed. Create a new migration to fix issues.
1

Check migration status

2

If local only

3

If already deployed

Migration Fails to Apply

Migration Order Issues

RLS (Row Level Security) Issues

All Queries Return Empty

1

Check if RLS is enabled

2

Check policies exist

3

Test as specific user

4

Debug policy

Policy Not Working as Expected

Performance Issues

Slow Queries

Database Size Issues

Data Integrity Issues

Constraint Violations

Data Inconsistencies

Supabase-Specific Issues

Storage Issues

Auth Issues

Emergency Procedures

Database Locked

Rollback Recent Changes

Prevention Best Practices

Getting Help

1

Check Supabase Status

2

Review Logs

3

Contact Support

  • Development issues: Team discussion
  • Production emergencies: Supabase support
  • Include error messages and query examples

Return to database overview or learn about migrations.