Skip to content

plugins: rename bwatch output binary to cln-bwatch#9192

Open
sangbida wants to merge 1 commit into
ElementsProject:masterfrom
sangbida:sangbida/bwatch-plugin-fix
Open

plugins: rename bwatch output binary to cln-bwatch#9192
sangbida wants to merge 1 commit into
ElementsProject:masterfrom
sangbida:sangbida/bwatch-plugin-fix

Conversation

@sangbida
Copy link
Copy Markdown
Collaborator

@sangbida sangbida commented Jun 4, 2026

The bwatch plugin lived in plugins/bwatch/ and output its binary as plugins/bwatch/bwatch. This caused make install to install it flat as /bwatch, while lightningd expected it at /bwatch/bwatch, so plugin registration failed at startup with "failed to register plugin".

Fix by renaming the output to plugins/cln-bwatch, following the same convention as cln-renepay, cln-xpay and cln-askrene.

Changelog-Fixed: bwatch plugin failed to register on startup after make install

Fixes #9191

The bwatch plugin lived in plugins/bwatch/ and output its binary as
plugins/bwatch/bwatch. This caused make install to install it flat as
<plugindir>/bwatch, while lightningd expected it at <plugindir>/bwatch/bwatch, so plugin registration failed at startup with "failed to register plugin".

Fix by renaming the output to plugins/cln-bwatch, following the same
convention as cln-renepay, cln-xpay and cln-askrene.

Changelog-Fixed: bwatch plugin failed to register on startup after make install
@sangbida sangbida requested a review from daywalker90 June 4, 2026 15:51
@sangbida
Copy link
Copy Markdown
Collaborator Author

sangbida commented Jun 4, 2026

I tried to reproduce the issue locally as well, before the fix:

(cln-meta-project) sangbida@mac lightning % /tmp/cln-test/usr/local/bin/lightningd --version
2026-06-04T15:58:06.985Z UNUSUAL plugin-manager: failed to register plugin /private/tmp/cln-test/usr/local/bin/../libexec/c-lightning/plugins/bwatch/bwatch
v26.06

After the fix:

(cln-meta-project) sangbida@mac lightning % /tmp/cln-test/usr/local/bin/lightningd --version
v26.06-4-g43ded1e

@madelinevibes madelinevibes added this to the v26.09 milestone Jun 4, 2026
@madelinevibes madelinevibes added 26.06.1 Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. labels Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

26.06 bug 26.06.1 Status::Ready for Review The work has been completed and is now awaiting evaluation or approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lightningd --version prints plugins that failed to register

2 participants