Skip to content

bug: Data retention job fails due to MissingContentMD5 error on MinIO DeleteObjects #356

Description

@LukasKannengiesser

Describe the bug

When langfuse is provided with an enterprise key and the data retention is set to a certain number of days, the data retention job fails silently when using the internal MinIO (deployed via the Langfuse Helm chart) as S3-compatible storage. Traces and observations older than the configured retention period are never deleted.

PR fix(storage): disable default S3 checksums for GCS multipart uploads
#13280 (langfuse/langfuse#13280) does not seam to fix this.

This is the error observed in worker logs
{
"msg": "Failed to delete files from S3",
"errorName": "MissingContentMD5",
"errorMessage": "Missing required header for this request: Content-Md5.",
"httpStatus": 400,
"errorCode": "MissingContentMD5"
}

To reproduce

  1. Deploy Langfuse via the Helm chart with internal MinIO enabled and provide langfuse enterprise key
  2. Configure a data retention policy (e.g. 90 days) in the Langfuse project settings
  3. Ingest traces and make sure Postgres contains references to media files such that data retention job actually triggers S3 clean-up
  4. Wait for the nightly data retention job to run
  5. Observe the worker logs. The job fails with MissingContentMD5 and exits without deleting any traces

Chart version and values.yaml configuration

The error occurred using chart version 1.5.31

Kubernetes Status

No response

Logs

No response

Additional information

No response

Are you interested to contribute a fix for this bug?

No

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions