Skip to content

Multipe issues with plugins #8756

@PsySc0rpi0n

Description

@PsySc0rpi0n

This started with cln-rest plugin which was killing itself after normal operation.

Bitcoin Core version

$ bitcoin-cli --version
Bitcoin Core RPC client version v28.0
Copyright (C) 2009-2024 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
<https://bitcoincore.org/> for further information about the software.
The source code is available from <https://github.com/bitcoin/bitcoin>.

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or <https://opensource.org/licenses/MIT>

Core Lightning version:

$ lightning-cli --version
v25.09-474-g8732410

Core Lightning config file

$ cat ~/.lightning/config 

network=bitcoin
bitcoin-cli=/home/psysc0rpi0n/Downloads/bitcoin/src/bitcoin-cli
bitcoin-datadir=/home/psysc0rpi0n/.bitcoin
# debug
log-level=debug:sling
log-file=/home/psysc0rpi0n/.lightning/debug.log

alias=Crypt04n4rkMoV
rgb=ffff00
watchtime-blocks=720
wallet=sqlite3:///home/psysc0rpi0n/.lightning/bitcoin/lightningd.sqlite3:/media/MyBook/c-lightning/advancedDB/lightningd.sqlite3

proxy=127.0.0.1:9050
bind-addr=127.0.0.1:9735
announce-addr=2obm3yvfj5m3zabnea5y2xolimeuc4gbelika3pa7div5pk2eolqrtad.onion
always-use-proxy=true
min-capacity-sat=400000

# liquidity avertisement
experimental-dual-fund
funder-policy=match
funder-policy-mod=100
lease-fee-basis=10
channel-fee-max-base-msat=1250msat
channel-fee-max-proportional-thousandths=1
funder-lease-requests-only=false

#Plugins section
plugin=/home/psysc0rpi0n/Downloads/sling/target/release/sling

# New CLN Rest plugin
clnrest-port=3010

Logs that I have for the cln-rest issue:

2025-12-03T10:56:03.659Z DEBUG   plugin-sling: Refreshed graph in 61ms!
2025-12-03T10:56:07.176Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`listforwards` with params:`{"status":"failed"}`
2025-12-03T10:56:10.027Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`getinfo` with params:`{}`
2025-12-03T10:56:10.349Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`listfunds` with params:`{}`
2025-12-03T10:56:10.352Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`listinvoices` with params:`{}`
2025-12-03T10:56:10.565Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`feerates` with params:`{"style":"perkw"}`
2025-12-03T10:56:10.565Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`feerates` with params:`{"style":"perkb"}`
2025-12-03T10:56:10.569Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`listpeers` with params:`{}`
2025-12-03T10:56:10.570Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`listpeerchannels` with params:`{}`
2025-12-03T10:56:10.570Z INFO    plugin-clnrest: Authorized rune_id:`5` access to method:`listsendpays` with params:`{}`
2025-12-03T10:56:13.706Z DEBUG   plugin-sling: Getting all channels in gossip_store...
2025-12-03T10:56:13.707Z DEBUG   plugin-sling: read_gossip_file: built 0/0 new channels
2025-12-03T10:56:13.708Z DEBUG   plugin-sling: Reading gossip store done after 12ms!
2025-12-03T10:56:13.709Z DEBUG   plugin-sling: 77405 public channels in sling graph after 25ms!
2025-12-03T10:56:13.709Z DEBUG   plugin-sling: Got 4 local channels after 25ms!
2025-12-03T10:56:13.710Z DEBUG   plugin-sling: 0 private channels in sling graph after 49ms!
2025-12-03T10:56:13.710Z DEBUG   plugin-sling: Refreshed graph in 49ms!
2025-12-03T10:56:23.776Z DEBUG   plugin-sling: Getting all channels in gossip_store...
2025-12-03T10:56:23.777Z DEBUG   plugin-sling: read_gossip_file: built 0/0 new channels
2025-12-03T10:56:23.778Z DEBUG   plugin-sling: Reading gossip store done after 21ms!
2025-12-03T10:56:23.778Z DEBUG   plugin-sling: 77405 public channels in sling graph after 38ms!
2025-12-03T10:56:23.778Z DEBUG   plugin-sling: Got 4 local channels after 39ms!
2025-12-03T10:56:23.778Z DEBUG   plugin-sling: 0 private channels in sling graph after 68ms!
2025-12-03T10:56:23.779Z DEBUG   plugin-sling: Refreshed graph in 68ms!
2025-12-03T10:56:33.835Z DEBUG   plugin-sling: Getting all channels in gossip_store...
2025-12-03T10:56:33.837Z DEBUG   plugin-sling: read_gossip_file: built 0/0 new channels
2025-12-03T10:56:33.837Z DEBUG   plugin-sling: Reading gossip store done after 14ms!
2025-12-03T10:56:33.838Z DEBUG   plugin-sling: 77405 public channels in sling graph after 29ms!
2025-12-03T10:56:33.838Z DEBUG   plugin-sling: Got 4 local channels after 29ms!
2025-12-03T10:56:33.839Z DEBUG   plugin-sling: 0 private channels in sling graph after 58ms!
2025-12-03T10:56:33.839Z DEBUG   plugin-sling: Refreshed graph in 58ms!
2025-12-03T10:56:35.915Z INFO    plugin-clnrest: Killing plugin: exited during normal operation
2025-12-03T10:56:35.916Z **BROKEN** plugin-clnrest: Plugin marked as important, shutting down lightningd!
2025-12-03T10:56:35.920Z INFO    03ec0f6f9ba5d21c254299dd83760beb6bff3fa0826bc2fd6cd6c8f0783308f812-chan#114: Peer transient failure in CHANNELD_NORMAL: channeld: Owning subdaemon channeld died (9)
2025-12-03T10:56:35.921Z INFO    03c5254c74e21a342f4182e5993dafe164527a42340a301dd5736b9a3017701013-chan#117: Peer transient failure in CHANNELD_NORMAL: channeld: Owning subdaemon channeld died (9)
2025-12-03T10:56:35.922Z INFO    02beb608b225320db6b5a1204ec91c18234e88efee7cb38342d66d9d0e2aebcc91-chan#112: Peer transient failure in CHANNELD_NORMAL: channeld: Owning subdaemon channeld died (9)
2025-12-03T10:56:35.923Z INFO    02d96eadea3d780104449aca5c93461ce67c1564e2e1d73225fa67dd3b997a6018-chan#113: Peer transient failure in CHANNELD_NORMAL: channeld: Owning subdaemon channeld died (9)
2025-12-03T10:56:35.982Z DEBUG   plugin-sling: Got shutdown notification
2025-12-03T10:56:35.982Z DEBUG   plugin-sling: Wrote liquidity to disk in 2ms 
2025-12-03T10:56:36.011Z DEBUG   plugin-sling: Killing plugin: exited during normal operation

This already happened like 2 or 3 times in the past 10~12 days, maybe...

Then, toay, I had a Core Lightning crash that I will also paste here te log of it. Not sure it's the best idea to put here the crash but maybe it could be related. If it's totally unrelated, I'll delete it later.

2025-12-04T04:55:00.579Z DEBUG   plugin-sling: 77391 public channels in sling graph after 35ms!
2025-12-04T04:55:00.579Z DEBUG   plugin-sling: Got 4 local channels after 35ms!
2025-12-04T04:55:00.579Z DEBUG   plugin-sling: 0 private channels in sling graph after 63ms!
2025-12-04T04:55:00.579Z DEBUG   plugin-sling: Refreshed graph in 63ms!
2025-12-04T04:55:00.637Z INFO    plugin-sling: Refreshed 0 liquidity beliefs in 0ms!
2025-12-04T04:55:07.554Z INFO    plugin-keysend: Killing plugin: exited during normal operation
2025-12-04T04:55:07.554Z **BROKEN** plugin-keysend: Plugin marked as important, shutting down lightningd!
2025-12-04T04:55:07.559Z INFO    02d96eadea3d780104449aca5c93461ce67c1564e2e1d73225fa67dd3b997a6018-chan#113: Peer transient failure in CHANNELD_NORMAL: channeld: Owning subdaemon channeld died (1)
2025-12-04T04:55:07.559Z INFO    plugin-funder: Killing plugin: exited during normal operation
2025-12-04T04:55:07.559Z **BROKEN** plugin-funder: Plugin marked as important, shutting down lightningd!
2025-12-04T04:55:07.564Z INFO    plugin-summary.py: Killing plugin: exited during normal operation
2025-12-04T04:55:07.566Z INFO    plugin-monitor.py: Killing plugin: exited during normal operation
2025-12-04T04:55:07.566Z INFO    plugin-bcli: Killing plugin: exited during normal operation
2025-12-04T04:55:07.567Z **BROKEN** lightningd: The Bitcoin backend died.
2025-12-04T04:55:07.883Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v25.09-474-g8732410)
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: common/daemon.c:46 (send_backtrace) 0xaaaac02b607b
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: common/daemon.c:83 (crashdump) 0xaaaac02b60d3
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffff853657bb
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ./nptl/pthread_kill.c:44 (__pthread_kill_implementation) 0xffff84ee3c18
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ../sysdeps/posix/raise.c:26 (__GI_raise) 0xffff84e9a8ab
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ./stdlib/abort.c:79 (__GI_abort) 0xffff84e8747f
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/log.c:1054 (fatal_vfmt) 0xaaaac022726b
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/log.c:1064 (fatal) 0xaaaac02272ff
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:27 (bitcoin_destructor) 0xaaaac01f4697
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/tal/tal.c:246 (notify) 0xaaaac030a863
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/tal/tal.c:437 (del_tree) 0xaaaac030a94f
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/tal/tal.c:532 (tal_free) 0xaaaac030af77
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:469 (plugin_kill) 0xaaaac02502c7
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:861 (plugin_conn_finish) 0xaaaac02505d3
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:246 (destroy_conn) 0xaaaac02fdb0b
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:252 (destroy_conn_close_fd) 0xaaaac02fdb37
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/tal/tal.c:246 (notify) 0xaaaac030a863
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/tal/tal.c:437 (del_tree) 0xaaaac030a94f
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/tal/tal.c:532 (tal_free) 0xaaaac030af77
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:496 (io_close) 0xaaaac02fc223
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:474 (io_loop) 0xaaaac02fe35b
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/connect_control.c:451 (connectd_start_shutdown) 0xaaaac0212ccb
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1506 (main) 0xaaaac022432b
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ../sysdeps/nptl/libc_start_call_main.h:58 (__libc_start_call_main) 0xffff84e87743
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: ../csu/libc-start.c:360 (__libc_start_main_impl) 0xffff84e87817
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xaaaac01f2def
2025-12-04T04:55:07.883Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions