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

solana-ledger-tool error: Unable to increase the maximum open file descriptor limit to 1000000 from 1024 #35580

Closed
ksolana opened this issue Jun 10, 2024 · 1 comment
Labels
community Community contribution

Comments

@ksolana
Copy link
Contributor

ksolana commented Jun 10, 2024

Problem

$ solana-ledger-tool program run -l test-ledger -e debugger ../program-examples/basics/hello-solana/native/program/target/so/hello_solana_program.so

[2024-06-07T14:38:16.438930820Z INFO  solana_ledger_tool] solana-ledger-tool 1.18.15 (src:767d24e5; feat:4215500110, client:SolanaLabs)
2024-06-07T14:38:16.440843361Z ERROR solana_ledger::blockstore] Unable to increase the maximum open file descriptor limit to 1000000 from 1024
Failed to open blockstore at "/home/solana-test-validator/test-ledger": UnableToSetOpenFileDescriptorLimit

Proposed Solution

One way(as suggested by Sean) to solve is to increase the prlimit e.g.,

$ sudo prlimit -p $$ --nofile=1000000

We should add this in the doc.

Note: There was a related issue #19575 with the validator. The fix has been documented in https://docs.solanalabs.com/operations/guides/validator-start#system-tuning, other solutions were also proposed in the issue itself e.g., #19575 (comment). But it may not be obvious to users of solana-ledger-tool so we should add relevant documentation.

@ksolana ksolana added the community Community contribution label Jun 10, 2024
Copy link
Contributor

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

No branches or pull requests

1 participant