alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.44k stars 5.12k forks source link

中国移动云盘访问多文件的文件夹时会因超时报504错误 #6469

Open Cola-Ace opened 1 month ago

Cola-Ace commented 1 month ago

Please make sure of the following things

AList Version / AList 版本

v3.34.0

Driver used / 使用的存储驱动

中国移动云盘

Describe the bug / 问题描述

在访问多文件的文件夹(14000+的图片)时,alist会向 /api/fs/list 发送POST请求,然后一直没有response,直到超过openresty设置的超时时间(120秒)后报504 timeout错误,此时访问同存储的其他文件夹正常。过了一段时间后再次访问则正常显示,然后超过一段时间不访问后又重复此现象。 推测该现象出现的原因可能是因为文件太多,导致获取速度太慢,有没有办法可以避免这种现象?

Reproduction / 复现链接

https://pan.sqtool.com.cn/cmcc/images/rezero/all

Config / 配置

PixPin_2024-05-18_19-01-12 PixPin_2024-05-18_19-03-07

Logs / 日志

2024/05/18 23:20:12 [error] 7#7: *20939 upstream timed out (110: Connection timed out) while reading response header from upstream, client: {client-ip}, server: {server-host}, request: "POST /api/fs/list HTTP/2.0", upstream: "http://127.0.0.1:29999/api/fs/list", host: "{server-host}", referrer: "https://{server-host}/cmcc/images/rezero?page=1"

welcome[bot] commented 1 month ago

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

stale[bot] commented 1 day ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.