Akemi

私有oss版本太老导致mc无法上传问题

2026/03/04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
当前已经通过mc命令配置了.mc文件,如下
mc set name endpoint ak sk
"name": {
"url": "http://xxx",
"accessKey": "xxxx",
"secretKey": "xxxx",
"api": "s3v4",
"path": "auto"
},

url使用的是一个很老的私有的oss
如果直接通过mc cp,会报错:
mc cp ./test.file name/prod/qa/
mc: <ERROR> Failed to copy `/home/ws/下载/test.file`. Aws MultiChunkedEncoding is not supported.

解决方法

1
2
3
4
5
mc默认使用s3v4的协议

需要使用更低版本的连接:
mc set name endpoint ak sk --api "S3v2"
就可以了
CATALOG