V4 beta13 部分文件缩略图生成失败
Word 的 docx 是正常的,但是
Excel 的 xlsx PowerPoint 的 pptx 以及 PDF
都会循环失败,没有提示什么错误,生成器测试也正常。
有哪些途径可以看到log?可以提供。
https://docs.cloudreve.org/zh/usage/thumbnails#%E6%A3%80%E6%9F%A5%E7%BC%A9%E7%95%A5%E5%9B%BE%E7%94%9F%E6%88%90%E5%99%A8
看下具体错误是啥
xlsx的记录:
文件本身是存在的,可以通过WOPI打开或者下载分享。
记录到这个文件就截断了,pdf 和 pptx 直接就没记录显示。
{ "id": 135, "created_at": "2025-05-27T08:17:05.145125Z", "updated_at": "2025-05-27T08:17:05.145126Z", "type": 21, "correlation_id": "86ce0389-d257-4401-8ed7-5f50fce543d7", "content": { "category": 21, "error": "thumb: failed to clone to local source: stat /cloudreve/data/temp/thumb/soffice_8dcf001c-93ad-49b4-8822-7e79ee18772f/8fe798d7-57e1-446e-8186-dfdc1b84d85c_火车站站名字典.png: no such file or directory", "from": "cloudreve://my/%E7%81%AB%E8%BD%A6%E7%AB%99%E7%AB%99%E5%90%8D%E5%AD%97%E5%85%B8.xlsx" }
开启debug模式,重新上传xlsx文件,然后看粘贴下后端日志输出吧
Docker Compose 怎么进入 Debug 模式,(明天我检查一下,临时有事没法继续查了)
[Info] 2025-05-27 19:16:08 [/home/vsts/work/1/s/pkg/queue/queue.go:202] New Task with type "" submitted to queue "ThumbQueue" by "XXX"
[Info] 2025-05-27 19:16:08 [/home/vsts/work/1/s/pkg/queue/queue.go:360] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Task 0 status changed from "processing" to "suspending".
[Info] 2025-05-27 19:16:18 [/home/vsts/work/1/s/pkg/queue/queue.go:360] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Task 0 status changed from "suspending" to "processing".
[Debug] 2025-05-27 19:16:18 [/home/vsts/work/1/s/pkg/queue/queue.go:291] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Iteration started.
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/pkg/thumb/pipeline.go:99] Generator *thumb.LibreOfficeGenerator for D:/wwwroot/PAN/Data/uploads/1/2025/05/26/README_vB8oUffH.md returned continue, passing through to next generator.
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] driver.Query: query=SELECT DISTINCT `files`.`id`, `files`.`created_at`, `files`.`updated_at`, `files`.`deleted_at`, `files`.`type`, `files`.`name`, `files`.`owner_id`, `files`.`size`, `files`.`primary_entity`, `files`.`file_children`, `files`.`is_symbolic`, `files`.`permissions`, `files`.`props`, `files`.`storage_policy_files` FROM `files` WHERE (`file_children` = ? AND `files`.`name` = ?) AND `files`.`deleted_at` IS NULL LIMIT 1 args=[140845 README.md] time=0s
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/pkg/filemanager/lock/memlock.go:159] Memlock create: NS:zZc7/my, Root: /Storage Test/本机存储/README.md, Duration: -1ns, ZeroDepth: true
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] driver.Query: query=SELECT `files`.`id`, `files`.`created_at`, `files`.`updated_at`, `files`.`deleted_at`, `files`.`type`, `files`.`name`, `files`.`owner_id`, `files`.`size`, `files`.`primary_entity`, `files`.`file_children`, `files`.`is_symbolic`, `files`.`permissions`, `files`.`props`, `files`.`storage_policy_files` FROM `files` WHERE `files`.`id` IN (?, ?, ?, ?) AND `files`.`deleted_at` IS NULL args=[142323 140845 140844 1] time=0s
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] driver.Tx(10e72fa3-872f-4bd8-866d-fa50b19b6629): started
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Tx(10e72fa3-872f-4bd8-866d-fa50b19b6629).Exec: query=INSERT INTO `metadata` (`created_at`, `file_id`, `is_public`, `name`, `updated_at`, `value`) VALUES (?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE `created_at` = `metadata`.`created_at`, `file_id` = VALUES(`file_id`), `is_public` = VALUES(`is_public`), `name` = VALUES(`name`), `updated_at` = VALUES(`updated_at`), `value` = VALUES(`value`) args=[2025-05-27 19:16:23.142887 +0800 CST m=+62.008644801 142323 true thumb:disabled 2025-05-27 19:16:23.142887 +0800 CST m=+62.008644801 ] time=0s
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Tx(10e72fa3-872f-4bd8-866d-fa50b19b6629): committed
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] driver.Tx(0d617ea8-a67e-4bda-8e73-376fd4f3bf28): started
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Tx(0d617ea8-a67e-4bda-8e73-376fd4f3bf28).Exec: query=INSERT INTO `audit_logs` (`content`, `correlation_id`, `created_at`, `file_audit_logs`, `ip`, `type`, `updated_at`, `user_audit_logs`) VALUES (?, ?, ?, ?, ?, ?, ?, ?) args=[[123 34 99 97 116 101 103 111 114 121 34 58 50 51 44 34 102 114 111 109 34 58 34 99 108 111 117 100 114 101 118 101 58 47 47 109 121 47 83 116 111 114 97 103 101 37 50 48 84 101 115 116 47 37 69 54 37 57 67 37 65 67 37 69 54 37 57 67 37 66 65 37 69 53 37 65 68 37 57 56 37 69 53 37 56 50 37 65 56 47 82 69 65 68 77 69 46 109 100 34 125] f3867624-515b-43d0-8a17-c9152688197e 2025-05-27 19:16:23.1624621 +0800 CST m=+62.028219701 142323 23 2025-05-27 19:16:23.1624621 +0800 CST m=+62.028219701 1] time=677.2µs
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Tx(0d617ea8-a67e-4bda-8e73-376fd4f3bf28): committed
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] driver.Tx(87389683-c088-4a4c-958c-7c4f03ade4ae): started
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Tx(87389683-c088-4a4c-958c-7c4f03ade4ae).Exec: query=INSERT INTO `audit_logs` (`content`, `correlation_id`, `created_at`, `entity_audit_logs`, `ip`, `type`, `updated_at`, `user_audit_logs`) VALUES (?, ?, ?, ?, ?, ?, ?, ?) args=[[123 34 99 97 116 101 103 111 114 121 34 58 50 49 44 34 101 114 114 111 114 34 58 34 116 104 117 109 98 58 32 102 97 105 108 101 100 32 116 111 32 99 108 111 110 101 32 116 111 32 108 111 99 97 108 32 115 111 117 114 99 101 58 32 67 114 101 97 116 101 70 105 108 101 32 68 58 92 92 119 119 119 114 111 111 116 92 92 80 65 78 92 92 100 97 116 97 92 92 116 101 109 112 92 92 116 104 117 109 98 92 92 115 111 102 102 105 99 101 95 54 49 56 48 50 56 102 52 45 54 50 100 56 45 52 99 51 51 45 98 51 54 97 45 102 55 100 54 50 50 53 99 48 102 102 97 92 92 82 69 65 68 77 69 95 118 66 56 111 85 102 102 72 46 112 110 103 58 32 84 104 101 32 115 121 115 116 101 109 32 99 97 110 110 111 116 32 102 105 110 100 32 116 104 101 32 102 105 108 101 32 115 112 101 99 105 102 105 101 100 46 34 44 34 102 114 111 109 34 58 34 99 108 111 117 100 114 101 118 101 58 47 47 109 121 47 83 116 111 114 97 103 101 37 50 48 84 101 115 116 47 37 69 54 37 57 67 37 65 67 37 69 54 37 57 67 37 66 65 37 69 53 37 65 68 37 57 56 37 69 53 37 56 50 37 65 56 47 82 69 65 68 77 69 46 109 100 34 125] f3867624-515b-43d0-8a17-c9152688197e 2025-05-27 19:16:23.165894 +0800 CST m=+62.031651601 111015 21 2025-05-27 19:16:23.165894 +0800 CST m=+62.031651601 1] time=822.9µs
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/inventory/client.go:126] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Tx(87389683-c088-4a4c-958c-7c4f03ade4ae): committed
[Debug] 2025-05-27 19:16:23 [/home/vsts/work/1/s/pkg/queue/queue.go:293] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Iteration ended with err=failed to generate thumb: thumb: failed to clone to local source: CreateFile D:\wwwroot\PAN\data\temp\thumb\soffice_618028f4-62d8-4c33-b36a-f7d6225c0ffa\README_vB8oUffH.png: The system cannot find the file specified.
[Error] 2025-05-27 19:16:23 [/home/vsts/work/1/s/pkg/queue/queue.go:252] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] runtime error in queue "ThumbQueue": failed to generate thumb: thumb: failed to clone to local source: CreateFile D:\wwwroot\PAN\data\temp\thumb\soffice_618028f4-62d8-4c33-b36a-f7d6225c0ffa\README_vB8oUffH.png: The system cannot find the file specified.
[Error] 2025-05-27 19:16:23 [/home/vsts/work/1/s/pkg/queue/task.go:411] Execution failed with error in 16.7692629s with 2 retries, clean up...
[Info] 2025-05-27 19:16:23 [/home/vsts/work/1/s/pkg/queue/queue.go:360] [Cid: f3867624-515b-43d0-8a17-c9152688197e TaskID: 0 Queue: ThumbQueue] Task 0 status changed from "processing" to "error".
看上面的Log跟我的差不多,我这边 Docker Compose 研究了下不知道怎么进入 Debug 模式,还是我需要重新部署一个?
我这边所有文档都会报错,不清楚为什么,测试生成器也正常,贴上事件截图
{
"id": 16173,
"created_at": "2025-05-29T08:54:56Z",
"updated_at": "2025-05-29T08:54:56Z",
"type": 21,
"correlation_id": "f1717472-43b4-4a42-b901-8fffbc213908",
"content": {
"category": 21,
"error": "thumb: failed to clone to local source: stat /[DELETE_FOR_PRIVACY]/data/temp/thumb/soffice_2cadc4d1-22f5-410c-b619-eb8606f60f9e/soffice_34f4e4b0-64d0-4b4a-9dfa-9366dd64f6a0.png: no such file or directory",
"from": "cloudreve://my/%E6%88%91%E7%9A%84%E8%B5%84%E6%BA%90/%E4%BA%91%E8%AE%A1%E7%AE%97%E6%9C%BA%E8%BF%90%E7%BB%B4%E6%93%8D%E4%BD%9C%E9%A2%98%E9%83%A8%E5%88%86-0001.docx"
},
"edges": {
"user": {
"id": 1,
"created_at": "2025-04-14T01:09:05Z",
"updated_at": "2025-05-29T08:54:38Z",
"email": "[DELETE_FOR_PRIVACY]",
"nick": "[DELETE_FOR_PRIVACY]",
"status": "active",
"storage": 98947871697,
"avatar": "file",
"settings": {
"preferred_theme": "#000000",
"version_retention": true,
"version_retention_max": 10,
"email_language": "zh-CN"
},
"group_users": 1,
"edges": {}
},
"entity": {
"id": 10256,
"created_at": "2025-05-29T08:54:38Z",
"updated_at": "2025-05-29T08:55:56Z",
"source": "uploads/1/我的资源/1_9f9e9576-eb6f-4787-8201-7d5aa95b1066_云计算机运维操作题部分-0001.docx",
"size": 568013,
"storage_policy_entities": 4,
"created_by": 1,
"edges": {}
}
},
"user_hash_id": "9OCG"
}
各位能否再提供下下面的信息:
- LibreOffice 版本
- 所有文档文件全部看不到缩略图吗?
- 在根目录上传一个纯英文名的文档文件,能否看到缩略图?
- LibreOffice 版本
LibreOffice 7.4.7.2 40(Build:2)
- 所有文档文件全部看不到缩略图吗? 是的
- 在根目录上传一个纯英文名的文档文件,能否看到缩略图?
不可以
今早系统自动进行令牌刷新后,原本的bug没了,所有文件开始恢复生成缩略图。
LibreOffice 版本? LibreOffice 7.6.7.2 60(Build:2) Docker Compose 自带
所有文档文件全部看不到缩略图吗? 原本是除了Word,现在测试是Excel带有中文名就会有概率失败,并且导致其他格式也会开始失败。
在根目录上传一个纯英文名的文档文件,能否看到缩略图? 可以,并且其他中文名的文件也会开始正常生成
错误log:
{ "id": 174, "created_at": "2025-05-30T01:27:29.386129Z", "updated_at": "2025-05-30T01:27:29.386129Z", "type": 21, "correlation_id": "ca893f00-7494-4ac3-9e37-eb0d3d0b276d", "content": { "category": 21, "error": "failed to invoke LibreOffice: exit status 1, raw output: javaldx: Could not find a Java Runtime Environment!\nWarning: failed to read path from javaldx\n", "from": "cloudreve://my/%E7%81%AB%E8%BD%A6%E7%AB%99%E7%AB%99%E5%90%8D%E5%AD%97%E5%85%B8.xlsx" }, "edges": { "user": { "id": 1, "created_at": "2025-05-20T06:16:08.14034Z", "updated_at": "2025-05-30T01:28:32.114476Z", "email": "[email protected]", "nick": "evanchenyf123", "status": "active", "storage": 98211992, "settings": { "version_retention": true, "version_retention_max": 10, "email_language": "zh-CN" }, "group_users": 1, "edges": {} }, "entity": { "id": 25, "created_at": "2025-05-27T08:29:23.082926Z", "updated_at": "2018-12-05T04:54:31Z", "source": "/cloudreve/data/uploads/1/150bd194-54e5-4e0c-8f8c-4712d874ed93_火车站站名字典.xlsx", "size": 180141, "reference_count": 1, "storage_policy_entities": 3, "created_by": 1, "edges": {} } }, "user_hash_id": "ZRSl" }