Database Connection Issues
Connection Refused
Symptoms:-
Verify database is running:
-
Check connection string format:
-
Test connectivity:
-
Check firewall rules:
- Ensure port 5432 is open
- For self-hosted agents, verify network security groups allow outbound connections
Host Not Found
Symptoms:-
Verify hostname resolves:
-
Use IP address instead:
-
For private databases without public access:
- Use local execution (default) instead of agent execution
- Or deploy self-hosted agents in the same VPC
Permission Denied
Symptoms:-
Grant SELECT permissions:
-
Verify user permissions:
SSL/TLS Connection Errors
Symptoms:-
For databases requiring SSL:
-
For self-signed certificates:
-
Disable SSL verification (dev only, not recommended for production):
Authentication Failures
Invalid API Key
Symptoms:-
Verify API key is set:
-
Re-authenticate:
-
Check API key format:
- Live keys:
bc_live_* - Test keys:
bc_test_* - Ensure no extra spaces or newlines
- Live keys:
-
For CI/CD, verify secret is correctly set:
-
Check API key in dashboard:
- Login to basecut.dev
- Navigate to Settings → API Keys
- Verify key hasn’t been revoked
whoami Command Fails
Symptoms:-
Login again:
-
Check credentials file:
-
Use the profile you logged into:
Snapshot Creation Issues
Extraction Limits Reached
Symptoms:-
Increase limits in basecut.yml:
-
Add more specific WHERE clauses:
-
Use table-specific limits:
Foreign Key Constraint Violations
Symptoms:-
This shouldn’t happen! Basecut automatically ensures referential integrity. If you see this:
- File a bug report at github.com/basecuthq/basecut/issues
- Include your
basecut.ymlconfiguration - Include the error message and stack trace
-
Workaround - increase upstream depth:
Timeout on Large Extractions
Symptoms:-
Use self-hosted agents instead of local execution:
-
Reduce snapshot scope:
-
Use sampling:
Snapshot Restore Issues
Schema Validation Failures
Symptoms:-
Run migrations first:
-
Force restore (skip validation):
-
Inspect the exact snapshot reference you’re restoring:
Duplicate Key Violations
Symptoms:-
Use —reset flag to truncate tables first:
-
Manually truncate conflicting tables:
-
Restore to empty database:
Restore Too Slow
Symptoms:- Restore takes several minutes for small snapshots
- Progress bar stuck at 0%
-
Check database connectivity:
-
Use local database for faster restore:
-
Disable triggers during restore (advanced):
Storage Issues
S3 Access Denied
Symptoms:-
Verify AWS credentials:
-
Check IAM policy grants
s3:PutObject,s3:GetObject, ands3:ListBucketon your bucket. See Storage Providers for the full policy. -
Use correct credentials:
S3 Region/Endpoint Errors (Common with --async)
Symptoms:
- Local runs can succeed using your local AWS profile region
--asyncruns execute on a self-hosted agent, which may not have the same region config
-
Set region in
basecut.ymlfor S3 output: -
For Cloudflare R2 / S3-compatible endpoints, set both endpoint and region:
-
If you cannot set
output.region, ensureAWS_REGIONis set on the agent environment.
GCS Permission Errors
Symptoms:-
Verify GCS credentials:
-
Check service account permissions:
-
Use correct credentials:
Snapshot Not Found
Symptoms:-
List available snapshots:
-
Check snapshot name spelling:
-
Verify storage provider configuration:
Self-Hosted Agent Issues
Agent Not Picking Up Jobs
Symptoms:- Jobs submitted with
--asyncnever complete - Agent logs show no activity
-
Check agent logs:
-
Verify API key format and org access:
-
Check network connectivity to Basecut API:
-
Verify agent registration:
- Check dashboard for registered agents
- Ensure agent is in “Active” state
Agent Database Connection Failures
Symptoms:-
Test database access from agent:
-
Check network security groups:
- Verify agent’s security group allows outbound to database port
- Verify database’s security group allows inbound from agent
-
Use private IP for database in same VPC:
Performance Issues
Slow Extractions
Symptoms:- Snapshot creation takes hours
- “Extracting…” stuck at same table count
-
Check database indexes:
-
Use sampling instead of full extraction:
-
Reduce traversal depth:
-
Use agent execution for large datasets:
Debugging Techniques
Check Configuration Parsing
Verify YAML syntax:Test Individual Components
Test database connection:Getting Help
If you’ve tried the solutions above and still have issues:-
Check the logs:
- Agent:
docker logs basecut-agent
- Agent:
-
File a GitHub issue:
- github.com/basecuthq/basecut/issues
- Include: error message, configuration file, command used, Basecut version
-
Contact support:
- Email: support@basecut.dev
- Include: account email, snapshot name, timestamp of error