收起左侧

相册回收站有大量图片清空时,每次只能删除一小部分

1
回复
129
查看
[ 复制链接 ]

14

主题

2

回帖

0

牛值

江湖小虾

2025-7-11 21:27:51 显示全部楼层 阅读模式

设备环境:物理机、公网、系统0.9.13

BUG现象:我通过网页访问相册,利用删除重复照片功能删除了大量照片,相册回收站清空时,每次只能删除一小部分

image.png

出现频率:必现

联系方式:(可以提供手机号或者所在公测群与昵称,例如 1群-路人甲)

日志文件:

time="2025-07-11T21:19:50+08:00" level=error msg="copy file error write unix /var/run/trim_photos.sock->@: write: broken pipe file:/vol2/@appmeta/trim.photos/data/thumb/s/05/a38ed413-85a4-414d-9e1a-7a03cf2aba63" time="2025-07-11T21:19:50+08:00" level=error msg="copy file error write unix /var/run/trim_photos.sock->@: write: broken pipe file:/vol2/@appmeta/trim.photos/data/thumb/s/13/ec5973aa-a721-42bd-8cac-35b67012a80b" time="2025-07-11T21:19:50+08:00" level=error msg="copy file error write unix /var/run/trim_photos.sock->@: write: broken pipe file:/vol2/@appmeta/trim.photos/data/thumb/s/12/fa9004e9-8b25-47f1-9c74-0290a073c917" time="2025-07-11T21:20:00+08:00" level=error msg="copy file error write unix /var/run/trim_photos.sock->@: write: broken pipe file:/vol2/@appmeta/trim.photos/data/thumb/s/05/5a77712e-6484-42b0-b567-5a2edb49de90" time="2025-07-11T21:20:00+08:00" level=error msg="copy file error write unix /var/run/trim_photos.sock->@: write: broken pipe file:/vol2/@appmeta/trim.photos/data/thumb/s/14/52df9427-8af1-4cf1-984b-478b4c61ce38" time="2025-07-11T21:20:03+08:00" level=error msg="SelectById photoId not found: 112529" time="2025-07-11T21:20:03+08:00" level=error msg="SelectById photoId not found: 112847" time="2025-07-11T21:20:03+08:00" level=error msg="SelectById photoId not found: 118893" time="2025-07-11T21:20:03+08:00" level=error msg="SelectById photoId not found: 114184" time="2025-07-11T21:20:04+08:00" level=error msg="SelectById photoId not found: 112119" time="2025-07-11T21:20:04+08:00" level=error msg="SelectById photoId not found: 114707" time="2025-07-11T21:20:04+08:00" level=error msg="SelectById photoId not found: 114843" time="2025-07-11T21:20:04+08:00" level=error msg="ErrFromRecover error : database is locked\nStack trace:\ngoroutine 185567 [running]:\napp/core/common.ErrFromRecover({0x1552700?, 0xc007835a10?})\n\t/root/go/src/app/core/common/utils.go:262 +0x11f\napp/core/service.(*recycleBin).BatchRemoveTrash.func1()\n\t/root/go/src/app/core/service/recycle_bin.go:598 +0x2a\npanic({0x1552700?, 0xc007835a10?})\n\t/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.2.linux-amd64/src/runtime/panic.go:785 +0x132\napp/core/storage/dao.panicIfDBError(0xc0078356e0)\n\t/root/go/src/app/core/storage/dao/utils.go:14 +0x97\napp/core/storage/dao.(*PhotoDao).DeleteById(0xc0055fd720?, 0x1d703)\n\t/root/go/src/app/core/storage/dao/photo.go:99 +0xdb\napp/core/service.deletePhoto(_, _, {0x1d703, {0xc0055fd720, 0x4f}, {0xc00560fdc0, 0x37}, {0xc0099b47b0, 0x13}, {0xc005612710, ...}, ...}, ...)\n\t/root/go/src/app/core/service/photo_delete.go:62 +0x4f3\napp/core/service.(*recycleBin).BatchRemoveTrash(0x4281720?, 0x3, {0xc003b5e008, 0xcf5, 0xd4f?}, 0xc003a368c0)\n\t/root/go/src/app/core/service/recycle_bin.go:645 +0x92e\napp/core/service.(*recycleBin).BatchRemoveByUserId(0x0?, 0xc0091a3ca0?, 0xc002e55378?, {0xc003b5e008?, 0x0?, 0xc002bc4898?})\n\t/root/go/src/app/core/service/recycle_bin.go:588 +0x65\napp/core/service.(*recycleBin).Cle**l.func1()\n\t/root/go/src/app/core/service/recycle_bin.go:119 +0x34\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1()\n\t/root/go/pkg/mod/github.com/panjf2000/ants/v2@v2.9.1/worker.go:67 +0x8a\ncreated by github.com/panjf2000/ants/v2.(*goWorker).run in goroutine 185565\n\t/root/go/pkg/mod/github.com/panjf2000/ants/v2@v2.9.1/worker.go:48 +0x5c\n" time="2025-07-11T21:20:04+08:00" level=error msg="BatchRemoveTrash panic: database is locked"

附件过大无法上传可以通过飞牛外链分享或者百度网盘提供日志文件

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

55

主题

9161

回帖

0

牛值

管理员

2025-7-17 19:25:16 显示全部楼层
感谢反馈,我们跟进一下这个情况
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则