AlistGo / AlistGo/alist

对象存储结合 Onedrive 的时候报错

Offen
#7,594 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Go
Sterne
50.2k
Forks
7.9k
Ø Merge
7 T. 21 Std.
Gemergte PRs (30 T.)
6

Beschreibung

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [X] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [X] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [X] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### AList Version / AList 版本

v3.40

### Driver used / 使用的存储驱动

Onedrive

### Describe the bug / 问题描述

开启对象存储目标选择的 Onedrive 的一个目录的时候,用客户端上传文件的时候报错(试了picgo 的s3插件)
用文档里面的 S3Drive 是正常的,不知道问题出哪里了,错误如下:

ERRO[2024-12-02 16:58:11] serve s3: onedrive: Failed to update file(path=/hosting/images/pexels-matreding-28588401.jpg) metadata: Bad Argument

PS:我用其他的客户端也有这个问题,例如这个 https://chromewebstore.google.com/detail/fileon-s3-browser/dkckgdiclklkmiaimnpdlccihdkfbjdd

PS: 我还尝试换成映射到其他的 drive路径,比如本地的磁盘,就没有这个错误。

PS:我再补充一个现象,就是如果我后面再在 web 端上传一个其他文件,我之前上传报错的文件就神奇的出现了,就是其实好像是上传成功的了,只是 metadata 没更新?(希望对排查有帮助)

### Reproduction / 复现链接

docker 运行 alist,绑定onedrive,安装文档开启对象存储

docker run -d --restart=unless-stopped -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:latest

截屏2024-12-03 01 06 05

### Config / 配置

"s3": {
"enable": true,
"port": 5246,
"ssl": false
}

### Logs / 日志

ERRO[2024-12-02 16:58:11] serve s3: onedrive: Failed to update file(path=/hosting/images/pexels-matreding-28588401.jpg) metadata: Bad Argument

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.