my storagenode operating on port 20858 after some time produces too many open files and dies; restarts; then after some time again same error
FATAL Unrecoverable error {“error”: “accept tcp [::]:20858: accept4: too many open files; accept tcp [::]:20858: accept4: too many open files”, “errorVerbose”: “group:\n— accept tcp [::]:20858: accept4: too many open files\n\tstorj.io/drpc/drpcserver.(*Server).Serve:92\n\tstorj.io/storj/pkg/server.(*Server).Run.func4:198\n\tgolang.org/x/sync/errgro
up.(*Group).Go.func1:57\n— accept tcp [::]:20858: accept4: too many open files”}
Is there a possibility to check if that is related to a golang bug leaving fds open indefinitely?
can you tell me a little bit more around your setup?
Did you change anything from the default config?
Whats your bandwidth available?
Where are you located?
What kind of machine do you run the node on?
Does the node serve any other service/purpose besides the storj storagenode?
Are you perhaps running more than 1 node on that machine?
Can you also provide an output of ulimit -a here?
Typically this error only occurs if your system is overloaded with requests and cannot handle it quickly enough so that it stalls and opens lots of files and TCP connections.
When running more than 1 node on that system, the file handle limit is quickly becoming a problem.
You have two choices, either increase that limit or my recommendation, run fewer but bigger nodes.