ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.85k stars 902 forks source link

Assertion `ret == plugins' failed #6054

Open Zk2u opened 1 year ago

Zk2u commented 1 year ago

Issue and Steps to Reproduce

I upgraded my server from v0.12.0 to v22.11.1, and started getting this error. I've disabled all my plugins. lightningd is refusing to boot.

lightningd
lightningd: lightningd/plugin.c:1820: plugins_init: Assertion `ret == plugins' failed.
lightningd: FATAL SIGNAL 6 (version 22.11.1)
0x55a10dc190f3 send_backtrace
    common/daemon.c:33
0x55a10dc1918d crashdump
    common/daemon.c:46
0x7f20a849608f ???
    ???:0
0x7f20a849600b ???
    ???:0
0x7f20a8475858 ???
    ???:0
0x7f20a8475728 ???
    ???:0
0x7f20a8486fd5 ???
    ???:0
0x55a10dbf49a8 plugins_init
    lightningd/plugin.c:1820
0x55a10dbd3bff main
    lightningd/lightningd.c:987
0x7f20a8477082 ???
    ???:0
0x55a10dbb60ad ???
    ???:0
0xffffffffffffffff ???
    ???:0
lightningd: Died with signal 6

Log:

2023-03-03T08:43:21.066Z UNUSUAL plugin-fetchinvoice: Killing plugin: could not register hook 'onion_message_ourpath', either the name doesn't exist or another plugin already registered it.
2023-03-03T08:43:21.067Z **BROKEN** plugin-fetchinvoice: Plugin marked as important, shutting down lightningd!

Config:

mainnet
daemon

bitcoin-rpcuser=***
bitcoin-rpcpassword=***
bitcoin-rpcconnect=***

log-file=/root/.lightning/debug.log

wallet=postgres://*********

alias=Ares Inferno

fee-base=0
fee-per-satoshi=0
min-capacity-sat=100000

commit-time=200

large-channels

experimental-onion-messages
experimental-offers
fetchinvoice-noconnect
experimental-shutdown-wrong-funding
experimental-dual-fund

proxy=127.0.0.1:9050
addr=
addr=statictor:127.0.0.1:9051/torblob=aresinferno

#plugin=/root/c-lightning-REST-0.9.0/plugin.js
#rest-port=3002
#rest-docport=4001
#rest-protocol=https
#rest-domain=94.237.53.252

#plugin=/root/peerswap/peerswap-plugin
#log-level=debug:plugin-peerswap-plugin

#plugin=/usr/local/bin/clboss

#funder-policy=match
#funder-policy-mod=100
#lease-fee-base-msat=500sat
#lease-fee-basis=50
#channel-fee-max-base-msat=0sat
#channel-fee-max-proportional-thousandths=0
vincenzopalazzo commented 1 year ago

You are disabled to many plugins, the plugins are not external but a lot of parts of our code like bolt12 that you activate with experimental-offers are plugins

So you should not disable all the plugins otherwise you are not able to work with core lightning

Zk2u commented 1 year ago

Sorry for the vague language. I reenabled all lines in the config and still got the same error.