vincenzopalazzo / lampo.rs

lampo (lightning in Italian) is a experimental implementation of a tiny lightning node
http://lampo.devcrew.cc
BSD 3-Clause "New" or "Revised" License
39 stars 14 forks source link

force close on restart #116

Closed vincenzopalazzo closed 7 months ago

vincenzopalazzo commented 1 year ago

On restart I found the following force close

2023-09-07T20:25:50.403Z TRACE bitcoincore_rpc JSON-RPC response for estimatesmartfee: {"errors":["Insufficient data or no feerate found"],"blocks":6}. [/home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitcoincore-rpc-0.17.0/src/client.rs:1351]
2023-09-07T20:25:50.403Z TRACE ldk lightning::ln::channel:3102 TRACE Freeing holding cell with 0 HTLC updates and a fee update in channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771. [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.404Z TRACE ldk lightning::ln::channel:1235 TRACE Building commitment transaction number 281474976710654 (really 1 xor 103973804081145) for channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771 for us, generated by us with fee 1000.... [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.404Z TRACE ldk lightning::ln::channel:1396 TRACE    ...including to_local output with value 599276. [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.404Z DEBUG bitcoincore_rpc JSON-RPC request: estimatesmartfee [6]. [/home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitcoincore-rpc-0.17.0/src/client.rs:1322]
2023-09-07T20:25:50.405Z TRACE bitcoincore_rpc JSON-RPC response for estimatesmartfee: {"errors":["Insufficient data or no feerate found"],"blocks":6}. [/home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitcoincore-rpc-0.17.0/src/client.rs:1351]
2023-09-07T20:25:50.406Z TRACE ldk lightning::ln::channel:5270 TRACE Updating HTLC state for a newly-sent commitment_signed.... [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.407Z TRACE ldk lightning::ln::channel:1235 TRACE Building commitment transaction number 281474976710654 (really 1 xor 103973804081145) for channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771 for remote, generated by us with fee 500.... [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.407Z TRACE ldk lightning::ln::channel:1402 TRACE    ...including to_local output with value 599638. [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.407Z DEBUG ldk lightning::ln::channel:3199 DEBUG Freeing holding cell in channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771 resulted in a fee update, 0 HTLCs added, 0 HTLCs fulfilled, and 0 HTLCs failed.. [lampod/src/utils/logger.rs:46]
2023-09-07T20:25:50.414Z ERROR ldk lightning::chain::chainmonitor:721 ERROR Failed to update channel monitor: no such monitor registered. [lampod/src/utils/logger.rs:49]
2023-09-07T20:25:50.414Z ERROR ldk lightning::ln::channelmanager:6446 ERROR Closing channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771 due to monitor update ChannelMonitorUpdateStatus::PermanentFailure. [lampod/src/utils/logger.rs:49]
2023-09-07T20:25:50.414Z TRACE ldk lightning::ln::channelmanager:3141 TRACE Attempting to generate broadcast channel update for channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771. [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.414Z TRACE ldk lightning::ln::channelmanager:3157 TRACE Attempting to generate channel update for channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771. [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.414Z TRACE ldk lightning::ln::channelmanager:3167 TRACE Generating channel update for channel cbac6e84b90d2766f424be942edf6969bb13ef4e933351754780587a25e9b771. [lampod/src/utils/logger.rs:50]
2023-09-07T20:25:50.415Z DEBUG ldk lightning::ln::channelmanager:2593 DEBUG Finishing force-closure of channel with 0 HTLCs to fail. [lampod/src/utils/logger.rs:46]
2023-09-07T20:25:50.415Z ERROR ldk lightning::chain::chainmonitor:721 ERROR Failed to update channel monitor: no such monitor registered. [lampod/src/utils/logger.rs:49]
2023-09-07T20:25:50.415Z ERROR ldk lightning::ln::channelmanager:6467 ERROR ChannelMonitor storage failure. [lampod/src/utils/logger.rs:49]
vincenzopalazzo commented 11 months ago

Another strange log

23-12-03T01:03:52.355Z DEBUG lampod::ln::channe_manager transactions [ac9ee361e0ec07f919f6b9dc07c2fd21f05ef559326b45e6f889c6e37bb6f32b] []. [lampod/src/ln/channe_manager.rs:362]
2023-12-03T01:03:52.355Z ERROR ldk lightning::chain::chainmonitor:756 ERROR Failed to update channel monitor: no such monitor registered. [lampod/src/utils/logger.rs:49]
thread '<unnamed>' panicked at 'ChannelManager generated a channel update for a channel that was not yet registered!', /home/vincent/.cargo/git/checkouts/rust-lightning-60e90b7552cca592/d2242f6/lightning/src/chain/chainmonitor.rs:762:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2023-12-03T01:03:52.357Z TRAC
vincenzopalazzo commented 7 months ago

Duplicated https://github.com/vincenzopalazzo/lampo.rs/issues/102