mrusme / superhighway84

USENET-inspired, uncensorable, decentralized internet discussion system running on IPFS & OrbitDB
https://xn--gckvb8fzb.com/superhighway84
GNU General Public License v3.0
694 stars 24 forks source link

"too many open files" #3

Closed vielmetti closed 2 years ago

vielmetti commented 2 years ago

I see one post to alt.social, but soon afterwards the system crashes with

ERROR┐╔═blockstore══════go-ipfs-blockstore@v0.1.6/blockstore.go:218═════blockstore.AllKeysChan got err: walk failed: open /Users/emv/.ipfs-sh84/blocks: too many open files
mrusme commented 2 years ago

What does your ulimit -n say while you're running it? Was it increased to > 1024? If not, you can try to manually do so , e.g. ulimit -n 2048.

vielmetti commented 2 years ago
> ulimit -n
256

~/src/github.com/mrusme/superhighway84 on master ....................................... at 11:11:49
> ulimit -n 2048

system is MacBook pro,

> uname -a
Darwin woodward.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64

With ulimit changed, no errors.

mrusme commented 2 years ago

Will check if I can set ulimit on start.

mrusme commented 2 years ago

@vielmetti please try setting your IPFS repository to lowpower profile and test with that:

ipfs config profile apply lowpower

See this for more info.

mrusme commented 2 years ago

I've tested the above profile on the macbook, as well as two small-scale VPS and they've all been running for the past day with no issues at all. This seems to have more or less fixed this issue. I've documented it already in the README, so people should be go to go.