langfuse icon indicating copy to clipboard operation
langfuse copied to clipboard

bug: Cannot health check langfuse worker

Open ronald0samuel opened this issue 1 year ago • 4 comments

Describe the bug

according to docs this is how you run a health check curl http://localhost:3030/api/health but when i try https://langfuse.allohealth.care/api/health , it just returns a 404 page I want to test this since i have been getting no data being ingested all of a sudden

Steps to reproduce

No steps, just have to keep langfuse hosted for 3 months.

Langfuse Cloud or self-hosted?

Self-hosted on azure using terraform

If self-hosted, what version are you running?

3.100.0

SDK and integration versions

No response

Additional information

Filesystem Size Used Avail Use% Mounted on /dev/sdc 7.8G 7.8G 944K 100% /bitnami/clickhouse

Are you interested in contributing a fix for this bug?

Yes

ronald0samuel avatar Nov 14 '25 09:11 ronald0samuel

The /api/health endpoint is meant to be served by the langfuse-worker container, typically on port 3030, and should return a 200 OK if healthy or 503 if not. If you’re getting a 404, it’s likely the request isn’t reaching the worker service directly—common causes are ingress/proxy misconfiguration, the port not being exposed, or the request being routed to the web container instead of the worker. Health endpoints are always served from the root path, not under any custom base path or ingress rewrite rules, so probes or requests must target the root (e.g., http://localhost:3030/api/health) docs.

Try running curl http://localhost:3030/api/health from inside the worker container or host to confirm the endpoint is available locally. If that works, check your ingress or proxy config to ensure /api/health is routed to the worker service and not the web UI. If you need to expose the endpoint externally, make sure port 3030 is mapped and accessible. Setting LANGFUSE_DEBUG=True can help with troubleshooting by providing more detailed logs. If you’re still seeing 404s, review your deployment config for port mappings and routing rules example.

If data ingestion has stopped, also check worker and web container logs for errors, and verify that your API keys and environment variables are correct. Let me know if you want help reviewing your config or logs.

To reply, just mention @dosu.


Docs are dead. Just use Dosu.

Leave Feedback Ask Dosu about langfuse Share Dosu with your team

dosubot[bot] avatar Nov 14 '25 09:11 dosubot[bot]

Filesystem Size Used Avail Use% Mounted on /dev/sdc 7.8G 7.8G 944K 100% /bitnami/clickhouse

ronald0samuel avatar Nov 14 '25 10:11 ronald0samuel

The worker is not directly exposed, you need to check it from within your cluster. Also, you willw ant to check every instance of the worker container and not just a random one.

marcklingen avatar Nov 14 '25 19:11 marcklingen