Troubleshooting
Common Issues
"Re-run your install path" below means rerunning notebooks/install.py from the
top (notebook path, recommended) or ./scripts/deploy.sh --update (local
terminal path). Use whichever path you originally installed with — don't mix
them for the same app instance.
| Symptom | Cause | Fix |
|---|---|---|
| App shows blank page | frontend/dist/ missing (gitignored, not synced) | Re-run your install path |
Could not import module "backend.main" | Source files missing on workspace | Re-run your install path (full sync) |
No dependencies file found | pyproject.toml / uv.lock not on workspace | Re-run your install path |
| "Failed to list spaces" | Lakebase not attached | Attach a postgres resource in Apps UI, or re-run your install path |
Catalog 'X' is not accessible | Wrong catalog or missing permissions | Verify the catalog widget value (notebook) or GENIE_CATALOG (terminal); databricks catalogs list --profile <profile> |
Invalid SQL warehouse resource | Warehouse doesn't exist or no CAN_USE | databricks warehouses list --profile <profile> |
Maximum number of apps | Workspace hit the 300-app limit | Delete unused apps |
Unresolved __GSO_*__ placeholders | The installer couldn't patch app.yaml | Ensure the catalog is set; check installer output for warnings |
| GSO job creation fails during deploy | Notebook path: Jobs API error or wheel build failure. Terminal path: bundle deploy failed (CLI version, auth, build) | Notebook: check the install cell output. Terminal: check databricks bundle deploy -t app output; ensure CLI >= 0.297.2 and pip install build |
Notebook upload fails (RESOURCE_DOES_NOT_EXIST) | Upload path not writable by deployer | Check workspace-level permissions on the upload path |
Permission Errors
| Symptom | Cause | Fix |
|---|---|---|
| "You need CAN_EDIT or CAN_MANAGE permission" on optimize trigger | User lacks permission on the Genie Agent | Share the agent with the user (CAN_EDIT or CAN_MANAGE) |
| "The service principal does not have CAN_MANAGE" | SP not shared on the Genie Agent | Share the agent with the app's SP (CAN_MANAGE) |
| "The app service principal cannot read N schema(s) this space uses" (403 on optimize trigger) | SP lacks USE CATALOG, USE SCHEMA or SELECT on a schema the agent references | Run the GRANTs the Auto-Optimize permission check shows for that schema, then retry |
| "OBO token lacks genie scope, retrying with service principal" (in logs) | User token missing dashboards.genie scope | This is handled automatically via SP fallback — no action needed unless SP also fails |
| Optimization job fails with catalog/schema access errors | SP lacks UC permissions on referenced data | Grant SELECT on referenced schemas to the SP |
| "Permission denied" on scan | User lacks access to the Genie Agent | Share the agent with the user |
Lakebase Issues
| Symptom | Cause | Fix |
|---|---|---|
| "Failed to list spaces" on first load | Lakebase not attached | Re-run your install path to auto-attach the postgres resource |
| Connection timeouts after ~1 hour | Credential refresh failed | Check logs for generate_database_credential errors |
| Tables not created on startup | SP lacks CONNECT or CREATE ON DATABASE | Re-run your install path to re-create the SP role and grants |
| Scan results not persisting | Lakebase write failed | Check logs for Failed to persist scan result |
| Agent sessions lost on restart | Lakebase not configured | Without Lakebase, sessions use in-memory storage (ephemeral) |
GSO / Auto-Optimize Issues
| Symptom | Cause | Fix |
|---|---|---|
| "GSO not configured" in health check | GSO_JOB_ID or GSO_CATALOG not set | Re-run your install path (patches app.yaml with the resolved job ID and catalog) |
| Optimization job never starts | Job doesn't exist or SP can't run it | Check job exists in workspace; verify SP has CAN_MANAGE on job |
| Job stuck in QUEUED | No available cluster or warehouse | Check cluster policies and warehouse availability |
| Baseline evaluation fails | Benchmark questions reference inaccessible tables | Grant SP SELECT on all referenced schemas |
Run ends SKIPPED with INSUFFICIENT_VALID_BENCHMARKS | Fewer than 15 valid benchmarks remained after QC and the bounded top-up budget | Review the top-up attempt telemetry and rejected findings, then add or repair benchmark questions before rerunning |
Run ends FAILED with EVAL_INVALID | Native Eval-Run API returned an unusable result after retries | Check the Eval-Run status in the run page; verify SP access to referenced tables |
| Patches generated but accuracy doesn't improve | Optimization strategy exhausted | Run may reach STALLED status — review suggestions for manual improvements |
__GSO_*__ values in running app | The installer didn't patch app.yaml before deploy | Verify the catalog value and re-run your install path |
LLM / Unity AI Gateway Issues
LLM calls use Unity AI Gateway unless the app was installed with llm_route=classic (GENIE_LLM_ROUTE=classic). See LLM calls and Model access for LLM calls.
| Symptom | Cause | Fix |
|---|---|---|
Install stops with Unity AI Gateway check failed for model '<model>' | The workspace's region has no Unity AI Gateway, the model has no system.ai name, or the installing user can't use it | Pick a model available on the gateway, or reinstall with llm_route=classic (GENIE_LLM_ROUTE=classic for deploy.sh) |
Model unavailable or access not granted. in Create Agent or the plan builder | Gateway 404: the model doesn't exist on the gateway, or the signed-in user isn't entitled to it | Check LLM_MODEL maps to an existing system.ai.<name>; grant the user access to the model |
An optimization run's LLM steps fail with Model unavailable or access not granted. (job task output) | The same 404, for the app service principal (the job's run_as). The install check ran as you, not as the SP | Grant the app's service principal access to the model |
| A custom serving endpoint stops working after the upgrade | Only databricks-* foundation models have a system.ai name on the gateway | Reinstall with llm_route=classic |
user token lacks the ai-gateway scope; retrying the gateway call as the service principal (in logs) | The user hasn't accepted the ai-gateway scope yet, or the request carried a token that never went through the app's consent screen (such as a CLI token) | Handled automatically. Until the user consents, their calls are attributed to the SP in system.ai_gateway.usage. Opening the app in a browser shows the consent screen |
No genie-workbench rows in system.ai_gateway.usage | Ingestion lag (allow about 20 minutes), or the app is on the classic route | Wait and requery; check GENIE_LLM_ROUTE in the deployed app.yaml |
Debug Commands
# View app logs
databricks apps logs <app-name> --profile <profile>
# Check app status
databricks apps get <app-name> --profile <profile>
# List workspace files to verify sync
databricks workspace list /Workspace/Users/<email>/<app-name>/backend --profile <profile>
# Check GSO job status
databricks jobs get <job-id> --profile <profile>
# List GSO job runs
databricks jobs list-runs --job-id <job-id> --profile <profile>
# Check SP identity
databricks apps get <app-name> --profile <profile> | grep service_principal
MLflow Tracing
note
MLFLOW_EXPERIMENT_ID is workspace-specific. The app validates it at startup and silently disables tracing if the experiment doesn't exist. To enable tracing, create an MLflow experiment and update the value in app.yaml before deploying.
Related Documentation
- Deployment Guide — deploy commands and configuration
- Operations Guide — monitoring and management
- Authentication & Permissions — permission model
- Environment Variables — full variable reference