details: the command i run: `dbt deps && edr moni...
# community-support
s
details: the command i run:
dbt deps && edr monitor send-report --days-back 30 --env prod --aws-access-key-id $aws_key --aws-secret-access-key $aws_secret --s3-bucket-name prod-ludeo-data-elementary --update-bucket-website true
packages.yml:
Copy code
packages:
  - package: dbt-labs/dbt_utils
    version: 1.0.0
  - package: calogica/dbt_expectations
    version: 0.8.2
  - package: elementary-data/elementary
    version: 0.8.0
the log: [TL;DR, the short error is
Could not generate the report - Error: Failed to run dbt command
]
Copy code
2024-03-26 03:06:24 — INFO — Elementary's database and schema: '"DATA_WAREHOUSE.PROD_ELEMENTARY"'
2024-03-26 03:06:24 — INFO — Running dbt --log-format json run-operation elementary.log_macro_results --args {"macro_name": "get_test_results", "macro_args": {"days_back": 30, "invocations_per_test": 720, "disable_passed_test_metrics": false}} --project-dir /usr/local/lib/python3.9/site-packages/elementary/monitor/dbt_project
2024-03-26 03:09:43 — ERROR — Could not generate the report - Error: Failed to run dbt command.
Please reach out to our community for help with this issue.
NoneType: None
2024-03-26 03:09:52,143 Failed to run the edr command.
Traceback (most recent call last):
  File "/entrypoint.py", line 141, in main
    run_edr(args.edr_command, args.project_dir)
  File "/entrypoint.py", line 112, in run_edr
    subprocess.run(edr_command, shell=True, check=True, cwd=project_dir)
  File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'dbt deps && edr monitor send-report --days-back 30 --env prod --aws-access-key-id $aws_key --aws-secret-access-key $aws_secret --s3-bucket-name prod-ludeo-data-elementary --update-bucket-website true
' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/entrypoint.py", line 148, in <module>
    main()
  File "/entrypoint.py", line 141, in main
    run_edr(args.edr_command, args.project_dir)
  File "/entrypoint.py", line 112, in run_edr
    subprocess.run(edr_command, shell=True, check=True, cwd=project_dir)
  File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'dbt deps && edr monitor send-report --days-back 30 --env prod --aws-access-key-id $aws_key --aws-secret-access-key $aws_secret --s3-bucket-name prod-ludeo-data-elementary --update-bucket-website true
' returned non-zero exit status 1.
any idea how can i check what fails?
n
Hey @Shay Misgav 👋🏼 Can you please share the edr log file and the dbt log file? As @Amir Brohi mentioned, it is also very possible that you have a similar issue. Is it possible your similar run out of memory?