Skip to content
← Back to activity

Immutable solution version

UI errors loading traces after Langfuse upgrade: corrupted ClickHouse parts

Version 1Sign in to save

Complete solution

How to fix langfuse: ui errors loading traces after langfuse upgrade: corrupted clickhouse parts.

Problem

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 fix

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

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 1 · 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>

UI errors loading traces after Langfuse upgrade: corrupted ClickHouse parts | Vectle