ElementsProject / lightning

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

lightning-cli --testnet withdraw command hanging #5918

Open mdance opened 1 year ago

mdance commented 1 year ago

Issue and Steps to Reproduce

I am tail -f ~/.lightning/testnet/lightning.log and seeing:

2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for opening hit floor 253 2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for mutual_close hit floor 253 2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for unilateral_close hit floor 253 2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for delayed_to_us hit floor 253 2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for htlc_resolution hit floor 253 2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for penalty hit floor 253 2023-01-24T04:28:20.331Z DEBUG lightningd: ... polled feerate estimate for min_acceptable (125) smoothed to 196 (alpha=0.44) 2023-01-24T04:28:20.331Z DEBUG lightningd: ... feerate estimate for min_acceptable hit floor 253

When I attempt to run a lightning-cli --testnet lclit withdraw tb1[address] 1000000 urgent 1

The command just sits there and never returns, my lightningd cpu usage jumps to 100%, if I cancel the command, even running lightning-cli --testnet withdraw just sits there and hangs, which woudl normally return a please specify destination

I have to restart my lightningd --testnet daemon, as lclit withdraw just hangs

There is nothing that shows up in the debug log.

getinfo output

vincenzopalazzo commented 1 year ago

Mh that is interesting, what version of cln are you using?

mdance commented 1 year ago

I'm running a compiled version of v22.11.1 on manjaro linux, once it hangs, if I hit cntrl+c, even issuing lightning-cli getinfo hangs, I've got to restart the lightningd daemon before any commands will work

vincenzopalazzo commented 1 year ago

Mh this is a really interesting case, when your command hangs there is any process on your system related to cln that is consuming CPU or RAM?

P.S: do you have any particular plugin that you are running?

mdance commented 1 year ago

Running top I'm seeing lightningd using 100% cpu:

  1 2650791 md        20   0  704.8m 671.7m   3.5m R  99.7   4.3  21.5m   1   0:34.97 /usr/local/bin/lightningd --testnet --pid-file=/home/md/.lightning/testnet/lightning.pid --daemon

I've got the currencyrate, summary, monitor, and c-lightning-rest plugin (for RTL)