Hi everyone :wave: I’m using elementary for clickh...
# community-support
s
Hi everyone πŸ‘‹ I’m using elementary for clickhouse and trying to generate a report with Elementary (edr=0.19.5), but I keep hitting an error when running:
edr report
Here’s the error I get:
Copy code
2025-09-11 00:38:37 β€” INFO β€” Running dbt command --log-format json run-operation elementary.log_macro_results --args {"macro_name": "elementary_cli.get_models_latest_invocations_data", "macro_args": {}} --project-dir /home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/monitor/dbt_project [31;20m2025-09-11 00:38:38 β€” ERROR β€” Could not generate the report - Error: Failed to run dbt command. {"info": {"name": "RunningOperationCaughtError", "code": "Q001", "msg": "Encountered an error while running operation: Runtime Error\n ClickHouse exception: 'utf-8' codec can't decode byte 0xff in position 76: invalid start byte", "level": "error", "invocationId": "9760423c-99eb-4484-9b81-e85a74e58303", "pid": 2484906, "thread": "MainThread", "ts": "2025-09-10T21:38:37.968999Z"}, "data": {"exc": "Runtime Error\n ClickHouse exception: 'utf-8' codec can't decode byte 0xff in position 76: invalid start byte"}} Please reach out to our community for help with this issue.[0m Traceback (most recent call last): File "/home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/monitor/api/report/report.py", line 188, in get_report_data invocations = invocations_api.get_models_latest_invocations_data() File "/home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/monitor/api/invocations/invocations.py", line 64, in get_models_latest_invocations_data return self.invocations_fetcher.get_models_latest_invocations_data() File "/home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/monitor/fetchers/invocations/invocations.py", line 26, in get_models_latest_invocations_data invocations_response = self.dbt_runner.run_operation( File "/home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/clients/dbt/command_line_dbt_runner.py", line 177, in run_operation result = self._run_command( File "/home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/clients/dbt/command_line_dbt_runner.py", line 114, in _run_command result = self._inner_run_command( File "/home/shemetov/dbt-clickhouse/dbt_clickhouse_edr_env/lib/python3.9/site-packages/elementary/clients/dbt/api_dbt_runner.py", line 54, in _inner_run_command raise DbtCommandError( elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command. {"info": {"name": "RunningOperationCaughtError", "code": "Q001", "msg": "Encountered an error while running operation: Runtime Error\n ClickHouse exception: 'utf-8' codec can't decode byte 0xff in position 76: invalid start byte", "level": "error", "invocationId": "9760423c-99eb-4484-9b81-e85a74e58303", "pid": 2484906, "thread": "MainThread", "ts": "2025-09-10T21:38:37.968999Z"}, "data": {"exc": "Runtime Error\n ClickHouse exception: 'utf-8' codec can't decode byte 0xff in position 76: invalid start byte"}}
previously I ran and everything is fun:
dbt run --select elementary
sometimes report is generated, sometimes not. I can't catch the moment when it's generated, because I run same dbt test or dbt run. Has anyone run into this issue when using Elementary with dbt-clickhouse?
It looks like I found the root cause πŸŽ‰ I was using the TCP port 9000 for ClickHouse. After switching to the HTTP port 8123, the error no longer occurs. βœ…
πŸ™Œ 1
n
@shemik7 The library has a bug, if you install a package from the master, it was fixed. I have a discussion with developer and he created a fix some post before
πŸ‘ 1
πŸŽ‰ 1