You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update databricks-builder-app to support lakebase autoscale
added/modified builder-app setup and deployments to support autoscale instance along with provisioned. In the app.yaml.example provided an update on how to configure autoscale and in the README instructions of how to deploy and setup lakebase permission
* minor change to builder app deploy script
made a change to the deploy script to clean up the SP's src directory of the snapshot App source code. noticed every deployment would make the copy with no clean on the old versions. created a step in the deploy to clean up the old inactive directories
* Delete databricks-builder-app/app.yaml
removing file that should have ignored in commit
* builder-app-skills update
Deploy all skills (databricks, MLflow, APX) via install_skills.sh and dynamically populate ENABLED_SKILLS in app.yaml at deploy time instead of maintaining a hardcoded list.
2. Connect to your Lakebase instance via psql or a Databricks notebook, then run:
784
+
Common causes:
719
785
720
-
```sql
721
-
-- Replace <service-principal-id> with the ID from step 1
722
-
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "<service-principal-id>";
723
-
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "<service-principal-id>";
724
-
GRANT USAGE ON SCHEMA public TO "<service-principal-id>";
725
-
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO "<service-principal-id>";
726
-
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO "<service-principal-id>";
727
-
```
786
+
| Error | Cause | Fix |
787
+
|-------|-------|-----|
788
+
| `password authentication failed` | Lakebase OAuth role missing or created via SQL instead of API | Create the role via `w.postgres.create_role()` with `LAKEBASE_OAUTH_V1` auth (Step 7b) |
789
+
| `permission denied for table` | SP lacks PostgreSQL grants on schema/tables | Run the GRANT statements (Step 7c) |
790
+
| `schema "builder_app" does not exist` | SP lacks `CREATE` on the database | `GRANT CREATE ON DATABASE databricks_postgres TO "<sp-client-id>"` |
791
+
| `relation does not exist` | Migrations haven't run | Redeploy the app, or run `alembic upgrade head` locally |
728
792
729
-
Alternatively, if you have a fresh/private Lakebase instance, the app's migrations will create the tables with proper ownership automatically.
793
+
> **Autoscale Lakebase pitfall**: Do NOT use `CREATE ROLE ... LOGIN` in PostgreSQL directly.
794
+
> Lakebase Autoscaling requires roles to be created through the Databricks API so that OAuth
795
+
> token authentication works. Manually created roles get `NO_LOGIN` auth and will fail with
0 commit comments