Skip to content

docs: add two more cases to the troubleshooting guide#2005

Merged
jcstein merged 4 commits intocelestiaorg:mainfrom
Firstset:celestia-node-troubleshooting
Apr 28, 2025
Merged

docs: add two more cases to the troubleshooting guide#2005
jcstein merged 4 commits intocelestiaorg:mainfrom
Firstset:celestia-node-troubleshooting

Conversation

@gluckzhang
Copy link
Copy Markdown
Contributor

@gluckzhang gluckzhang commented Apr 24, 2025

Overview

When trying to set up a bridge node for the Mocha testnet, we encountered some errors related to celestia-node and no guidance was found in the current documentation.

We found or confirmed the solutions via Discord and it can be helpful to also add such information to the documentation.

Summary by CodeRabbit

  • Documentation
    • Added troubleshooting steps for resolving "no space left on device" errors on ext4 file systems, including solutions for enabling the large_dir feature and migrating to alternative file systems.
    • Provided guidance for addressing "too many failed passphrase attempts" errors related to keyring backend configuration, with step-by-step solutions and command examples.

Signed-off-by: Long Zhang <gluckzhang@gmail.com>
Signed-off-by: Long Zhang <gluckzhang@gmail.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 24, 2025

Walkthrough

This update enhances the Celestia node troubleshooting guide by adding two new sections. The first section addresses the "no space left on device" error on ext4 file systems, providing explanations and solutions including enabling the large_dir feature or migrating to XFS/ZFS. The second section covers the "can't get key ...: too many failed passphrase attempts" error, explaining its cause and offering solutions such as switching the keyring backend or updating configuration files, with step-by-step command examples.

Changes

File(s) Change Summary
how-to-guides/celestia-node-troubleshooting.md Added troubleshooting sections for ext4 "no space left on device" error and keyring passphrase failure, with solutions and command examples.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Node
    participant Filesystem
    participant Systemd

    User->Node: Starts Celestia node
    Node->Filesystem: Writes data to ext4
    Filesystem-->>Node: Error: "no space left on device"
    User->Filesystem: Enable large_dir or migrate to XFS/ZFS

    User->Systemd: Starts bridge node service
    Systemd->Node: Launch with --keyring.backend file
    Node-->>Systemd: Prompts for passphrase repeatedly
    Systemd-->>User: Error: "too many failed passphrase attempts"
    User->Node: Switch backend to test or update config
    Node->User: Node starts successfully
Loading

Possibly related PRs

Suggested reviewers

  • jcstein

Poem

In the warren of nodes, a hiccup arose,
"No space left!" cried the disk in repose.
With large_dir magic or a migration hop,
The data flows freely, no reason to stop.
And if your keyring’s too stubborn to play,
Switch the backend—now you’re on your way!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
how-to-guides/celestia-node-troubleshooting.md (1)

357-378: Minor grammar and punctuation improvements in the "too many failed passphrase attempts" section

  • Add a comma after “Usually” for readability.
  • Insert a comma before “which” in the sentence about the default keyring backend.

Proposed diff:

@@ line 364
- ERROR        module/state        state/keyring.go:23        can't get key: `my_celes_key` from the keystore: too many failed passphrase attempts
- Usually a bridge node wallet does not need to be funded unless you plan to do `PayForBlob` through it.
+ ERROR        module/state        state/keyring.go:23        can't get key: `my_celes_key` from the keystore: too many failed passphrase attempts
+ Usually, a bridge node wallet does not need to be funded unless you plan to do `PayForBlob` through it.

@@ line 365
- We suggest using the default keyring backend (`test`) in this case which does not require a passphrase.
+ We suggest using the default keyring backend (`test`) in this case, which does not require a passphrase.
🧰 Tools
🪛 LanguageTool

[typographical] ~364-~364: Consider adding a comma after ‘Usually’ for more clarity.
Context: ...oo many failed passphrase attempts ``` Usually a bridge node wallet does not need to b...

(RB_LY_COMMA)


[uncategorized] ~365-~365: A comma might be missing here.
Context: ...efault keyring backend (test) in this case which does not require a passphrase. I...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b5e7b4f and c94684b.

📒 Files selected for processing (1)
  • how-to-guides/celestia-node-troubleshooting.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
how-to-guides/celestia-node-troubleshooting.md

[uncategorized] ~323-~323: You might be missing the article “the” here.
Context: ...ou may also observe similar errors from tar command when extracting a snapshot ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[typographical] ~364-~364: Consider adding a comma after ‘Usually’ for more clarity.
Context: ...oo many failed passphrase attempts ``` Usually a bridge node wallet does not need to b...

(RB_LY_COMMA)


[uncategorized] ~365-~365: A comma might be missing here.
Context: ...efault keyring backend (test) in this case which does not require a passphrase. I...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

🪛 markdownlint-cli2 (0.17.2)
how-to-guides/celestia-node-troubleshooting.md

327-327: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


353-353: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)

Comment thread how-to-guides/celestia-node-troubleshooting.md
@jcstein jcstein requested a review from walldiss April 24, 2025 14:46
it turns out that yarn lint:md will check all the .md files and it can contain lots of errors. I guess that's why the git
hooks are disabled for now.

Signed-off-by: Long Zhang <gluckzhang@gmail.com>
Signed-off-by: Long Zhang <gluckzhang@gmail.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
how-to-guides/celestia-node-troubleshooting.md (1)

364-373: Improve grammar and normalize TOML snippet indentation

  • Add a comma after "Usually" and after "case" to improve readability.
  • Align the [State] TOML block so that its keys are not indented under the header.
@@ 364,365
- Usually a bridge node wallet does not need to be funded unless you plan to do `PayForBlob` through it. We suggest using the default keyring backend (`test`) in this case which does not require a passphrase.
+ Usually, a bridge node wallet does not need to be funded unless you plan to do `PayForBlob` through it. We suggest using the default keyring backend (`test`) in this case, which does not require a passphrase.

@@ 371-373
- [State]
-   DefaultKeyName = "my_celes_key"
-   DefaultBackendName = "test"
+ [State]
+ DefaultKeyName = "my_celes_key"
+ DefaultBackendName = "test"
🧰 Tools
🪛 LanguageTool

[typographical] ~364-~364: Consider adding a comma after ‘Usually’ for more clarity.
Context: ...oo many failed passphrase attempts ``` Usually a bridge node wallet does not need to b...

(RB_LY_COMMA)


[uncategorized] ~365-~365: A comma might be missing here.
Context: ...efault keyring backend (test) in this case which does not require a passphrase. I...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c94684b and 130a448.

📒 Files selected for processing (1)
  • how-to-guides/celestia-node-troubleshooting.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
how-to-guides/celestia-node-troubleshooting.md

[typographical] ~364-~364: Consider adding a comma after ‘Usually’ for more clarity.
Context: ...oo many failed passphrase attempts ``` Usually a bridge node wallet does not need to b...

(RB_LY_COMMA)


[uncategorized] ~365-~365: A comma might be missing here.
Context: ...efault keyring backend (test) in this case which does not require a passphrase. I...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

🪛 markdownlint-cli2 (0.17.2)
how-to-guides/celestia-node-troubleshooting.md

327-327: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4

(MD001, heading-increment)

Comment on lines +327 to +333
#### Option 1: enable the large_dir feature for ext4

:::tip NOTE
If the Node Store is on the same partition as the OS, it is recommended to take Option 2.
:::

1. Stop the node
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Adjust heading levels for Option sections

The subheadings #### Option 1: ... and #### Option 2: ... skip an h3 level under the h2 "Error: ..." section. Update them to h3 (###) to maintain proper Markdown hierarchy and satisfy MD001.

- #### Option 1: enable the large_dir feature for ext4
+ ### Option 1: enable the large_dir feature for ext4

- #### Option 2: migrate to XFS/ZFS file system
+ ### Option 2: migrate to XFS/ZFS file system
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#### Option 1: enable the large_dir feature for ext4
:::tip NOTE
If the Node Store is on the same partition as the OS, it is recommended to take Option 2.
:::
1. Stop the node
### Option 1: enable the large_dir feature for ext4
:::tip NOTE
If the Node Store is on the same partition as the OS, it is recommended to take Option 2.
:::
1. Stop the node
### Option 2: migrate to XFS/ZFS file system
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

327-327: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4

(MD001, heading-increment)

@jcstein
Copy link
Copy Markdown
Member

jcstein commented Apr 28, 2025

thank you @gluckzhang ! :shipit:

@jcstein jcstein merged commit 61ec7a8 into celestiaorg:main Apr 28, 2025
2 checks passed
@gluckzhang gluckzhang deleted the celestia-node-troubleshooting branch April 29, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants