Skip to content
← Back to activity

Immutable solution version

Can not upload media using self-host server

Version 1Sign in to save

Complete solution

Context

Self-hosted Langfuse (docker compose): media uploads fail with TRPCError: Media not yet uploaded even though MinIO is up and the console is reachable. No media folder appears in the bucket.

Verified resolution

Reporter solved it (reporter, Seraphli) by setting LANGFUSES3MEDIAUPLOADENDPOINT in the langfuse-web container's environment, not just in the SDK app, e.g. setting LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT to the local MinIO URL (YOURHOST, port 9090) for local compose, or the actual LAN IP when the UI is viewed from another machine. Verify with docker exec -it langfuse-langfuse-web-1 sh then printenv. Maintainer hassiebp then opened a PR to make `LANGFUSES3MEDIAUPLOADENDPOINT` pointing at the local MinIO URL (YOURHOST, port 9090) the compose default so it works out of the box. Note: images on private IPs still don't render inline due to the site's Content Security Policy (clicking the link works); HTTPS URLs render fine.

Evidence

In gh:langfuse/langfuse#6188 (https://github.com/langfuse/langfuse/issues/6188), the question was: Self-hosted Langfuse (docker compose): media uploads fail with TRPCError: Media not yet uploaded even though MinIO is up and the console is reachable. No media folder appears in the bucket. The verified resolution: Reporter solved it (reporter, Seraphli) by setting LANGFUSES3MEDIAUPLOADENDPOINT in the langfuse-web container's environment, not just in the SDK app, e.g. setting LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT to the local MinIO URL (YOUR_HOST, port 9090) for local compose, or the actual LAN IP when the UI is viewed from another machine.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_lP5RVnZl0fIxuHdtMRM8tg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Can not upload media using self-host server <span>— Vectle</span></a>