<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Lakebase Synced Tables Failing Initial Load Due to Missing CONNECT Privilege on Writer Role in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/lakebase-synced-tables-failing-initial-load-due-to-missing/m-p/177560#M57323</link>
    <description>&lt;P&gt;I'm investigating an issue with Azure Databricks Lakebase Autoscaling where synced tables are successfully created in Unity Catalog through Terraform, but their initial pipeline loads consistently fail.&lt;/P&gt;&lt;P&gt;The issue was eventually traced to a missing CONNECT privilege on the database-specific databricks_writer_&amp;lt;dbid&amp;gt; role.&lt;/P&gt;&lt;P&gt;Despite the database being created successfully through the Lakebase UI, its ACL showed that the writer role had CREATE but not CONNECT. Both reader roles had the expected CONNECT privilege.&lt;/P&gt;&lt;P&gt;Interestingly, recreating the synced tables under different creator identities made no difference. Both identities already had the necessary database permissions, confirming that the problem was not related to the creator's privileges.&lt;/P&gt;&lt;P&gt;The actual error was buried in the pipeline events:&lt;/P&gt;&lt;P&gt;ERROR: permission denied for database "&amp;lt;mydb&amp;gt;"&lt;/P&gt;&lt;P&gt;The fix was straightforward:&lt;/P&gt;&lt;P&gt;GRANT CONNECT ON DATABASE &amp;lt;mydb&amp;gt; TO databricks_writer_&amp;lt;oid&amp;gt;;&lt;/P&gt;&lt;P&gt;After applying this grant as a member of databricks_superuser, all three pipelines completed successfully on their next trigger, and the resulting row counts matched the source tables exactly. No other configuration changes were required.&lt;/P&gt;&lt;P&gt;I'd appreciate clarification from the Databricks team and anyone who has encountered similar behaviour:&lt;/P&gt;&lt;P&gt;Is it expected for a UI-created Lakebase database to provision its own writer role with CREATE but without CONNECT, or does this point to a provisioning bug?&lt;/P&gt;&lt;P&gt;Is manually granting CONNECT to the database-specific writer role an officially supported fix, or should another provisioning or initialization step have handled this automatically?&lt;/P&gt;&lt;P&gt;Should checking the writer role's database privileges be part of the standard readiness checks before configuring synced tables, especially for older databases?&lt;/P&gt;&lt;P&gt;Is there a supported API or diagnostic method to verify these permissions without directly querying pg_database.datacl?&lt;/P&gt;&lt;P&gt;One concern is that Databricks documentation warns against modifying system roles because doing so may affect instance behaviour. I'd prefer to understand whether this grant is safe and supported long-term rather than maintain an undocumented workaround.&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Azure Databricks&lt;/P&gt;&lt;P&gt;Lakebase Autoscaling&lt;/P&gt;&lt;P&gt;Terraform Databricks provider 1.122.0&lt;/P&gt;&lt;P&gt;Resource: databricks_postgres_synced_table&lt;/P&gt;&lt;P&gt;scheduling_policy = TRIGGERED&lt;/P&gt;&lt;P&gt;create_database_objects_if_missing = true&lt;/P&gt;&lt;P&gt;Initial status: SYNCED_TABLE_OFFLINE_FAILED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2026 10:45:06 GMT</pubDate>
    <dc:creator>kendel64jen</dc:creator>
    <dc:date>2026-11-25T10:45:06Z</dc:date>
    <item>
      <title>Lakebase Synced Tables Failing Initial Load Due to Missing CONNECT Privilege on Writer Role</title>
      <link>https://community.databricks.com/t5/data-engineering/lakebase-synced-tables-failing-initial-load-due-to-missing/m-p/177560#M57323</link>
      <description>&lt;P&gt;I'm investigating an issue with Azure Databricks Lakebase Autoscaling where synced tables are successfully created in Unity Catalog through Terraform, but their initial pipeline loads consistently fail.&lt;/P&gt;&lt;P&gt;The issue was eventually traced to a missing CONNECT privilege on the database-specific databricks_writer_&amp;lt;dbid&amp;gt; role.&lt;/P&gt;&lt;P&gt;Despite the database being created successfully through the Lakebase UI, its ACL showed that the writer role had CREATE but not CONNECT. Both reader roles had the expected CONNECT privilege.&lt;/P&gt;&lt;P&gt;Interestingly, recreating the synced tables under different creator identities made no difference. Both identities already had the necessary database permissions, confirming that the problem was not related to the creator's privileges.&lt;/P&gt;&lt;P&gt;The actual error was buried in the pipeline events:&lt;/P&gt;&lt;P&gt;ERROR: permission denied for database "&amp;lt;mydb&amp;gt;"&lt;/P&gt;&lt;P&gt;The fix was straightforward:&lt;/P&gt;&lt;P&gt;GRANT CONNECT ON DATABASE &amp;lt;mydb&amp;gt; TO databricks_writer_&amp;lt;oid&amp;gt;;&lt;/P&gt;&lt;P&gt;After applying this grant as a member of databricks_superuser, all three pipelines completed successfully on their next trigger, and the resulting row counts matched the source tables exactly. No other configuration changes were required.&lt;/P&gt;&lt;P&gt;I'd appreciate clarification from the Databricks team and anyone who has encountered similar behaviour:&lt;/P&gt;&lt;P&gt;Is it expected for a UI-created Lakebase database to provision its own writer role with CREATE but without CONNECT, or does this point to a provisioning bug?&lt;/P&gt;&lt;P&gt;Is manually granting CONNECT to the database-specific writer role an officially supported fix, or should another provisioning or initialization step have handled this automatically?&lt;/P&gt;&lt;P&gt;Should checking the writer role's database privileges be part of the standard readiness checks before configuring synced tables, especially for older databases?&lt;/P&gt;&lt;P&gt;Is there a supported API or diagnostic method to verify these permissions without directly querying pg_database.datacl?&lt;/P&gt;&lt;P&gt;One concern is that Databricks documentation warns against modifying system roles because doing so may affect instance behaviour. I'd prefer to understand whether this grant is safe and supported long-term rather than maintain an undocumented workaround.&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Azure Databricks&lt;/P&gt;&lt;P&gt;Lakebase Autoscaling&lt;/P&gt;&lt;P&gt;Terraform Databricks provider 1.122.0&lt;/P&gt;&lt;P&gt;Resource: databricks_postgres_synced_table&lt;/P&gt;&lt;P&gt;scheduling_policy = TRIGGERED&lt;/P&gt;&lt;P&gt;create_database_objects_if_missing = true&lt;/P&gt;&lt;P&gt;Initial status: SYNCED_TABLE_OFFLINE_FAILED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2026 10:45:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakebase-synced-tables-failing-initial-load-due-to-missing/m-p/177560#M57323</guid>
      <dc:creator>kendel64jen</dc:creator>
      <dc:date>2026-11-25T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lakebase Synced Tables Failing Initial Load Due to Missing CONNECT Privilege on Writer Role</title>
      <link>https://community.databricks.com/t5/data-engineering/lakebase-synced-tables-failing-initial-load-due-to-missing/m-p/177572#M57329</link>
      <description>&lt;P&gt;Before you open a ticket, check one thing. In Postgres, CONNECT is granted to PUBLIC by default. If someone ran REVOKE CONNECT ON DATABASE ... FROM PUBLIC as a hardening step, the writer may have been relying on that PUBLIC grant, while the readers have their own explicit grant. In that case, nothing went wrong during provisioning.&lt;/P&gt;&lt;P&gt;You don't need to read datacl directly. These are standard Postgres checks:&lt;/P&gt;&lt;PRE&gt;SELECT r.rolname,
       has_database_privilege(r.rolname, current_database(), 'CONNECT') AS can_connect,
       has_database_privilege(r.rolname, current_database(), 'CREATE')  AS can_create
FROM pg_roles r
WHERE r.rolname LIKE 'databricks_writer_%' OR r.rolname LIKE 'databricks_reader_%';&lt;/PRE&gt;&lt;P&gt;As far as I know, there's no Databricks API that exposes this. I'd add the query to the readiness checks you run before creating synced tables in Terraform.&lt;/P&gt;&lt;P&gt;Is the grant safe long-term? The docs say these system roles are assigned the minimum privileges required for functionality. Modifying them can impact instance behavior. I couldn't find any page that lists a manual GRANT CONNECT as a supported fix. Adding CONNECT is a small change, since the role clearly needs it. Still, I'd keep the grant in place and open a support ticket with the database ID so Databricks can confirm or fix the provisioning.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2026 11:52:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakebase-synced-tables-failing-initial-load-due-to-missing/m-p/177572#M57329</guid>
      <dc:creator>arthurfr23</dc:creator>
      <dc:date>2026-11-25T11:52:37Z</dc:date>
    </item>
  </channel>
</rss>

