AlistGo / AlistGo/alist

oss自定义根文件夹路径后删除文件夹报错

Offen
#8,380 2 Kommentare 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.44.0

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

oss

### Describe the bug / 问题描述

oss挂载目录:/OSS
oss根文件夹路径:/share
删除video文件夹时日志报错:
ERRO[2025-04-15 05:29:49] failed remove /OSS/public/video: object not found

前端报错:
Failed get dir: failed get parent list: failed get dir: failed get parent list: failed get dir: object not found

根目录路径设置为:/ 则没有任何错误,设置成/share路径后,目前发现只有删除文件夹时报错。

### Reproduction / 复现链接

none

### Config / 配置

无更改

### Logs / 日志

github.com/alist-org/alist/v3/internal/op.Get
/home/runner/work/alist/alist/internal/op/fs.go:227
github.com/alist-org/alist/v3/internal/op.GetUnwrap
/home/runner/work/alist/alist/internal/op/fs.go:231
github.com/alist-org/alist/v3/internal/op.List
/home/runner/work/alist/alist/internal/op/fs.go:116
github.com/alist-org/alist/v3/internal/op.Get
/home/runner/work/alist/alist/internal/op/fs.go:217
github.com/alist-org/alist/v3/internal/op.GetUnwrap
/home/runner/work/alist/alist/internal/op/fs.go:231
github.com/alist-org/alist/v3/internal/op.List
/home/runner/work/alist/alist/internal/op/fs.go:116
github.com/alist-org/alist/v3/internal/op.Get
/home/runner/work/alist/alist/internal/op/fs.go:217
github.com/alist-org/alist/v3/internal/op.GetUnwrap
/home/runner/work/alist/alist/internal/op/fs.go:231
github.com/alist-org/alist/v3/internal/op.List
/home/runner/work/alist/alist/internal/op/fs.go:116
github.com/alist-org/alist/v3/drivers/s3.(*S3).removeDir
/home/runner/work/alist/alist/drivers/s3/util.go:230
github.com/alist-org/alist/v3/drivers/s3.(*S3).Remove
/home/runner/work/alist/alist/drivers/s3/driver.go:160
github.com/alist-org/alist/v3/internal/op.Remove
/home/runner/work/alist/alist/internal/op/fs.go:490
github.com/alist-org/alist/v3/internal/fs.remove
/home/runner/work/alist/alist/internal/fs/other.go:48
github.com/alist-org/alist/v3/internal/fs.Remove
/home/runner/work/alist/alist/internal/fs/fs.go:93
github.com/alist-org/alist/v3/server/handles.FsRemove
/home/runner/work/alist/alist/server/handles/fsmanage.go:221
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.Auth
/home/runner/work/alist/alist/server/middlewares/auth.go:73
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
/home/runner/work/alist/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/net/http/server.go:3210
net/http.(*conn).serve
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/net/http/server.go:2092
runtime.goexit
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/runtime/asm_amd64.s:1700
failed get dir
failed get parent list
failed get dir
failed get parent list
failed get dir
github.com/alist-org/alist/v3/internal/op.Remove
/home/runner/work/alist/alist/internal/op/fs.go:501
github.com/alist-org/alist/v3/internal/fs.remove
/home/runner/work/alist/alist/internal/fs/other.go:48
github.com/alist-org/alist/v3/internal/fs.Remove
/home/runner/work/alist/alist/internal/fs/fs.go:93
github.com/alist-org/alist/v3/server/handles.FsRemove
/home/runner/work/alist/alist/server/handles/fsmanage.go:221
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.Auth
/home/runner/work/alist/alist/server/middlewares/auth.go:73
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
/home/runner/work/alist/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/net/http/server.go:3210
net/http.(*conn).serve
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/net/http/server.go:2092
runtime.goexit
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/runtime/asm_amd64.s:1700
[GIN] 2025/04/15 - 05:29:49 | 200 | 1.117911ms | x.x.x.x| POST "/api/fs/remove"

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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