AlistGo / 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
43.63k stars 5.65k forks source link

123网盘上传文件时大概率报错 #7480

Open roymecat opened 13 hours ago

roymecat commented 13 hours ago

Please make sure of the following things

AList Version / AList 版本

v3.39.1

Driver used / 使用的存储驱动

123pan

Describe the bug / 问题描述

如题,在将本地存储或者webdav存储的文件复制到123云盘时,大概率会出现http put报错,显示发送与接收内容长度不符合 IMG_20241108_115834 在测试其他存储器例如pikpak和mega均无出现此问题,可排除由于本机网络原因导致

Reproduction / 复现链接

任意大于5gb的文件,概率复现

Config / 配置

{ "force": false, "site_url": "", "cdn": "", "jwt_secret": "NpSikKRQX96cpu3h", "token_expires_in": 48, "database": { "type": "sqlite3", "host": "", "port": 0, "user": "", "password": "", "name": "", "db_file": "data/data.db", "tableprefix": "x", "ssl_mode": "", "dsn": "" }, "meilisearch": { "host": "http://localhost:7700", "api_key": "", "index_prefix": "" }, "scheme": { "address": "0.0.0.0", "http_port": 80, "https_port": -1, "force_https": false, "cert_file": "", "key_file": "", "unix_file": "", "unix_file_perm": "" }, "temp_dir": "/mnt/data/bin", "bleve_dir": "data/bleve", "dist_dir": "", "log": { "enable": true, "name": "data/log/log.log", "max_size": 50, "max_backups": 30, "max_age": 28, "compress": false }, "delayed_start": 0, "max_connections": 15, "tls_insecure_skip_verify": true, "tasks": { "download": { "workers": 5, "max_retry": 1, "task_persistant": true }, "transfer": { "workers": 5, "max_retry": 2, "task_persistant": true }, "upload": { "workers": 5, "max_retry": 0, "task_persistant": false }, "copy": { "workers": 3, "max_retry": 10, "task_persistant": true } }, "cors": { "allow_origins": [ "" ], "allow_methods": [ "" ], "allow_headers": [ "*" ] }, "s3": { "enable": false, "port": 5246, "ssl": false }

Logs / 日志

IMG_20241108_115834 日志:[GIN] 2024/11/07 - 15:09:36 | 200 | 81.085111ms | 171.94.255.195 | GET "/api/task/copy/undone" DEBU[2024-11-07 15:09:38]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228205 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]} [GIN] 2024/11/07 - 15:09:38 | 200 | 1.237354ms | 171.94.255.195 | GET "/api/task/copy/undone" DEBU[2024-11-07 15:09:40]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]} [GIN] 2024/11/07 - 15:09:40 | 200 | 2.368209ms | 171.94.255.195 | GET "/api/task/copy/undone" DEBU[2024-11-07 15:09:42]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228205 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]} [GIN] 2024/11/07 - 15:09:42 | 200 | 633.039碌s | 171.94.255.195 | GET "/api/task/copy/undone" DEBU[2024-11-07 15:09:42]/home/runner/work/alist/alist/drivers/123/driver.go:222 github.com/alist-org/alist/v3/drivers/123.(*Pan123).Put() upload request res: {"code":0,"message":"ok","data":{"AccessKeyId":null,"SecretAccessKey":null,"SessionToken":null,"Expiration":null,"Key":"6cf32a22896334-0/6cf32a28ad82c40d42932511dd6a048f","Bucket":"123-143","FileId":370078923,"Reuse":false,"Info":null,"UploadId":"N2E0ZTQ4MzU2MS00YWI0LTkzOTQtZWM4ZTM4YzgyMWEzLjlmODgwY2EyLTc1ZWMtNDZmYS1iM2U2LxYTI3NmNjZDVlZQ","DownloadUrl":"","StorageNode":"m6","EndPoint":"https://m6.123624.com","UploadFileStatus":0,"SliceSize":"67108864"}} DEBU[2024-11-07 15:09:44]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b292748f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228205 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]} [GIN] 2024/11/07 - 15:09:44 | 200 | 401.73 | 171.94.255.195 | GET "/api/task/copy/undone" DEBU[2024-11-07 15:09:46]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727Salt:NjptKciDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]} [GIN] 2024/11/07 - 15:09:46 | 200 | 92.845246ms | 171.94.255.195 | GET "/api/task/copy/undone"

SunRain commented 6 hours ago

同类似的错误

pongfcnkl commented 6 hours ago

传了6g的文件,没有报错

SunRain commented 3 hours ago

这个问题不是一直出现,是大量上传文件(比如把几十上百个大文件一次性的从一个网盘复制到123网盘),就会概率的出现这个问题.