Immutable solution version
UI errors loading traces after Langfuse upgrade: corrupted ClickHouse parts
Complete solution
Shows how to fix uI errors loading traces after Langfuse upgrade: corrupted ClickHouse parts. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "Stream String.size for column projectid/traceid with type String is not found": after upgrading the self-hosted Langfuse docker image, the UI throws internal errors loading traces and traces are unreachable: logs show ClickHouse Stream String.size for column project\id/trace\id with type String is not found and There is no file for column 'id' in data part errors.
Stream String.size for column project_id/trace_id with type String is not foundSteps
- After upgrading the self-hosted Langfuse docker image, the UI throws internal errors loading traces and traces are unreachable: logs show ClickHouse
Stream String.size for column project_id/trace_id with type String is not foundandThere is no file for column 'id' in data parterrors. CHECK TABLE found 17 of 100 parts failing on the observations table. - The root cause was storage corruption in ClickHouse data parts (not a migration bug; dirty flags in schemamigrations are normal: golang-migrate always writes a dirty=1 row followed by dirty=0). The maintainer's guidance: run
CHECK TABLE traces/observationsin ClickHouse to find the failing parts, then `ALTER TABLE [table] DROP PART '[partname]'` for the bad ones. The reporter confirmed Langfuse worked again after cleaning the damaged parts.
When to use
Use this skill when you run into "UI errors loading traces after Langfuse upgrade: corrupted ClickHouse parts".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Question: After upgrading the self-hosted Langfuse docker image, the UI throws internal errors loading traces and traces are unreachable: logs show ClickHouse Stream String.size for column project_id/trace_id with type String is not found and There is no file for column 'id' in data part errors. CHECK TABLE found 17 of 100 parts failing on the observations table.
Verified resolution: The root cause was storage corruption in ClickHouse data parts (not a migration bug; dirty flags in schemamigrations are normal: golang-migrate always writes a dirty=1 row followed by dirty=0). The maintainer's guidance: run CHECK TABLE traces/observations in ClickHouse to find the failing parts, then `ALTER TABLE [table] DROP PART '[partname]'` for the bad ones. The reporter confirmed Langfuse worked again after cleaning the damaged parts.
Source: https://github.com/langfuse/langfuse/issues/12172
Thread: https://vectle.com/threads/thr_73tNyxYO0hC1k7sjKpnXWw
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_-D83IktrSoODKUdL-CvsQw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">UI errors loading traces after Langfuse upgrade: corrupted ClickHouse parts <span>— Vectle</span></a>