Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(warehouse_sources): stop retrying Databricks IP ACL rejections (#72966)

Tom Owerse7f8c85d225d
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py
index 3411dab66abb..e215bf768e4c 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/source.py
@@ -44,6 +44,7 @@ DatabricksErrors = {
"nodename nor servname provided": "Can't resolve the server hostname. Check the server hostname and try again.",
"Name or service not known": "Can't resolve the server hostname. Check the server hostname and try again.",
"Failed to resolve": "Can't resolve the server hostname. Check the server hostname and try again.",
+ "is blocked by Databricks IP ACL for workspace": "PostHog's IP address is blocked by your Databricks workspace's IP access control list. Add PostHog's IP addresses to the workspace's IP ACL, then try again.",
}
@@ -179,6 +180,9 @@ class DatabricksSource(SQLSource[DatabricksSourceConfig], ValidateDatabaseHostMi
"INSUFFICIENT_PERMISSIONS": "Your Databricks credentials don't have permission to access this data. Grant USE CATALOG, USE SCHEMA, and SELECT to the connecting principal, then resync.",
# Raised when the SQL warehouse referenced by the HTTP path was deleted.
"RESOURCE_DOES_NOT_EXIST": "The SQL warehouse referenced by the HTTP path no longer exists. Update the HTTP path to a running SQL warehouse, then resync.",
+ # Workspace-level IP ACL rejection — a customer-side network config that retrying can
+ # never satisfy. Match the stable phrase, ignoring the appended IP and workspace id.
+ "is blocked by Databricks IP ACL for workspace": "PostHog's IP address is blocked by your Databricks workspace's IP access control list. Add PostHog's IP addresses to the workspace's IP ACL, then resync.",
}
def validate_credentials(
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py
index d78c4280afd7..1831145ebb06 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/databricks/tests/test_databricks.py
@@ -473,6 +473,9 @@ class TestDatabricksSource:
"[SCHEMA_NOT_FOUND] The schema 'analytics' cannot be found.",
"PERMISSION_DENIED: User does not have USE SCHEMA on Schema 'analytics'.",
"[TABLE_OR_VIEW_NOT_FOUND] The table or view `main`.`information_schema`.`columns` cannot be found.",
+ # Workspace IP ACL rejection — matched on the stable phrase, ignoring the appended IP
+ # address and workspace id.
+ "Error during request to server: : Source IP address: 44.208.188.173 is blocked by Databricks IP ACL for workspace: 1557520918149316. ",
],
)
def test_permanent_failures_are_non_retryable(self, source, error_msg):
@@ -510,6 +513,10 @@ class TestDatabricksSource:
"[TABLE_OR_VIEW_NOT_FOUND] The table or view `information_schema`.`columns` cannot be found.",
"Unity Catalog",
),
+ (
+ "Error during request to server: : Source IP address: 44.208.188.173 is blocked by Databricks IP ACL for workspace: 1557520918149316. ",
+ "IP access control list",
+ ),
("something totally unexpected", "Could not connect to Databricks"),
],
)