-
Notifications
You must be signed in to change notification settings - Fork 422
docs: update celestia-node troubleshooting #1444
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
Conversation
WalkthroughThis update provides guidance on resolving the "too many open files" error for Celestia Bridge nodes. It achieves this by detailing the process for adjusting the file descriptor limit within the service file, aiming to ensure the nodes operate smoothly without hitting system limitations. Changes
Related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Error: "too many open files" | ||
| When running a Celestia Bridge node, you may encounter an error in the logs similar to this: | ||
| ```bash | ||
| Error while creating log file in valueLog.open error: while opening file: /opt/celestia/.celestia-bridge/data/003442.vlog error: open /opt/celestia/.celestia-bridge/data/003442.vlog: too many open files | ||
| ``` | ||
| This error indicates that the Celestia application is trying to open more files than the operating system's limit allows. To fix this, you will need to edit the Celestia Bridge service file to increase the number of file descriptors that the service can open. | ||
| 1. Open the service file for editing: | ||
| ```bash | ||
| nano /etc/systemd/system/celestia-bridge.service | ||
| ``` | ||
| 2. Modify the `LimitNOFILE` parameter: | ||
| In the service file, find the `LimitNOFILE` parameter under the [Service] section and set its value to `1400000`. It should look like this: | ||
| ```ini | ||
| [Service] | ||
| ... | ||
| LimitNOFILE=1400000 | ||
| ... | ||
| ``` | ||
| :::tip NOTE | ||
| Be cautious when increasing file descriptor limits. Setting this value too high might affect system performance. Ensure the value is appropriate for your system's capabilities. | ||
| ::: | ||
| 3. Reload daemon and restart Bridge service: | ||
| ```bash | ||
| sudo systemctl daemon-reload | ||
| ``` | ||
| ```bash | ||
| sudo systemctl restart celestia-bridge | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The instructions provided for resolving the "too many open files" error are clear and well-structured. However, there are a few areas where improvements can be made for clarity and completeness:
-
Explicit Mention of File Path: While the instructions to open the service file with
nanoare clear, it might be helpful for less experienced users to mention that the path/etc/systemd/system/celestia-bridge.serviceis an example and may vary based on their system configuration or installation method. -
Explanation of
LimitNOFILE: The instructions do a good job of telling users what to change, but a brief explanation of whatLimitNOFILEdoes and why increasing it helps resolve the "too many open files" error could enhance understanding. -
System Performance Warning: The caution about setting the
LimitNOFILEvalue too high is important. It might be beneficial to provide a bit more guidance on how to determine an appropriate value for their system or to suggest consulting with a system administrator if unsure. -
Verification Step: After restarting the Celestia Bridge service, adding a step to verify that the change has taken effect could be helpful. This could be as simple as checking the service's status or looking for the absence of the "too many open files" error in the logs.
Overall, these instructions are a valuable addition to the troubleshooting documentation, but incorporating these suggestions could make them even more useful to node operators.
|
This looks related to #1390 and was resolved in #1407. Can you confirm, @redwest88 ? |
|
Yes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- nodes/mocha-testnet.md (3 hunks)
Additional comments: 3
nodes/mocha-testnet.md (3)
- 80-80: The update to the RPC endpoint domain names to include "testnet" (
celestia-testnet-rpc.f5nodes.com) improves clarity and helps distinguish testnet resources. This change aligns with best practices for naming conventions in development and test environments.- 101-101: The update to the API endpoint domain names to include "testnet" (
https://celestia-testnet-api.f5nodes.com) is a positive change for similar reasons as the RPC endpoints. It enhances clarity and consistency in the documentation, making it easier for users to understand they are interacting with testnet resources.- 123-123: The update to the gRPC endpoint domain names to include "testnet" (
celestia-testnet-grpc.f5nodes.com) follows the same rationale as the RPC and API endpoints. This consistency across different types of endpoints is beneficial for users and developers, ensuring a clear distinction between testnet and other environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- nodes/celestia-node-troubleshooting.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- nodes/celestia-node-troubleshooting.md
Overview
This PR addresses a common issue faced by Celestia Bridge node operators, specifically the "too many open files" error:
I have proposed an addition to the celestia-node troubleshooting section of the docs. The addition describes steps to increase the
LimitNOFILEparameter in thecelestia-bridge.servicefile.While the
celestia-bridge.servicefile example in the documentation already specifiesLimitNOFILE=1400000, it's important to address this in the troubleshooting section, because node operators often set this value to a lower default, such as65535, which can lead to the above error.Summary by CodeRabbit