You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用MLflow调用MinIO时出现S3UploadFailedError(MissingContentLength)的解决办法咨询

MLflow调用MinIO时出现S3UploadFailedError(MissingContentLength)的解决办法咨询

最近我们团队在用mlflow.log_artifact()往MinIO存储上传文件时,之前一直正常运行的代码突然报错了——错误来自MLflow依赖的boto3包(我们用兼容S3的本地MinIO作为MLflow本地部署的数据湖)。

具体错误信息如下:

S3UploadFailedError: Failed to upload ./dict-20231204.2.json to mlflow/24/<run_id>/artifacts/dict-20231204.2.json: An error occurred (MissingContentLength) when calling the PutObject operation: You must provide the Content-Length HTTP header.

错误抛出的位置是:
[..]/python3.11/site-packages/boto3/s3/transfer.py:378, in S3Transfer.upload_file()

想请教各位有没有可行的解决方案,或者至少能恢复文件上传到MinIO存储桶的临时办法?

备注:内容来源于stack exchange,提问作者mirekphd

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 14:43:00