Skip to content

Node crashes when non-important plugin installed by Reckless fails #8739

@ShahanaFarooqui

Description

@ShahanaFarooqui

Core lightning node crashes when a non-important plugin fails to run, despite the documentation indicating that only important plugins should cause the daemon to crash on failure.

Expected Behavior

  • According to the documentation, non-important plugins should not cause lightningd to crash.
  • When a plugin is installed via reckless (which does not mark plugins as important), the failure of that plugin should be logged but should not cause the entire daemon to crash.

Actual Behavior

When the backup plugin installed via reckless fails to run, it causes the entire Core Lightning node to crash.

Steps to Reproduce

  • Install backup plugin using reckless: lightning-cli reckless install "backup"
  • lightningd crashes and the command fails with error lightning-cli: reading response: socket closed

Proposed Solution

  • lightningd should distinguish between important and non-important plugins and handle their failures accordingly
  • reckless plugin could add another rpc as listfailed with metadata like plugin_name, plugin_url, last_failed_date, failure_reason, etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions