Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[问题反馈]: 更新后上传图片出错 #285

Open
6uu1 opened this issue Apr 23, 2023 · 6 comments
Open

[问题反馈]: 更新后上传图片出错 #285

6uu1 opened this issue Apr 23, 2023 · 6 comments
Labels
问题反馈 反馈问题帮助我们改进 VanBlog

Comments

@6uu1
Copy link

6uu1 commented Apr 23, 2023

问题描述 | Describe the bug

日志:

[Nest] 20  - 04/23/2023, 11:08:06 AM   ERROR [ExceptionsHandler] ENOENT: no such file or directory, lstat '/app/static/tmp/3477ff6986c3fe8bd99b3687dcb73c6d.clipboard-2023-04-23.webp'
vanblog_1  | Error: ENOENT: no such file or directory, lstat '/app/static/tmp/3477ff6986c3fe8bd99b3687dcb73c6d.clipboard-2023-04-23.webp'
vanblog_1  |     at Object.lstatSync (node:fs:1593:3)
vanblog_1  |     at __node_internal_ (node:internal/fs/utils:821:8)
vanblog_1  |     at Object.rmSync (node:fs:1273:13)
vanblog_1  |     at PicgoProvider.saveFile (/app/server/provider/static/picgo.provider.js:104:16)
vanblog_1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
vanblog_1  |     at async StaticProvider.saveFile (/app/server/provider/static/static.provider.js:211:34)
vanblog_1  |     at async StaticProvider.upload (/app/server/provider/static/static.provider.js:90:26)
vanblog_1  |     at async ImgController.upload (/app/server/controller/admin/img/img.controller.js:38:21)
vanblog_1  | [PicGo INFO]: Before upload
vanblog_1  | [PicGo INFO]: Uploading... Current uploader is [web-uploader-custom-url-prefix]
vanblog_1  | Saving file '/tmp/temp1682219286762.webp'
vanblog_1  | File:      /tmp/temp1682219286762
vanblog_1  | Dimension: 755 x 636
vanblog_1  | Output:    936 bytes Y-U-V-All-PSNR 99.00 99.00 99.00   99.00 dB
vanblog_1  |            (0.02 bpp)
vanblog_1  | block count:  intra4:          0  (0.00%)
vanblog_1  |               intra16:      1920  (100.00%)
vanblog_1  |               skipped:      1919  (99.95%)
vanblog_1  | bytes used:  header:             21  (2.2%)
vanblog_1  |              mode-partition:    831  (88.8%)
vanblog_1  |  Residuals bytes  |segment 1|segment 2|segment 3|segment 4|  total
vanblog_1  |     macroblocks:  |       0%|       0%|       0%|     100%|    1920
vanblog_1  |       quantizer:  |      27 |      27 |      25 |      19 |
vanblog_1  |    filter level:  |       8 |       6 |       5 |       2 |
vanblog_1  | [PicGo SUCCESS]: 
vanblog_1  | 
vanblog_1  | [Nest] 20  - 04/23/2023, 11:08:07 AM   ERROR [ExceptionsHandler] ENOENT: no such file or directory, lstat '/app/static/tmp/3477ff6986c3fe8bd99b3687dcb73c6d.clipboard-2023-04-23.webp'
vanblog_1  | Error: ENOENT: no such file or directory, lstat '/app/static/tmp/3477ff6986c3fe8bd99b3687dcb73c6d.clipboard-2023-04-23.webp'
vanblog_1  |     at Object.lstatSync (node:fs:1593:3)
vanblog_1  |     at __node_internal_ (node:internal/fs/utils:821:8)
vanblog_1  |     at Object.rmSync (node:fs:1273:13)
vanblog_1  |     at PicgoProvider.saveFile (/app/server/provider/static/picgo.provider.js:104:16)
vanblog_1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
vanblog_1  |     at async StaticProvider.saveFile (/app/server/provider/static/static.provider.js:211:34)
vanblog_1  |     at async StaticProvider.upload (/app/server/provider/static/static.provider.js:90:26)
vanblog_1  |     at async ImgController.upload (/app/server/controller/admin/img/img.controller.js:38:21)

`````

### 复现网址 | Website URL

_No response_

### 版本 | Version

0.52

### 部署方式? | How do you deploy vanblog?

Docker 部署(文档默认)
@6uu1 6uu1 added the 问题反馈 反馈问题帮助我们改进 VanBlog label Apr 23, 2023
@Mereithhh
Copy link
Owner

你是老版本更新的,还是重新部署的新版本呀? 在这个日志前,有报错吗? 后台图床设置开自定义插件了吗?

@Mereithhh
Copy link
Owner

你可以先关掉自动压缩图片试试看

@6uu1
Copy link
Author

6uu1 commented Apr 23, 2023

你是老版本更新的,还是重新部署的新版本呀? 在这个日志前,有报错吗? 后台图床设置开自定义插件了吗?

老版本更新,未更新之前是好的,开了自定义插件是这个:web-uploader-custom-url-prefix ,是还需要再添加那个压缩的插件吗?

@6uu1
Copy link
Author

6uu1 commented Apr 23, 2023

你可以先关掉自动压缩图片试试看

关闭了之后就好了

@Mereithhh
Copy link
Owner

收到,看来自动压缩图片可能某些情况下会出错。。。

@Mereithhh
Copy link
Owner

修了一下,等更新到下一个版本应该开启压缩也不会报错了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
问题反馈 反馈问题帮助我们改进 VanBlog
Projects
None yet
Development

No branches or pull requests

2 participants