alist icon indicating copy to clipboard operation
alist copied to clipboard

天翼云盘客户端-上传失败问题

Open mffan0922 opened this issue 3 years ago • 8 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 版本

latest

Driver used / 使用的存储驱动

天翼云盘客户端

Describe the bug / 问题描述

感觉和#2045问题是一样的

我的网站架构如下:

  1. alist配置天翼云盘,生成webdav的链接
  2. 使用rclone映射该webdav链接到Linux服务下一个文件夹--/opt/webdav/alist
  3. cloudreve云盘的上传目录设置为第二步中映射目录的一个子文件夹--/opt/webdav/alist/CTC-Client/Manford/09-Cloudreve
  4. alist和cloudreve应用都是通过frp透传到公网的,也就是alist和cloudreve都是部署在本地

复现过程: cloudreve网盘上传一个文件,最终天翼云盘并未能显示改文件,alist日志显示重复上传

开了秒传

下图是故障发生时,网络流量的情况: 9e0e2146c9ddc1a3c42e120ef68550b cb094cf6c9dcba4cdaf03e71e8be366

我梳理了下流量应该是这样的走向: image

Reproduction / 复现链接

https://pan.rustle.cc https://alist.rustle.cc

Logs / 日志

ERRO[2022-11-07 14:33:04] failed get /CTC-Client/Manford/09-Cloudreve/1/export_tysl_vm_info_linux: object not found
github.com/alist-org/alist/v3/internal/op.Get
	/home/runner/work/alist/alist/internal/op/fs.go:135
github.com/alist-org/alist/v3/internal/fs.get
	/home/runner/work/alist/alist/internal/fs/get.go:38
github.com/alist-org/alist/v3/internal/fs.Get
	/home/runner/work/alist/alist/internal/fs/fs.go:26
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleDelete
	/home/runner/work/alist/alist/server/webdav/webdav.go:265
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
	/home/runner/work/alist/alist/server/webdav/webdav.go:57
github.com/alist-org/alist/v3/server.ServeWebDAV
	/home/runner/work/alist/alist/server/webdav.go:44
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.WebDAVAuth
	/home/runner/work/alist/alist/server/webdav.go:93
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:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:572
net/http.serverHandler.ServeHTTP
	/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/server.go:2947
net/http.(*conn).serve
	/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/server.go:1991
runtime.goexit
	/opt/hostedtoolcache/go/1.19.2/x64/src/runtime/asm_amd64.s:1594
ERRO[2022-11-07 14:33:04] DELETE /dav/CTC-Client/Manford/09-Cloudreve/1/export_tysl_vm_info_linux object not found
github.com/alist-org/alist/v3/internal/op.Get
	/home/runner/work/alist/alist/internal/op/fs.go:135
github.com/alist-org/alist/v3/internal/fs.get
	/home/runner/work/alist/alist/internal/fs/get.go:38
github.com/alist-org/alist/v3/internal/fs.Get
	/home/runner/work/alist/alist/internal/fs/fs.go:26
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleDelete
	/home/runner/work/alist/alist/server/webdav/webdav.go:265
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
	/home/runner/work/alist/alist/server/webdav/webdav.go:57
github.com/alist-org/alist/v3/server.ServeWebDAV
	/home/runner/work/alist/alist/server/webdav.go:44
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.WebDAVAuth
	/home/runner/work/alist/alist/server/webdav.go:93
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:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:572
net/http.serverHandler.ServeHTTP
	/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/server.go:2947
net/http.(*conn).serve
	/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/server.go:1991
runtime.goexit
	/opt/hostedtoolcache/go/1.19.2/x64/src/runtime/asm_amd64.s:1594

mffan0922 avatar Nov 07 '22 06:11 mffan0922

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Nov 07 '22 06:11 welcome[bot]

你的日志并没有包含上传的部分 只有最后的请求文件,无法判断是哪一个步骤的问题。

xhofe avatar Nov 07 '22 08:11 xhofe

Hello @mffan0922, please input issue by template and add detail. Issues labeled by question will be closed if no activities in 7 days. 你好 @mffan0922,请按照issue模板填写, 并详细说明问题/复现步骤/复现链接/实现思路或提供更多信息等, 7天内未回复issue自动关闭。

github-actions[bot] avatar Nov 07 '22 08:11 github-actions[bot]

大佬,如下文件是今7号的所有相关日志,请看下有没有有用的记录@Xhofe log.log

mffan0922 avatar Nov 07 '22 08:11 mffan0922

日志显示客户端取消了上传的请求,所以这看起来并不是alist的问题

xhofe avatar Nov 07 '22 08:11 xhofe

但是我没有取消呀,而且,即使取消了,我的服务端不应该循环的上传:( 从上午上传了一个23M的文件,local机器和公网机器一直有流量互动,local机器也时不时的上传东西到天翼的服务器,持续了3-4个小时,我强制终止的....

mffan0922 avatar Nov 07 '22 08:11 mffan0922

再次复现,看来是webdav locked导致的 image

mffan0922 avatar Nov 07 '22 09:11 mffan0922

结论:个人认为不是alist的问题 最终的解决方案:上传的时候不要频繁的操作上传目录,关闭秒传

End of the story......

mffan0922 avatar Nov 08 '22 01:11 mffan0922