Strange issue "ERROR TOCSS" - resolved? #68
Replies: 15 comments 17 replies
-
I reposted it to Hugo; we can close it, I am very sure it is https://discourse.gohugo.io/t/hugo-embedded-web-server-limitations-error-tocss/50543 |
Beta Was this translation helpful? Give feedback.
-
I'd suggest providing a minimal reproducible repo and steps, so that I can check whether if this is a theme's bug, and I don't think there will be people spend much time on this without reproducible steps. You don't need to share your content, just remove all your private config and content, and create some dummy, and share it (make sure the issue is reproducible). |
Beta Was this translation helpful? Give feedback.
-
you used tool to generate pages; it is reproducible, but it is issue from Hugo, not from theme; I am sure it is with Hugo, just need 40,000 pages to reproduce. |
Beta Was this translation helpful? Give feedback.
-
Here it is, large site, PoC (Proof-of-Concept), I use same settings as for my other sites, generated 40,000 pages using I disabled "tags" and "authors" taxonomy, but build is still slow, and the same issue, https://github.com/tokenizer-inc-canada/large-site-test
|
Beta Was this translation helpful? Give feedback.
-
Unable to reproduce on Linux and Windows, I don't have macOS machine to test, and couldn't to reproduce on GitHub Actions since it has storage limit (14GB if I remember correctly). |
Beta Was this translation helpful? Give feedback.
-
Thanks for testing; so, it seems Mac OS distribution of Hugo is broken / or, maybe some Mac internal bug I have another error with just |
Beta Was this translation helpful? Give feedback.
-
Yes, I forgot, I have "smaller" MacBook Air, I can try on it too Yes, I tried with flags When I try When I remove (random) 10000 files it doesn't give any error. I also tried to use "segments" but even when I try to build 1% of pages it gives error. |
Beta Was this translation helpful? Give feedback.
-
I finally run build on different machine, Apple Air M1 with 16Gb RAM, it took almost two hours, and it failed:
|
Beta Was this translation helpful? Give feedback.
-
Test project has taxonomy enabled for "category" only; if I disable all taxonomies, Probably MacOS internals, some bug, and we shouldn't wwaste time on it; documented it here so Google will find it:
I can also suspect SCSS compiler issue, it is different for Windows, but I am not specialist. |
Beta Was this translation helpful? Give feedback.
-
Another idea: if it's a platform issue, I'd suggest giving Docker a try, such as https://docker.hugomods.com/. |
Beta Was this translation helpful? Give feedback.
-
Now HB uses Dart Sass as the default Sass transpiler, see https://hbstack.dev/news/2024/08/migrating-to-dart-sass/. Not sure if this help for your site, please let me know if you have time. |
Beta Was this translation helpful? Give feedback.
-
tried, precise error now...
|
Beta Was this translation helpful? Give feedback.
-
Thank you Razon, My update, step 0:
Step 2: Step 3: search for
Step 4: "make sure there isn't sass_transpiler settings in your param configuration." Found in
It didn't fail.
But my previous site was failing with adequate error message Step 5: [Now I need to wait for at least 50 minutes... will update in an hour] P.S. I initially suspected that it was "too many open files" error, improperly handled & shown as a different error "cannot open file", but unfortunately didn't dig deeper... of course 300 open files are not enough. [UPDATE] Setting It works fine with https://github.com/tokenizer-inc-canada/large-site-test (40000 pages) site after upgrade. |
Beta Was this translation helpful? Give feedback.
-
Hi Razon, Unfortunately Netlify build fails:
Here is my Netlify config:
|
Beta Was this translation helpful? Give feedback.
-
同样的问题,hugo没有升级,在macOS和ubuntu 22.04上均失败。 ERROR TOCSS-DART: failed to transform "hb/scss/index.scss" (text/x-scss): ":1:1": connection is shut down |
Beta Was this translation helpful? Give feedback.
-
It never happens at Netlify, but happens at my MacBook; I tried to isolate the issue.
I have project which compiles correctly on MacBook; I "shink" my bigger project to minimal healthy:
Now, whenever I add single document to this project, such as
abc/index.md
containinng just "Hello, World" string, I get this:It seems something is hardcoded... not sure, maybe in-memory cache, happens on Mac OS only. "Magic Number" is 38815 pages; adding simple new page breaks project.
Unfortunately I cannot share this project, but maybe I can generate test project... maybe it is limitations of Hugo Embedded Web Server, so I tried to run just
hugo
command to compile project (hugo server
will run embedded server):And it works!
So, finally I got it, after creating few similar tickets here (sorry!): it is limitation of Hugo Web Server.
Beta Was this translation helpful? Give feedback.
All reactions