Peter
06/18/2024, 8:25 AMedr report --select last_invocation --env prod): I’ve got an error that says
2024-06-18 08:21:29 — ERROR — Could not generate the report - Error: Failed to run dbt command.
Please reach out to our community for help with this issue.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/elementary/clients/dbt/dbt_runner.py", line 88, in _run_command
result = subprocess.run(
File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dbt', '--log-format', 'json', 'run-operation', 'elementary.log_macro_results', '--args', '{"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}}', '--project-dir', '/usr/local/lib/python3.10/site-packages/elementary/monitor/dbt_project']' died with <Signals.SIGKILL: 9>.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/elementary/monitor/api/report/report.py", line 50, in get_report_data
tests_api = TestsAPI(
File "/usr/local/lib/python3.10/site-packages/elementary/monitor/api/tests/tests.py", line 43, in __init__
self.test_results_db_rows = self._get_test_results_db_rows(
File "/usr/local/lib/python3.10/site-packages/elementary/monitor/api/tests/tests.py", line 55, in _get_test_results_db_rows
return self.tests_fetcher.get_all_test_results_db_rows(
File "/usr/local/lib/python3.10/site-packages/elementary/monitor/fetchers/tests/tests.py", line 25, in get_all_test_results_db_rows
run_operation_response = self.dbt_runner.run_operation(
File "/usr/local/lib/python3.10/site-packages/elementary/clients/dbt/dbt_runner.py", line 160, in run_operation
success, command_output = self._run_command(
File "/usr/local/lib/python3.10/site-packages/elementary/clients/dbt/dbt_runner.py", line 99, in _run_command
raise DbtCommandError(err, command_args, logs=logs)
elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command.
details in the thread, any help is much appreciated 🙏Peter
06/18/2024, 8:26 AM- package: elementary-data/elementary
version: 0.15.1
in my devcontainer
RUN pip install elementary-data==0.15.1
RUN pip install 'elementary-data[redshift]'Peter
06/18/2024, 8:27 AM2024-06-18 08:20:05 — WARNING — You are using incompatible versions between edr (0.15.1) and Elementary's dbt package (0.11.1).
To fix please update your packages.yml, and run:
dbt deps && dbt run --select elementary
I’ve run the following commands after updating packages.yml to 0.15.1
dbt clean && dbt deps
dbt run -s elementary -t prodPeter
06/18/2024, 8:29 AMedr reportPeter
06/18/2024, 12:32 PMStavros Vlachos
08/05/2024, 3:29 PMPeter
08/05/2024, 3:33 PMdbt run -s elementary
7. it should work but if not, try re-running models with --full-refresh that come up in the logs and may cause the issues (if they are incremental)Peter
08/05/2024, 3:39 PMelementary.dbt_columns viewStavros Vlachos
08/06/2024, 6:52 AMStavros Vlachos
08/06/2024, 11:38 AM--days-back parameter of the edr send-report command to 5 days (instead of the default 7).
Not ideal as I still wasn't able to pinpoint the problematic tables(s) and/ore computations. Also I have to report on less days.
Thanks for the support Peter!Peter
08/06/2024, 11:40 AMStavros Vlachos
08/06/2024, 11:46 AMPeter
08/06/2024, 12:38 PM