-
Notifications
You must be signed in to change notification settings - Fork 25
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
gatsby-source-filesystem fails with "EMFILE: too many open files" #104
Comments
I assume this has something to do with skohub-io/skohub-webhook#6? When I move the vocabs into the root folder it works. See https://skohub.io/acka47/oeh-framework-bb/heads/master/opencurricula/berlin-brandenburg/competences/index.html respectively https://github.com/acka47/oeh-framework-bb |
Did you maybe resolve skohub-io/skohub-webhook#6 with graceful-fs? Sounds like it to me. Then I propose you open a PR for this. |
ah, sorry, I should have searched the issues before opening this... I will prepare a PR |
unfortunately I just noticed that it fixes the build of https://raw.githubusercontent.com/sroertgen/oeh-framework-bb/master/data/curriculum_bb_competences_skos.ttl (about 10k vocabs), but it breaks with a even bigger file with 45.960 vocabs (e.g. https://raw.githubusercontent.com/openeduhub/oeh-metadata-eaf-schlagwortverzeichnis/main/data/eaf-graph-by-subject-all.ttl
Though it just breaks running |
Does not work for me in both cases with Anyways, using graceful-fs it works, although it takes a while:
|
Could also be at OS level. On linux check allowed open files with |
That did the trick for me, thank you! |
We should consider to note this in the README. |
When working with larger files (e.g. https://raw.githubusercontent.com/sroertgen/oeh-framework-bb/master/data/curriculum_bb_competences_skos.ttl) skohub-vocabs failed with the error:
EMFILE: too many open files
.This gatsby issue seems to be related: gatsbyjs/gatsby#12011
I did a quick test installing graceful-fs and implementing the following like mentioned above in
gatsby-node.js
andwebHookServer.js
:Before making a pull request I would like to ask if you get the same error or it might be something special to my machine.
The text was updated successfully, but these errors were encountered: