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
44.05k stars 5.71k forks source link

每次启动Alist会大量占用系统盘存储空间 #7324

Open nothing0here opened 1 month ago

nothing0here commented 1 month ago

Please make sure of the following things

AList Version / AList 版本

lastest

Driver used / 使用的存储驱动

115 Cloud

Describe the bug / 问题描述

之前曾经复制大文件失败过,现在每次启动alist,C盘空间就会在五六分钟内增加24G的空间占用,然后通过各种方式终于在appdata\Roaming\ci.nn.alist\temp路径下找到一个文件名为file-4145561464,24G大小的文件,无法被删除,停止alist服务后这个文件会自动删除,但是重新启动alist服务后又会自动生成。尝试删除配置文件夹重新安装alist_desktop依旧无法解决,求大佬搭救。 image

Reproduction / 复现链接

详见问题描述

Config / 配置

{ "force": false, "site_url": "", "cdn": "", "jwt_secret": "**", "token_expires_in": 48, "database": { "type": "sqlite3", "host": "", "port": 0, "user": "", "password": "", "name": "", "db_file": "C:\Users\harry\AppData\Roaming\ci.nn.alist\data.db", "tableprefix": "x", "ssl_mode": "", "dsn": "" }, "meilisearch": { "host": "http://localhost:7700", "api_key": "", "index_prefix": "" }, "scheme": { "address": "0.0.0.0", "http_port": 5244, "https_port": -1, "force_https": false, "cert_file": "", "key_file": "", "unix_file": "", "unix_file_perm": "" }, "temp_dir": "C:\Users\harry\AppData\Roaming\ci.nn.alist\temp", "bleve_dir": "C:\Users\harry\AppData\Roaming\ci.nn.alist\bleve", "dist_dir": "", "log": { "enable": true, "name": "C:\Users\harry\AppData\Roaming\ci.nn.alist\log\log.log", "max_size": 50, "max_backups": 30, "max_age": 28, "compress": false }, "delayed_start": 0, "max_connections": 0, "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": 5, "max_retry": 2, "task_persistant": true } }, "cors": { "allow_origins": [ "" ], "allow_methods": [ "" ], "allow_headers": [ "*" ] }, "s3": { "enable": false, "port": 5246, "ssl": false } }

Logs / 日志

INFO[2024-10-13 00:11:44] start HTTP server @ 0.0.0.0:5244 WARN[2024-10-13 00:11:44] [115] get app version failed: {"state":true,"err_code":0,"error":"","data":{"win":{"version_code":"27.0.6.3","created_time":1728742124,"version_url":"https:\/\/down.115.com\/client\/win\/115br_v27.0.6.3.exe"},"android":{"version_code":"16.5.0","created_time":1725501161,"version_url":"https:\/\/down.115.com\/client\/tv\/115TV_16.5.0.apk"},"mac":{"version_code":"27.0.6.3","created_time":1728742166,"version_url":"https:\/\/down.115.com\/client\/mac\/115br_v27.0.6.3_x64.dmg"},"window_115":{"version_code":"1.0.0.0","created_time":1721290208,"version_url":"https:\/\/down.115.com\/client\/win\/115br_v26.0.7.2.exe"},"mac_115":{"version_code":"1.0.0.0","created_time":1721290089,"version_url":"https:\/\/down.115.com\/client\/mac\/115br_v26.0.7.2_x64.dmg"},"linux_115":{"version_code":"1.0.0.0","created_time":1721290337,"version_url":"http:\/\/127.0.0.1:8000\/115_2.0.0.16.deb"},"win64":{"version_code":"27.0.6.3","created_time":1728742079,"version_url":"https:\/\/down.115.com\/client\/win\/115br_v27.0.6.3_x64.exe"},"mac_arm":{"version_code":"27.0.6.3","created_time":1728742222,"version_url":"https:\/\/down.115.com\/client\/mac\/115br_v27.0.6.3_arm64.dmg"}}}: unexpected error INFO[2024-10-13 00:11:44] success load storage: [/115], driver: [115 Cloud], order: [0] [GIN] 2024/10/13 - 00:12:01 | 207 | 470.921ms | 127.0.0.1 | PROPFIND "/dav/115" WARN[2024-10-13 00:12:01] failed get /115/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS.mp4: object not found ERRO[2024-10-13 00:12:01] PROPFIND /dav/115/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS.mp4 object not found github.com/alist-org/alist/v3/internal/op.Get /source/internal/op/fs.go:227 github.com/alist-org/alist/v3/internal/fs.get /source/internal/fs/get.go:38 github.com/alist-org/alist/v3/internal/fs.Get /source/internal/fs/fs.go:37 github.com/alist-org/alist/v3/server/webdav.(Handler).handlePropfind /source/server/webdav/webdav.go:633 github.com/alist-org/alist/v3/server/webdav.(Handler).ServeHTTP /source/server/webdav/webdav.go:76 github.com/alist-org/alist/v3/server.ServeWebDAV /source/server/webdav.go:46 github.com/gin-gonic/gin.(Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/alist-org/alist/v3/server.WebDAVAuth /source/server/webdav.go:67 github.com/gin-gonic/gin.(Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded /source/server/middlewares/check.go:14 github.com/gin-gonic/gin.(Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1 /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 github.com/gin-gonic/gin.(Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1 /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 github.com/gin-gonic/gin.(Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(Engine).handleHTTPRequest /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 github.com/gin-gonic/gin.(Engine).ServeHTTP /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 net/http.serverHandler.ServeHTTP /usr/local/go/src/net/http/server.go:3210 net/http.(conn).serve /usr/local/go/src/net/http/server.go:2092 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1700 [GIN] 2024/10/13 - 00:12:01 | 404 | 54.6026ms | 127.0.0.1 | PROPFIND "/dav/115/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS.mp4" [GIN] 2024/10/13 - 00:12:01 | 207 | 10.6664ms | 127.0.0.1 | PROPFIND "/dav/115/" [GIN] 2024/10/13 - 00:12:01 | 207 | 0s | 127.0.0.1 | PROPFIND "/dav/" [GIN] 2024/10/13 - 00:12:06 | 405 | 0s | 127.0.0.1 | MKCOL "/dav/115/The.Wandering.Earth.II.2023.4K.X265.DDP5.1.Mandarin.CHS.BDYS/"

welcome[bot] commented 1 month ago

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

anwen-anyi commented 1 month ago
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": true

持久化 task_persistant 改成 false