Bug Description
When following the DevHub workflow after installing Databricks CLI v1.12.1 and configuring a DEFAULT profile, the databricks apps init command consistently fails with the following error:
Error: resolve: /home/aravind/.databrickscfg has no default profile configured. Config: profile=default, config_file=~/.databrickscfg, databricks_cli_path=/home/aravind/.hermes/hermes-agent/venv/bin/databricks. Env: DATABRICKS_CONFIG_FILE, DATABRICKS_CLI_PATH
Context & Diagnostic Checks
This issue occurs despite the following checks passing:
- Config file presence:
~/.databrickscfg explicitly contains [DEFAULT] and default_profile = DEFAULT.
- Profile validation:
databricks auth profiles successfully lists the profile as valid:
Name Host Valid
DEFAULT (Default) https://dbc-xxxxxxxx-ba27.cloud.databricks.com YES
- Authentication verification:
databricks current-user me returns the active user details correctly using the DEFAULT profile.
- Environment variables: Manually exporting
DATABRICKS_CONFIG_FILE, DATABRICKS_HOST, and DATABRICKS_TOKEN before running apps init does not bypass or resolve the error.
Steps to Reproduce
- Install Databricks CLI
v1.12.1 (e.g., inside a Python virtual environment).
- Configure a default profile:
databricks configure --host <workspace_url> --token <pat_token>
- Verify authentication status:
cat ~/.databrickscfg
databricks auth profiles
databricks current-user me
- Run the app initialization command:
databricks apps init \
--name my-app \
--features lakebase \
--set "lakebase.postgres.project=<project_path>" \
--set "lakebase.postgres.branch=<branch_path>" \
--set "lakebase.postgres.database=<database_path>" \
--run none \
--profile default
Expected Behavior
The databricks apps init command should recognize the DEFAULT profile and successfully scaffold the application.
Actual Behavior
The command aborts immediately with:
Error: resolve: /home/aravind/.databrickscfg has no default profile configured.
Bug Description
When following the DevHub workflow after installing Databricks CLI
v1.12.1and configuring aDEFAULTprofile, thedatabricks apps initcommand consistently fails with the following error:Context & Diagnostic Checks
This issue occurs despite the following checks passing:
~/.databrickscfgexplicitly contains[DEFAULT]anddefault_profile = DEFAULT.databricks auth profilessuccessfully lists the profile as valid:databricks current-user mereturns the active user details correctly using theDEFAULTprofile.DATABRICKS_CONFIG_FILE,DATABRICKS_HOST, andDATABRICKS_TOKENbefore runningapps initdoes not bypass or resolve the error.Steps to Reproduce
v1.12.1(e.g., inside a Python virtual environment).cat ~/.databrickscfg databricks auth profiles databricks current-user meExpected Behavior
The
databricks apps initcommand should recognize theDEFAULTprofile and successfully scaffold the application.Actual Behavior
The command aborts immediately with: