Langfuse Web Failing to start Because ClickHouse Tables in Readonly Mode and Zookeeper Metadata Not Found #11885
-
Describe your questionI'm experiencing an issue with Langfuse Web component where ClickHouse tables are in readonly mode during startup. Error Details
Questions
Environment Details
DiscussionWith that said, are there any guidance on resolving this Zookeeper metadata issue? Thank you in advance! Langfuse Cloud or Self-Hosted?Self-Hosted If Self-Hosted1.15.19 If Langfuse CloudNo response SDK and integration versionsNo response Pre-Submission Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The error indicates that ClickHouse tables are in readonly mode because table metadata was not found in Zookeeper(1). This typically occurs when replicas have corrupted local metadata that prevents them from properly registering with Zookeeper(1). Recovery StepsWhen ClickHouse replicas show persistent For the affected replicas (shard0-0 and shard0-2 in your case), follow these steps(1):
The commands would be(1): kubectl delete pod langfuse-clickhouse-shard0-0 -n <namespace>
kubectl delete pvc data-langfuse-clickhouse-shard0-0 -n <namespace>After deletion, the StatefulSet will automatically recreate the pod with a fresh PVC, allowing it to properly register with Zookeeper and sync from healthy nodes(1). Important ConsiderationsEnsure your ClickHouse deployment has The ClickHouse configuration requires specific macros and default_replica settings to be properly configured for replicated tables(2). These should be covered by the Helm chart without additional configuration(2). PreventionThis issue can also occur from disk space problems(2). Monitor your PVC usage and ensure your storage class has 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
The error indicates that ClickHouse tables are in readonly mode because table metadata was not found in Zookeeper(1). This typically occurs when replicas have corrupted local metadata that prevents them from properly registering with Zookeeper(1).
Recovery Steps
When ClickHouse replicas show persistent
is_readonly = 1and cannot find metadata in Zookeeper, you need to force the affected nodes to clean their local history and re-attach to download parts from healthy replicas(1).For the affected replicas (shard0-0 and shard0-2 in your case), follow these steps(1):