Skip to content

[BUG] 天翼云盘上传部分文件会出现Method not allowed的错误 #1946

@zanjie1999

Description

@zanjie1999

请确认以下事项

  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我已确认是OpenList的问题,而不是其他原因(例如 网络依赖操作)。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认这个问题在最新版本中没有被修复。

OpenList 版本(必填)

v4.1.9

使用的存储驱动(必填)

天翼云盘客户端

问题描述(必填)

我使用群晖的cloudsync单向同步上传文件,部分文件始终会上传失败,查看log,都是Method not allowed错误,与文件大小无关,比如下面日志中的这个文件就几百k,具体日志看下方

启用了家庭传输,可用空间足够,具体配置看下方

日志(必填)

cloudsync:

2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [INFO] webdav-protocol.cpp(537): WebDAVUpload: url = 'http://127.0.0.1:5255/dav/%E5%A4%A9%E7%BF%BC%E4%BA%91%E7%9B%98/OwO/photo/%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE/BanG%20Dream%21%20Ave%20Mujica%20%E9%A2%82%E4%B9%90%E4%BA%BA%E5%81%B6/%5BNekomoe%20kissaten%26LoliHouse%5D%20BanG%20Dream%21%20Ave%20Mujica%20-%2008%20%5BWebRip%201080p%20HEVC-10bit%20AAC%20ASSx2%5D-0008.heic', user = 'sparkle'
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [INFO] worker.cpp(887): Worker (19): HandleError: Successful.
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [INFO] worker.cpp(1051): Worker (19): current event: Event<EV_ADD> (WAITTING): [40] /Photos/MobileBackup/メメちゃん/2022/07 (local,dir,expand,rescan)
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [ERROR] webdav-protocol.cpp(167): Server error: status='405', msg = 'Method not allowed'
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [ERROR] webdav-client-handler.cpp(417): WebDAVHandler: Failed to upload file at '/天翼云盘/OwO/photo/视频截图/BanG Dream! Ave Mujica 颂乐人偶/[Nekomoe kissaten&LoliHouse] BanG Dream! Ave Mujica - 08 [WebRip 1080p HEVC-10bit AAC ASSx2]-0008.heic' with error = 'Method not allowed'
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [INFO] worker.cpp(770): Erase resume info (other). [25|0|/视频截图/BanG Dream! Ave Mujica 颂乐人偶/[Nekomoe kissaten&LoliHouse] BanG Dream! Ave Mujica - 08 [WebRip 1080p HEVC-10bit AAC ASSx2]-0008.heic]
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [ERROR] worker.cpp(2099): Worker (14): Failed to RunUploadLocalProtocol (-38) '/视频截图/BanG Dream! Ave Mujica 颂乐人偶/[Nekomoe kissaten&LoliHouse] BanG Dream! Ave Mujica - 08 [WebRip 1080p HEVC-10bit AAC ASSx2]-0008.heic'.
2026-01-10T10:08:11+08:00 OwO syno-cloud-syncd[17661]: [INFO] worker.cpp(887): Worker (14): HandleError: Bad request.

openlist:
看起来文件覆盖上传时出现了重命名失败的问题

[GIN] 2026/01/10 - 11:01:33 | 405 |  5.755463651s |       127.0.0.1 | PUT      "/dav/天翼云盘/OwO/photo/视频截图/从OneDrive移过来的/打了300年的史莱姆,不知不觉就练到了满级/打了300年的史莱姆,不知不觉就练到了满级:第10话_番剧_bilibili_哔哩哔哩_22'8.968''.jpg"
ERRO[2026-01-10 11:01:35] failed put /天翼云盘/OwO/photo/视频截图/从OneDrive移过来的/悠哉日常大王-のんのんびより: res_code: FileAlreadyExists ,res_msg: renameFile() - operId = 143304878, srcUserId=143304878, parentId = 125251177904518840, newFileName = [Shirokoi&Airota&VCB-Studio] Non Non Biyori [08][Ma10p_1080p][x265_flac_aac].mkv_20201125_121149.891.heic.openlist_to_delete, exist.
github.com/OpenListTeam/OpenList/v4/internal/op.Rename
        /home/runner/work/OpenList/OpenList/internal/op/fs.go:473
github.com/OpenListTeam/OpenList/v4/internal/op.Put
        /home/runner/work/OpenList/OpenList/internal/op/fs.go:634
github.com/OpenListTeam/OpenList/v4/internal/fs.putDirectly
        /home/runner/work/OpenList/OpenList/internal/fs/put.go:110
github.com/OpenListTeam/OpenList/v4/internal/fs.PutDirectly
        /home/runner/work/OpenList/OpenList/internal/fs/fs.go:112
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).handlePut
        /home/runner/work/OpenList/OpenList/server/webdav/webdav.go:374
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).ServeHTTP
        /home/runner/work/OpenList/OpenList/server/webdav/webdav.go:73
github.com/OpenListTeam/OpenList/v4/server.ServeWebDAV
        /home/runner/work/OpenList/OpenList/server/webdav.go:47
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.DownloadRateLimiter.func3
        /home/runner/work/OpenList/OpenList/server/middlewares/limit.go:51
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.UploadRateLimiter.func2
        /home/runner/work/OpenList/OpenList/server/middlewares/limit.go:28
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDAVAuth
        /home/runner/work/OpenList/OpenList/server/webdav.go:146
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server/middlewares.StoragesLoaded
        /home/runner/work/OpenList/OpenList/server/middlewares/check.go:35
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:600
net/http.serverHandler.ServeHTTP
        /opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:3340
net/http.(*conn).serve
        /opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:2109
runtime.goexit
        /opt/hostedtoolcache/go/1.25.0/x64/src/runtime/asm_amd64.s:1693 
ERRO[2026-01-10 11:01:35] failed put /天翼云盘/OwO/photo/视频截图/从OneDrive移过来的/悠哉日常大王-のんのんびより: res_code: FileAlreadyExists ,res_msg: renameFile() - operId = 143304878, srcUserId=143304878, parentId = 125251177904518840, newFileName = 屏幕截图(87).heic.openlist_to_delete, exist.
github.com/OpenListTeam/OpenList/v4/internal/op.Rename
        /home/runner/work/OpenList/OpenList/internal/op/fs.go:473
github.com/OpenListTeam/OpenList/v4/internal/op.Put
        /home/runner/work/OpenList/OpenList/internal/op/fs.go:634
github.com/OpenListTeam/OpenList/v4/internal/fs.putDirectly
        /home/runner/work/OpenList/OpenList/internal/fs/put.go:110
github.com/OpenListTeam/OpenList/v4/internal/fs.PutDirectly
        /home/runner/work/OpenList/OpenList/internal/fs/fs.go:112
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).handlePut
        /home/runner/work/OpenList/OpenList/server/webdav/webdav.go:374
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).ServeHTTP
        /home/runner/work/OpenList/OpenList/server/webdav/webdav.go:73
github.com/OpenListTeam/OpenList/v4/server.ServeWebDAV
        /home/runner/work/OpenList/OpenList/server/webdav.go:47
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.DownloadRateLimiter.func3
        /home/runner/work/OpenList/OpenList/server/middlewares/limit.go:51
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.UploadRateLimiter.func2
        /home/runner/work/OpenList/OpenList/server/middlewares/limit.go:28
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDAVAuth
        /home/runner/work/OpenList/OpenList/server/webdav.go:146
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server/middlewares.StoragesLoaded
        /home/runner/work/OpenList/OpenList/server/middlewares/check.go:35
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:600
net/http.serverHandler.ServeHTTP
        /opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:3340
net/http.(*conn).serve
        /opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:2109
runtime.goexit
        /opt/hostedtoolcache/go/1.25.0/x64/src/runtime/asm_amd64.s:1693 
ERRO[2026-01-10 11:01:36] PUT /dav/天翼云盘/OwO/photo/视频截图/从OneDrive移过来的/悠哉日常大王-のんのんびより/[Shirokoi&Airota&VCB-Studio] Non Non Biyori [08][Ma10p_1080p][x265_flac_aac].mkv_20201125_121149.891.heic res_code: FileAlreadyExists ,res_msg: renameFile() - operId = 143304878, srcUserId=143304878, parentId = 125251177904518840, newFileName = [Shirokoi&Airota&VCB-Studio] Non Non Biyori [08][Ma10p_1080p][x265_flac_aac].mkv_20201125_121149.891.heic.openlist_to_delete, exist.
github.com/OpenListTeam/OpenList/v4/internal/op.Rename
        /home/runner/work/OpenList/OpenList/internal/op/fs.go:473
github.com/OpenListTeam/OpenList/v4/internal/op.Put
        /home/runner/work/OpenList/OpenList/internal/op/fs.go:634
github.com/OpenListTeam/OpenList/v4/internal/fs.putDirectly
        /home/runner/work/OpenList/OpenList/internal/fs/put.go:110
github.com/OpenListTeam/OpenList/v4/internal/fs.PutDirectly
        /home/runner/work/OpenList/OpenList/internal/fs/fs.go:112
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).handlePut
        /home/runner/work/OpenList/OpenList/server/webdav/webdav.go:374
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).ServeHTTP
        /home/runner/work/OpenList/OpenList/server/webdav/webdav.go:73
github.com/OpenListTeam/OpenList/v4/server.ServeWebDAV
        /home/runner/work/OpenList/OpenList/server/webdav.go:47
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.DownloadRateLimiter.func3
        /home/runner/work/OpenList/OpenList/server/middlewares/limit.go:51
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.UploadRateLimiter.func2
        /home/runner/work/OpenList/OpenList/server/middlewares/limit.go:28
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDAVAuth
        /home/runner/work/OpenList/OpenList/server/webdav.go:146
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/OpenListTeam/OpenList/v4/server/middlewares.StoragesLoaded
        /home/runner/work/OpenList/OpenList/server/middlewares/check.go:35
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:600
net/http.serverHandler.ServeHTTP
        /opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:3340
net/http.(*conn).serve
        /opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:2109
runtime.goexit
        /opt/hostedtoolcache/go/1.25.0/x64/src/runtime/asm_amd64.s:1693 

配置文件内容(必填)

Image

复现链接(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions