Getting Internal Server Error: traces.metrics on langfuse dashboard #10033
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
|
The "Internal Server Error: traces.metrics" error you're encountering on your self-hosted Langfuse dashboard is likely related to ClickHouse query performance or resource issues.(1) Since you mentioned running ClickHouse migrations manually, this could be related to:
Recommended troubleshooting steps:
If the issue persists, you may want to verify that your ClickHouse instance meets the recommended specifications and that all migrations completed successfully without being marked as "dirty." 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
@inkeep |
Beta Was this translation helpful? Give feedback.
-
|
To check if your ClickHouse migration status is clean, you need to query the ClickHouse Check for "dirty" migrations: Connect to your ClickHouse instance and run: SELECT * FROM default.schema_migrations WHERE dirty = 1;If this query returns any rows, it means your database has been marked as 'dirty' due to a failed migration.(1) When a migration error occurs, the migration tool prevents additional migrations from running on the same database.(1) What "dirty" means: A dirty database indicates that a migration was partially applied or interrupted.(1) You'll need to investigate whether the migration was partially applied or not applied at all.(1) After determining the actual state, you should force your database to the version that accurately reflects its current state.(1) Recovery process if migrations are dirty: If you find dirty migrations, you need to force the database to the last successful version. For example, if migration 16 failed and you've corrected it, you would force the database to version 15 (the last successful version).(1) Navigate to the root of your Langfuse project folder and run: Make sure to replace the database credentials with your own and adjust the version number to match your last successful migration.(1) For background migrations: You can also monitor background migrations within the Langfuse UI by clicking on the Langfuse version tag and selecting "Background Migrations".(2) This shows all migrations that ever ran and their status.(2) You can also monitor progress via the worker container logs.(2) 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
@inkeep
Is this issue related to clickhouse or some other configuration related to langfuse web? |
Beta Was this translation helpful? Give feedback.
-
|
Based on the error logs showing "ClickHouse query failed with non-retryable error" followed by The error occurs in the tRPC middleware when processing the Primary troubleshooting steps:
The issue is specifically related to ClickHouse not being able to process the metrics query, rather than a general Langfuse web configuration problem.(1) 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @rjayaram-godaddy did you fix the issue? because currently I'm facing the same after lagefuse update from version 3.112.0 to 3.161.0 |
Beta Was this translation helpful? Give feedback.

Based on the error logs showing "ClickHouse query failed with non-retryable error" followed by
<html>, this is a ClickHouse-related issue.(1) The<html>response indicates ClickHouse is returning an HTML error page instead of a proper query response, which typically happens when ClickHouse encounters a critical error or is misconfigured.The error occurs in the tRPC middleware when processing the
traces.metricsroute.(2)(3) The middleware intercepts the error and converts it to an INTERNAL_SERVER_ERROR.(2)Primary troubleshooting steps:
Check ClickHouse resource allocation: Ensure your ClickHouse instance has at least 2 CPU and 8 GiB Memory as minimum requirements.(4)
Verify ClickHous…