MetricSign
EN|NLRequest Access
High severityconnectivity

Power BI Refresh Error:
dbt debug Connection Failure

What does this error mean?

The `dbt debug` command reports a connection failure, indicating that dbt cannot establish a database connection with the credentials and host specified in profiles.yml.

Common causes

  • 1profiles.yml missing or pointing to the wrong file location
  • 2Wrong host, port, or database name in the target profile
  • 3Credentials (user/password/key) expired, rotated, or incorrect
  • 4Database server not reachable from the dbt runner's network (VPN, firewall, security group)
  • 5SSL/TLS certificate validation failing for the database connection
  • 6OAuth token for a service account expired or the service account deleted

How to fix it

  1. 1Run `dbt debug` with `--profiles-dir <path>` to explicitly specify the profiles directory
  2. 2Verify the profile name in dbt_project.yml matches a profile defined in profiles.yml
  3. 3Test raw database connectivity separately: `psql`, `snowsql`, or the relevant DB client
  4. 4For Snowflake/BigQuery, ensure service account keys or OAuth tokens are not expired
  5. 5Check the `target` value in profiles.yml matches an existing target under the profile
  6. 6Enable `--debug` on dbt debug to get the full connection string (minus password) for verification

Frequently asked questions

Where does dbt look for profiles.yml by default?

dbt looks in `~/.dbt/profiles.yml` by default. In CI/CD environments, use the `--profiles-dir` flag or the `DBT_PROFILES_DIR` environment variable to point to the correct location.

Other connectivity errors