alist icon indicating copy to clipboard operation
alist copied to clipboard

腾讯云COS对象存储无法新建文件夹、无法删除文件。

Open NianBroken opened this issue 3 years ago • 9 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • [X] I'm sure I'm using the latest version

Alist Version / Alist 版本

v3.2.0

Driver used / 使用的存储驱动

对象存储

Describe the bug / 问题描述

具体表现为:

  • 无法在AList站点前台新建文件夹,新建文件夹自动变成空文件
  • 无法在AList站点前台删除文件或文件夹,前台虽提示删除成功,但刷新后,文件依旧存在,且存储桶中的文件列表也显示文件存在。

Reproduction / 复现链接

视频链接:https://pan.nianbroken.top/d/%E5%85%B1%E4%BA%AB/bandicam%202022-10-16%2001-50-10-544.mp4 地址链接:https://pan.nianbroken.top/%E8%85%BE%E8%AE%AF%E4%BA%91COS

Logs / 日志

[GIN] 2022/10/16 - 02:14:54 | 200 |      62.896µs |      120.84.9.1 | GET      "/腾讯云COS"
[GIN] 2022/10/16 - 02:14:55 | 200 |     113.321µs |      120.84.9.1 | GET      "/assets/index.659f4289.css"
[GIN] 2022/10/16 - 02:14:55 | 200 |     359.404µs |      120.84.9.1 | GET      "/assets/index.cf9e8205.js"
[GIN] 2022/10/16 - 02:14:56 | 200 |     127.143µs |      120.84.9.1 | GET      "/assets/entry.680799ee.js"
[GIN] 2022/10/16 - 02:14:56 | 200 |      61.825µs |      120.84.9.1 | GET      "/api/public/settings"
[GIN] 2022/10/16 - 02:14:56 | 200 |     107.203µs |      120.84.9.1 | GET      "/api/me"
[GIN] 2022/10/16 - 02:14:56 | 200 |     558.186µs |      120.84.9.1 | POST     "/api/fs/get"
[GIN] 2022/10/16 - 02:14:56 | 200 |     542.619µs |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:00 | 200 |  125.253788ms |      120.84.9.1 | POST     "/api/fs/remove"
[GIN] 2022/10/16 - 02:15:01 | 200 |     469.419µs |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:01 | 200 |   23.920624ms |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:04 | 200 |  101.880151ms |      120.84.9.1 | POST     "/api/fs/remove"
[GIN] 2022/10/16 - 02:15:05 | 200 |     505.798µs |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:05 | 200 |   22.976787ms |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:14 | 200 |      62.303µs |   111.30.182.95 | GET      "/"
[31mERRO[0m[2022-10-16 02:15:14] failed make dir /腾讯云COS/新建文件夹会变成空文件: file exists
github.com/alist-org/alist/v3/internal/op.MakeDir.func1
	/home/runner/work/alist/alist/internal/op/fs.go:221
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.MakeDir
	/home/runner/work/alist/alist/internal/op/fs.go:192
github.com/alist-org/alist/v3/internal/fs.makeDir
	/home/runner/work/alist/alist/internal/fs/other.go:17
github.com/alist-org/alist/v3/internal/fs.MakeDir
	/home/runner/work/alist/alist/internal/fs/fs.go:44
github.com/alist-org/alist/v3/server/handles.FsMkdir
	/home/runner/work/alist/alist/server/handles/fsmanage.go:43
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/home/runner/work/alist/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/home/runner/work/alist/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:613
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:569
net/http.serverHandler.ServeHTTP
	/opt/hostedtoolcache/go/1.19.1/x64/src/net/http/server.go:2947
net/http.(*conn).serve
	/opt/hostedtoolcache/go/1.19.1/x64/src/net/http/server.go:1991
runtime.goexit
	/opt/hostedtoolcache/go/1.19.1/x64/src/runtime/asm_amd64.s:1594 
[GIN] 2022/10/16 - 02:15:14 | 200 |     277.672µs |      120.84.9.1 | POST     "/api/fs/mkdir"
[31mERRO[0m[2022-10-16 02:15:16] failed make dir /腾讯云COS/新建文件夹会变成空文件: file exists
github.com/alist-org/alist/v3/internal/op.MakeDir.func1
	/home/runner/work/alist/alist/internal/op/fs.go:221
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.MakeDir
	/home/runner/work/alist/alist/internal/op/fs.go:192
github.com/alist-org/alist/v3/internal/fs.makeDir
	/home/runner/work/alist/alist/internal/fs/other.go:17
github.com/alist-org/alist/v3/internal/fs.MakeDir
	/home/runner/work/alist/alist/internal/fs/fs.go:44
github.com/alist-org/alist/v3/server/handles.FsMkdir
	/home/runner/work/alist/alist/server/handles/fsmanage.go:43
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/home/runner/work/alist/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/home/runner/work/alist/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:613
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:569
net/http.serverHandler.ServeHTTP
	/opt/hostedtoolcache/go/1.19.1/x64/src/net/http/server.go:2947
net/http.(*conn).serve
	/opt/hostedtoolcache/go/1.19.1/x64/src/net/http/server.go:1991
runtime.goexit
	/opt/hostedtoolcache/go/1.19.1/x64/src/runtime/asm_amd64.s:1594 
[GIN] 2022/10/16 - 02:15:16 | 200 |     347.333µs |      120.84.9.1 | POST     "/api/fs/mkdir"
[GIN] 2022/10/16 - 02:15:20 | 200 |   27.727365ms |      120.84.9.1 | POST     "/api/fs/mkdir"
[GIN] 2022/10/16 - 02:15:20 | 200 |   19.401558ms |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:23 | 200 |   19.922394ms |      120.84.9.1 | POST     "/api/fs/list"
[GIN] 2022/10/16 - 02:15:26 | 200 |       81.79µs |   111.30.182.95 | GET      "/"

NianBroken avatar Oct 15 '22 18:10 NianBroken

See

  1. 100% #2028

github-actions[bot] avatar Oct 15 '22 18:10 github-actions[bot]

See

  1. 100% 腾讯云COS对象存储无法新建文件夹、无法删除文件。 #2028

该Issues是我忘记打打勾了,所以重新发了一份

NianBroken avatar Oct 15 '22 18:10 NianBroken

对象存储好像不能创建文件夹

mengguyi avatar Oct 16 '22 02:10 mengguyi

对象存储好像不能创建文件夹

我询问过我的朋友,他们是可以正常删除COS文件以及创建COS文件夹的,他们的版本分别是V2.6.4,v2.6.3-0-g1d3b869 而我使用的v3.2.0我无法完成操作 我猜测是Bug

NianBroken avatar Oct 16 '22 02:10 NianBroken

@Vizards @LittleJake @Xhofe 打扰了,能辛苦检测一下这个BUG吗

NianBroken avatar Oct 16 '22 02:10 NianBroken

具体表现为:

  • 无法在AList站点前台新建文件夹,新建文件夹自动变成空文件
  • 无法在AList站点前台删除文件或文件夹,前台虽提示删除成功,但刷新后,文件依旧存在,且存储桶中的文件列表也显示文件存在。

只有前台操作会这样么,还是通过其他方式,例如WebDAV操作也不行

LittleJake avatar Oct 16 '22 16:10 LittleJake

具体表现为:

  • 无法在AList站点前台新建文件夹,新建文件夹自动变成空文件
  • 无法在AList站点前台删除文件或文件夹,前台虽提示删除成功,但刷新后,文件依旧存在,且存储桶中的文件列表也显示文件存在。

只有前台操作会这样么,还是通过其他方式,例如WebDAV操作也不行

没有尝试过WebDAV(其实是不知道WebDAV是什么 并且我把我的腾讯云密钥给我的朋友后,他们使用V2.6.4和v2.6.3-0-g1d3b869挂载我的COS是可以正常操作的

NianBroken avatar Oct 16 '22 16:10 NianBroken

+1,腾讯云COS 与 AWS S3 等S3协议均出现同样的问题

eyeix avatar Oct 17 '22 05:10 eyeix

阿里云OSS也是同样的问题

HCLonely avatar Oct 17 '22 12:10 HCLonely

阿里云+1

MasterKe2003 avatar Jan 18 '24 11:01 MasterKe2003