cloudreve/Cloudreve

运行期间无法上传文件报数据库锁死

Open

#2,917 opened on Sep 22, 2025

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Go (3,383 forks)batch import
backlogbughelp wanted

Repository metrics

Stars
 (21,463 stars)
PR merge metrics
 (Avg merge 2d 5h) (2 merged PRs in 30d)

Description

系统是乌班图24.04 LTS,前天刚搭好的,基本上一天就几个用户会下载文件,但是我今天上传文件的时候突然报错 并且在之后所有上传均报错,重启后却一切正常

[Info] 2025-09-22 09:15:02 [/home/vsts/work/1/s/pkg/crontab/crontab.go:64] Executing Cron task "entity_collect" with Cid "81d83359-6fe0-4d4a-914a-8b571b9c25e6" [Error] 2025-09-22 09:15:02 [/home/vsts/work/1/s/pkg/queue/queue.go:357] [Cid: 81d83359-6fe0-4d4a-914a-8b571b9c25e6 Cron: entity_collect] failed to transit Task status from to queued: failed to persist Task into DB: failed to create task: database is locked (5) (SQLITE_BUSY) [Info] 2025-09-22 09:15:02 [/home/vsts/work/1/s/pkg/queue/queue.go:360] [Cid: 81d83359-6fe0-4d4a-914a-8b571b9c25e6 Cron: entity_collect] Task 0 status changed from "" to "queued". [Error] 2025-09-22 09:15:02 [/home/vsts/work/1/s/pkg/filemanager/manager/recycle.go:55] [Cid: 81d83359-6fe0-4d4a-914a-8b571b9c25e6 Cron: entity_collect] Failed to queue entity recycle routine task: failed to transit Task status from to queued: failed to persist Task into DB: failed to create task: database is locked (5) (SQLITE_BUSY)

因为我日志记录的不够长所以只找到这一段报错,请问如何把日志打印到文件中以便查阅?我简单翻了文档,只有一个debug模式

Contributor guide