Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt debug cannot find a profile when in a subdirectory #2086

Closed
clrcrl opened this issue Jan 31, 2020 · 0 comments · Fixed by #2094
Closed

dbt debug cannot find a profile when in a subdirectory #2086

clrcrl opened this issue Jan 31, 2020 · 0 comments · Fixed by #2094
Labels
bug Something isn't working

Comments

@clrcrl
Copy link
Contributor

clrcrl commented Jan 31, 2020

dbt debug cannot find a profile when in a subdirectory

Steps to reproduce

  1. Confirm that you can run dbt debug in a dbt project
$ pwd
/Users/claire/fishtown/internal-analytics

$ dbt debug
Running with dbt=0.15.1
dbt version: 0.15.1
python version: 3.7.5
python path: /Users/claire/.pyenv/versions/3.7.5/envs/dbt0.15.1/bin/python
os info: Darwin-19.2.0-x86_64-i386-64bit
Using profiles.yml file at /Users/claire/.dbt/profiles.yml

Configuration:
  profiles.yml file [OK found and valid]
  dbt_project.yml file [OK found and valid]
  profile: garage-snowflake [OK found]
  target: dev [OK found]

Required dependencies:
 - git [OK found]

Connection:
  account: kw27752
  user: claire
  database: ANALYTICS
  schema: DBT_CLAIRE
  warehouse: TRANSFORMING
  role: TRANSFORMER
  client_session_keep_alive: False
  Connection test: OK connection ok
  1. cd into a subdirectory
$ cd models/
  1. Run dbt debug (on v0.15.2)

Expected results

All good, I'm in a subdirectory but it should be able to find my profile.

Actual results v0.15.2

Error message

$ dbt debug
Running with dbt=0.15.1
dbt version: 0.15.1
python version: 3.7.5
python path: /Users/claire/.pyenv/versions/3.7.5/envs/dbt0.15.1/bin/python
os info: Darwin-19.2.0-x86_64-i386-64bit
Using profiles.yml file at /Users/claire/.dbt/profiles.yml

Configuration:
  profiles.yml file [ERROR invalid]
  dbt_project.yml file [ERROR not found]

Required dependencies:
 - git [OK found]

A `dbt_project.yml` file was not found in this directory.
dbt found the following profiles:
 - jaffle_shop
 - integration_tests
 - audit_helper_integration_tests
 - playbook


To debug one of these profiles, run:
dbt debug --profile [profile-name]

Actual results dev/barbara-gittings

Encounters an error but has no error message

 $ pyenv activate dbt-dev
(dbt-dev) $ dbt --version
installed version: 0.15.2-a1
   latest version: 0.15.1

Your version of dbt is ahead of the latest release!

(dbt-dev) $ dbt debug
Running with dbt=0.15.2-a1
dbt version: 0.15.2-a1
python version: 3.7.5
python path: /Users/claire/.pyenv/versions/3.7.5/envs/dbt-dev/bin/python
os info: Darwin-19.2.0-x86_64-i386-64bit
Using profiles.yml file at /Users/claire/.dbt/profiles.yml

Encountered an error:

@clrcrl clrcrl added bug Something isn't working triage labels Jan 31, 2020
@drewbanin drewbanin removed the triage label Jan 31, 2020
@drewbanin drewbanin added this to the Barbara Gittings milestone Jan 31, 2020
beckjake added a commit that referenced this issue Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants