Diagnose PostHog data warehouse issues including failed external source syncs, query errors, schema mismatches, join configuration problems, slow queries, and missing or stale data from linked sources.
docs-search("data warehouse troubleshooting {specific symptom}")docs-search("data warehouse {source type} setup")gh search issues --repo PostHog/posthog "data warehouse {symptom}"The steps below are a diagnostic FRAMEWORK (what questions to ask, in what order). The docs responses are the CONTENT (current answers, version requirements, config details).
Determine whether the data warehouse problem is caused by:
Separate:
Run docs-search("data warehouse troubleshooting sync failing")
Key areas to investigate:
| Error pattern | Likely cause |
|---|---|
| Authentication/credentials | API key expired, OAuth token revoked, IAM permissions changed |
| Permission denied | Source database user lacks SELECT on the table |
| Table/schema not found | Table renamed, schema changed, or wrong database selected |
| Connection timeout | Firewall blocking PostHog IPs, source database unreachable |
| Some files archived | S3 objects in Glacier tier — need to restore or exclude |
| Rate limit | Source API throttling — PostHog syncs may need to be spaced out |
If the complaint is HogQL query errors on warehouse tables:
-- Check what warehouse tables exist
SELECT table_name FROM information_schema.tables
WHERE table_schema = 'warehouse'
LIMIT 50;
Key areas to investigate:
properties.$name syntaxtoDateTime()If data exists but is outdated or incomplete:
-- Check when the latest warehouse data was synced
SELECT max(timestamp_column) FROM warehouse_table_name
LIMIT 1;
If queries are slow or timing out:
docs-search("data warehouse query performance")LIMIT during investigationSELECT * on large warehouse tablesRun docs-search("data warehouse setup {source type}")
Key areas to investigate:
Search GitHub with at least 2 variants:
gh search issues --repo PostHog/posthog "data warehouse {symptom}"gh search issues --repo PostHog/posthog "warehouse sync {source type}"