Langfuse on Cloud Run
Had someone tried deploy langfuse on Google cloud run yet?
I faced a problem on deploying it to cloud run. It shows error like this below.
Any thought on this?
19 Replies
We have never seen this issue. Which host did you configure for the langchain SDK?
We were mainly following this https://langfuse.com/docs/deployment/self-host
Was there a place to configure host for langchain SDK?
Self-Hosting Instructions - Langfuse
Langfuse is open source and can be self-hosted in your own infrastructure via Docker
We are using this env on cloud run btw
The SDKs have their own configs for hosts: JS (https://langfuse.com/docs/integrations/sdk/typescript#options) and Python (https://langfuse.com/docs/integrations/sdk/python#options)
Python SDK - Langfuse
Fully async and typed Python SDK. Uses Pydantic objects for data verification.
JS/TS SDK - Langfuse
Fully async and typed SDK, runs in Node.js, edge, Deno
Sorry i misunderstood you. These are logs from the Langfuse container?
These are logs from Cloud Run
Although we do see one message from Langfuse container
Does the error occurr immediately on startup or when you do something like loading the page, logging in, sending events via the SDK?
This is a final error message after the startup fails.
Can you try to pull the latest container?
I published an update a couple of hours ago
The update could fix this
Still same error
I'll give it a try later
Do you have any more data that helps to reproduce the problem?
One more thing is we are using cloud sql to serve as a postgresql.
Created an issue for this: https://github.com/langfuse/langfuse/issues/195
GitHub
[LFC-188] bug: Container failed to start and listen on Port 3000 (G...
Describe the bug To reproduce Run langfuse container on Google Cloud Run Additional information Optional: Add cloud run instructions to docs LFC-188