Deployment on K8s #2735
-
|
Hi Team, When I try to deploy langfuse on a K8 cluster, I get the following error logs on my webserver pod On the db pod, I get the following log message I created my own postgres db using bitnami and am trying to deploy langfuse webserver without deploying db. My db pod is running. Both the pods are running on the same cluster. I couldn't figure out the reason for this error, can anyone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
Hey @nithin1995! I'm here to help you with the langfuse deployment issue. I'm a bot that can assist with bug fixes, answering questions, and guiding you to become a contributor. Let's figure this out together! To resolve the database migration issues you're encountering when deploying Langfuse on your Kubernetes cluster, you can follow these steps:
By following these steps, you should be able to resolve the database migration issues and ensure proper connectivity between the Langfuse webserver pod and the PostgreSQL database pod [1][2][3]. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @nithin1995, sorry for the slow response here! This issue generally hints at that this migration (file) was already applied but failed while being applied. As this migration adds an index to the database, this might happen due to short session timeouts configured on the postgres user that is used to run the migrations. You can add a separate user that is just used for migrations, quoting from the docs
Can you check whether this index exist on the table? If not, you can remove the row from the |
Beta Was this translation helpful? Give feedback.



Hi @nithin1995, sorry for the slow response here!
This issue generally hints at that this migration (file) was already applied but failed while being applied. As this migration adds an index to the database, this might happen due to short session timeouts configured on the postgres user that is used to run the migrations.
You can add a separate user that is just used for migrations, quoting from the docs