Upgrading version 0.15.1 → 0.16.0 cause "Runtime Error: Could not find profile named 'elementary"
phalanx-hk opened this issue · 0 comments
phalanx-hk commented
Yesterday I upgrading elementary-data[bigquery]
from 0.15.1 to 0.16.0, but Upgrading caused a Runtime Error.
I include below the contents of the files and logs that are considered necessary for troubleshooting.
If anyone knows the cause of the error, I would appreciate it if you could let me know.
The command that was executed:
edr report --env prod --project-name {project_id} --days-back=30
pyproject.toml
"dbt-core >=1.8,<1.9",
"dbt-bigquery >=1.8,<1.9",
"elementary-data[bigquery] ==0.16.0",
Error log:
________ __
/ ____/ /__ ____ ___ ___ ____ / /_____ ________ __
/ __/ / / _ \/ __ `__ \/ _ \/ __ \/ __/ __ `/ ___/ / / /
/ /___/ / __/ / / / / / __/ / / / /_/ /_/ / / / /_/ /
/_____/_/\___/_/ /_/ /_/\___/_/ /_/\__/\__,_/_/ \__, /
/____/
Any feedback and suggestions are welcomed! join our community here - https://bit.ly/slack-elementary
2024-09-10 23:39:29 — INFO — Running with edr=0.16.0
2024-09-10 23:39:29 — INFO — Installing packages for edr internal dbt package...
2024-09-10 23:39:29 — INFO — Running dbt command --log-format json deps --project-dir {WORKING_DIR}/dbt/.venv/lib/python3.12/site-packages/elementary/monitor/dbt_project
{"data": {"exc": "Runtime Error\n Could not find profile named 'elementary'"}, "info": {"category": "", "code": "Z002", "extra": {}, "invocation_id": "3ef899d9-d564-4170-a149-06641a6a5aac", "level": "error", "msg": "Encountered an error:\nRuntime Error\n Could not find profile named 'elementary'", "name": "MainEncounteredError", "pid": 33465, "thread": "MainThread", "ts": "2024-09-10T14:39:31.495433Z"}}
2024-09-10 23:39:32 — ERROR — Unable to get the latest invocation: Failed to run dbt command.
Runtime Error
Could not find profile named 'elementary'
profiles.yml
elementary:
target: prod
outputs:
prod:
dataset: dbt_elementary
job_execution_timeout_seconds: 300
job_retries: 1
location: asia-northeast1
method: oauth
priority: interactive
project: {project_id}
threads: 4
type: bigquery
packages.yml
packages:
- package: elementary-data/elementary
version: 0.16.0
dbt_project.yml
models:
...
elementary:
+schema: "dbt_elementary"
+docs:
show: false
flags:
# Required from dbt 1.8 and above for certain Elementary features
require_explicit_package_overrides_for_builtin_materializations: false