Skip to content

[BUG] 不能对阿里云OSS超过1G大小的文件进行重命名、移动和复制操作 #1799

@JunXiaoRuo

Description

@JunXiaoRuo

请确认以下事项

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

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

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

  • 我已确认阅读了OpenList文档

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

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

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

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

OpenList 版本(必填)

v4.1.8

使用的存储驱动(必填)

对象存储-阿里云OSS

问题描述(必填)

阿里云OSS,重命名、移动、复制的时候提示:
NoSuchKey: The specified key does not exist. status code: 404, request id: 693B769B24FCA736375D2D0C, host id:
文件大小超过1G
我去OSS官方看了一下提示

Image

日志(必填)

[GIN] 2025/12/12 - 16:05:44 | 200 | 3.948581ms | 110.167.181.1 | POST "/api/fs/list"
ERRO[2025-12-12 16:05:50] failed rename /华强北手表/刷机包/CD/CD20M/dotos+R+v5.2+CD20max+by+Flor+and+康师傅在逃牛肉.zip to dotos+R+v5.2+CD20max+by+Flor+and+康师傅在逃牛肉!.zip: NoSuchKey: The specified key does not exist.
status code: 404, request id: 693BCCDE81A88D3236BCDE96, host id:
github.com/OpenListTeam/OpenList/v4/internal/op.Rename
/home/runner/work/OpenList/OpenList/internal/op/fs.go:407
github.com/OpenListTeam/OpenList/v4/internal/fs.rename
/home/runner/work/OpenList/OpenList/internal/fs/other.go:26
github.com/OpenListTeam/OpenList/v4/internal/fs.Rename
/home/runner/work/OpenList/OpenList/internal/fs/fs.go:96
github.com/OpenListTeam/OpenList/v4/server/handles.FsRename
/home/runner/work/OpenList/OpenList/server/handles/fsmanage.go:245
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.Init.Auth.func10
/home/runner/work/OpenList/OpenList/server/middlewares/auth.go:74
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/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/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/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
[GIN] 2025/12/12 - 16:05:50 | 200 | 3.919263ms | 110.167.181.1 | POST "/api/fs/rename"
[GIN] 2025/12/12 - 16:05:53 | 200 | 260.759µs | 110.167.181.1 | POST "/api/fs/dirs"
[GIN] 2025/12/12 - 16:05:55 | 200 | 148.555µs | 110.167.181.1 | POST "/api/fs/dirs"
ERRO[2025-12-12 16:05:56] failed move /华强北手表/刷机包/CD/CD20M/dotos+R+v5.2+CD20max+by+Flor+and+康师傅在逃牛肉.zip to /华强北手表: NoSuchKey: The specified key does not exist.
status code: 404, request id: 693BCCE481A88D323698E996, host id:
github.com/OpenListTeam/OpenList/v4/internal/op.Move
/home/runner/work/OpenList/OpenList/internal/op/fs.go:366
github.com/OpenListTeam/OpenList/v4/internal/fs.transfer
/home/runner/work/OpenList/OpenList/internal/fs/copy_move.go:121
github.com/OpenListTeam/OpenList/v4/internal/fs.Move
/home/runner/work/OpenList/OpenList/internal/fs/fs.go:72
github.com/OpenListTeam/OpenList/v4/server/handles.FsMove
/home/runner/work/OpenList/OpenList/server/handles/fsmanage.go:112
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.Init.Auth.func10
/home/runner/work/OpenList/OpenList/server/middlewares/auth.go:74
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/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/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/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
[GIN] 2025/12/12 - 16:05:56 | 200 | 3.605076ms | 110.167.181.1 | POST "/api/fs/move"

配置文件内容(必填)

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