Skip to content
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

Too many open files. #28

Closed
duckartes opened this issue Jul 17, 2018 · 3 comments
Closed

Too many open files. #28

duckartes opened this issue Jul 17, 2018 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@duckartes
Copy link

duckartes commented Jul 17, 2018

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "IO error: While opendir: /mnt/DATA/.btc.n0de/electrs/mainnet: Too many open files"', libcore/result.rs:945:5
@duckartes
Copy link
Author

duckartes commented Jul 17, 2018

Modifying: /etc/security/limits.conf

Adding:

*         hard    nofile      500000
*         soft    nofile      500000
root      hard    nofile      500000
root      soft    nofile      500000

Log out, Log in

Solved it, but I don't know if this is the best, or safest way to go about it? Any downsides to doing it this way?

@romanz
Copy link
Owner

romanz commented Jul 17, 2018

The latest version on master should increase the limit to 2048 (4c7413d), which seems to be enough on my machine.

Could you try to run it to see if it helps?

P.S.
Maybe this is related to #11 (comment)?

@romanz romanz added the question Further information is requested label Jul 17, 2018
@romanz
Copy link
Owner

romanz commented Jul 17, 2018

Closing this issue, it's a symptom of #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants