Failed to “Regenerate Images” on my blog because there were too many posts
-
September 29, 2023 at 10:31 am #10644[anonymous]
Hello publii,
I have a blog that has 2771 posts. Yesterday I just modified my theme and changed the “Website Speed” setting in Publii’s “Site Settings” to reduce the quality of the WebP image.
When “save”, of course it asks “Regenerate Images”, I had a problem because generating images only stopped at 75% and didn’t succeed in continuing to 100%.
I thought there was a problem, I closed the “publii” application. Then go to “Tools & Plugins” to “Regenerate thumbnails”. And stuck at 75%. Didn’t work 100%. What happened?
I tried “Preview your changes”, in many of my posts the images didn’t appear… I’ve tried repeatedly. The results are the same. 😥
It seems like it failed because there were too many posts because the log looks like this:
===============================================================
regenerate-errors.log:
node:fs:594
handleErrorFromBinding(ctx);
^Error: EMFILE: too many open files, open ‘C:\Users\user\Documents\Publii\sites\ridvan-maulanas-blog\input\config\site.config.json’
at Object.openSync (node:fs:594:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:1822)
at Object.readFileSync (node:fs:462:35)
at t.readFileSync (node:electron/js2c/asar_bundle:2:9165)
at Themes.currentTheme (C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\themes.js:87:27)
at Image.createResponsiveImages (C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\image.js:197:41)
at regenerateImage (C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\workers\thumbnails\regenerate.js:81:32)
at C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\workers\thumbnails\regenerate.js:131:13 {
errno: -4066,
syscall: ‘open’,
code: ‘EMFILE’,
path: ‘C:\\Users\\user\\Documents\\Publii\\sites\\ridvan-maulanas-blog\\input\\config\\site.config.json’
}===============================================================
and, regenerate-process.log:
…………
…………
(i) Content image detected (4ebbe-bayar-dom.png) 71
PROGRESS: 4647 6141
(i) Content image detected (9a370-bluestack6.png) 118
PROGRESS: 4648 6141
PROGRESS: 4649 6141
(i) Content image detected (6e486-modifikasi2bhonda2btiger2b20002bjap2bstyle2bdengan2btangki2bori-01.png) 183
PROGRESS: 4650 6141
PROGRESS: 4651 6141
(i) Featured image detected (4e926-2.png) 73
Error: EMFILE: too many open files, open ‘C:\Users\user\Documents\Publii\sites\ridvan-maulanas-blog\input\config\site.config.json’
at Object.openSync (node:fs:594:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:1822)
at Object.readFileSync (node:fs:462:35)
at t.readFileSync (node:electron/js2c/asar_bundle:2:9165)
at Themes.currentTheme (C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\themes.js:87:27)
at Image.createResponsiveImages (C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\image.js:197:41)
at regenerateImage (C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\workers\thumbnails\regenerate.js:81:32)
at C:\Users\user\AppData\Local\Programs\Publii\resources\app.asar\back-end\workers\thumbnails\regenerate.js:127:13 {
errno: -4066,
syscall: ‘open’,
code: ‘EMFILE’,
path: ‘C:\\Users\\user\\Documents\\Publii\\sites\\ridvan-maulanas-blog\\input\\config\\site.config.json’
}
(i) Content image detected (744e5-4.png) 73===============================================================
I’m already comfortable writing blogs with publii, so how about this? Is there any solution? I think this is because there are too many posts so I can’t “regenerate images”.
If only there was a plugin to export posts, so I could move posts to a new site. I have tried changing it to the default theme “taste” which without any changes also fails to load images.
I wonder what the fate of my blog will be. Please help. Thank You
September 29, 2023 at 1:10 pm #10649October 2, 2023 at 5:52 am #10655[anonymous]i’m guessing that’s a fairly common problem – if you keep clicking ‘cancel’ and ‘regenerate’ the function eventually works for me
lastly, i would suggest to avoid google’s webp garbage
October 2, 2023 at 7:49 am #10658[anonymous][anonymous] wrote:i’m guessing that’s a fairly common problem – if you keep clicking ‘cancel’ and ‘regenerate’ the function eventually works for me
lastly, i would suggest to avoid google’s webp garbage
How many posts do you have? I’ve tried that many times and even unchecked webp, it still doesn’t work.
This problem is not with webp, but node/UI publii does not support “generating responsive images” with blog that have lots of posts. I noticed that 1 post that had a lot of images would error when generating and the error “Error: EMFILE: too many open files, open” would appear.
I’ve tried backing up and moving PC, the problem isn’t on the PC either. I have updated nodejs (because some static generator “Error: EMFILE” because nodejs has not been updated).
I’ve searched the topic on this forum and there are several people who have experienced the same thing.
In conclusion, Publii “does not” support large sites or blogs! 😆
Hopefully there will be a new update!
October 2, 2023 at 1:16 pm #10663[anonymous]How many posts do you have?
very few at the moment – less than 50 – but the problem still occurs