This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
ENFILE when daemon is on #823
Copy link
Copy link
Closed
Labels
P0Critical: Tackled by core team ASAPCritical: Tackled by core team ASAPexp/expertHaving worked on the specific codebase is importantHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)
Description
I started seeing a ENFILE
error when adding large directories with the daemon on. This is we are trying to open all the files to then send them through js-ipfs-api -- https://github.com/ipfs/js-ipfs/blob/master/src/cli/commands/files/add.js --.
Note that I have my ulimit already increased by default and not using Mac OS X default.
» ulimit -n
1024
This can be reproduced by simply adding the node_modules
folder from js-ipfs.
» jsipfs daemon
Initializing daemon...
Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/Qmd1qCCBvyAVQKKB9Pkq5xhcwXSBZCiyrYJXNiYR6aV2nk
Swarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/Qmd1qCCBvyAVQKKB9Pkq5xhcwXSBZCiyrYJXNiYR6aV2nk
Swarm listening on /ip4/172.20.6.141/tcp/4002/ipfs/Qmd1qCCBvyAVQKKB9Pkq5xhcwXSBZCiyrYJXNiYR6aV2nk
API is listening on: /ip4/127.0.0.1/tcp/5002
Gateway (readonly) is listening on: /ip4/127.0.0.1/tcp/9090
Daemon is ready
» jsipfs add -r node_modules
events.js:160
throw er; // Unhandled 'error' event
^
Error: ENFILE: file table overflow, open 'node_modules/fbjs/lib/TokenizeUtil.js.flow'
at Error (native)
Metadata
Metadata
Assignees
Labels
P0Critical: Tackled by core team ASAPCritical: Tackled by core team ASAPexp/expertHaving worked on the specific codebase is importantHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)