lnd icon indicating copy to clipboard operation
lnd copied to clipboard

Still cannot force close inactive channels

Open kiaraho opened this issue 7 years ago • 91 comments

Background

Follow up to issue #2391. Now running 0.5.1. Most of the channels have closed and I can see the funds on-chain when I run lncli walletbalance. However, there are still some funds off-chain in one pending_force_closing_channels and two waiting_close_channels. Those channels have been in limbo for several days now.

Your environment

lncli version 0.5.1-beta commit= Linux hostname 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Bitcoin Core Daemon version v0.17.0.0-ge1ed37edaedc85b8c3468bd9a726046344036243

Steps to reproduce

Ran lncli closeallchannels --force to close inactive channels. Got the following message:

{ "remote_pub_key": "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "channel_point": "825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1", "closing_txid": "cb118298c5526ca09576dd54f8be48b06994fafb790738879069ef50d8e156e6", "error": "" } { "remote_pub_key": "032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada", "channel_point": "fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1", "closing_txid": "e2e7c83691ad21deb37a42bcbb22886225a88c0b67a57be94e0060992d8e0b3c", "error": "" }

Expected behaviour

Inactive channels should close.

Actual behaviour

Three channels still stuck in limbo. The two closing_txid above do not seem to have been broadcast. Running lncli closeallchannels --force again returns a "[lncli] no open channels to close" message. Output from lncli pendingchannels command:

{ "total_limbo_balance": "11783124", "pending_open_channels": [ ], "pending_closing_channels": [ ], "pending_force_closing_channels": [ { "channel": { "remote_node_pub": "029afc726a18abc8dc75ef6c9ed34354c275261086597d98067dd972bd72965943", "channel_point": "cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0", "capacity": "2062186", "local_balance": "2054765", "remote_balance": "0" }, "closing_txid": "297735f112539d8c1f7325863468b8a67c20f3584be06bb4f9634c10c458df36", "limbo_balance": "0", "maturity_height": 0, "blocks_til_maturity": 0, "recovered_balance": "0", "pending_htlcs": [ ] } ], "waiting_close_channels": [ { "channel": { "remote_node_pub": "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "channel_point": "825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1", "capacity": "7119858", "local_balance": "6947834", "remote_balance": "0" }, "limbo_balance": "6947834" }, { "channel": { "remote_node_pub": "032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada", "channel_point": "fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1", "capacity": "4842711", "local_balance": "4835290", "remote_balance": "0" }, "limbo_balance": "4835290" } ] }

kiaraho avatar Jan 13 '19 22:01 kiaraho

That first channel has been fully swept on chain. Do you have start up logs for that? Similarly, do you have logs for the latter two?

Roasbeef avatar Jan 13 '19 23:01 Roasbeef

By start up logs, are you referring to the entries in lnd.log after running lncli unlock? If so, which log entries in particular?

kiaraho avatar Jan 14 '19 07:01 kiaraho

In lnd.log grep for either of those channel point or txid's.

Roasbeef avatar Jan 15 '19 00:01 Roasbeef

Here are the log entries I have immediately after running lncli pendingchannels.

grep cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666 ~/.lnd/logs/bitcoin/mainnet/lnd.log 2019-01-15 09:44:04.884 [INF] UTXN: NurseryReport: building nursery report for channel cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0

grep 825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e ~/.lnd/logs/bitcoin/mainnet/lnd.log 2019-01-15 09:43:37.082 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 10m0s.

grep fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4 ~/.lnd/logs/bitcoin/mainnet/lnd.log 2019-01-15 09:43:37.117 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 10m0s.

kiaraho avatar Jan 15 '19 07:01 kiaraho

Aah... looks like you restored from an outdated backup?

If you're unlucky, you force-closed the channels (which is a breach when your backup is outdated), and the remote took the funds. If you're lucky, the remote force closed and has data-loss protection enabled. If that's the case, you can try to connect to the peer (02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b and 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada) and see what happens. Please post debug logs!

halseth avatar Jan 15 '19 08:01 halseth

I was already connected to both peers.

///

lncli listpeers | grep -A 7 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b "pub_key": "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "address": "167.99.50.31:9735", "bytes_sent": "6728289", "bytes_recv": "10243259", "sat_sent": "0", "sat_recv": "0", "inbound": false, "ping_time": "2025706"

lncli listpeers | grep -A 7 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada "pub_key": "032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada", "address": "5.189.141.242:9735", "bytes_sent": "6171020", "bytes_recv": "10269721", "sat_sent": "0", "sat_recv": "0", "inbound": false, "ping_time": "234567"

///

Should I disconnect then reconnect? If so, what debuglevel should I set prior to doing so and what entries should I grep for?

kiaraho avatar Jan 15 '19 08:01 kiaraho

Set debuglevel debug and reconnect. Interesting logs you can grep for are the channel points (825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e and fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4).

halseth avatar Jan 15 '19 14:01 halseth

So now I seem to be stuck in an LND roach motel, as lncli disconnect won't let me check out! Output from lncli pendingchannels is the same as before, with one pending_force_closing_channels and two waiting_close_channels. Limbo balance is unchanged.

///

lncli disconnect --node_key 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b [lncli] rpc error: code = Unknown desc = cannot disconnect from peer(02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b), all active channels with the peer need to be closed first

lncli disconnect --node_key 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada [lncli] rpc error: code = Unknown desc = cannot disconnect from peer(032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada), all active channels with the peer need to be closed first

lncli listchannels { "channels": [ ] }

grep 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b ~/.lnd/logs/bitcoin/mainnet/lnd.log | tail -n 5 2019-01-15 19:15:13.309 [INF] CRTR: New channel discovered! Link connects 02282cfc83d4e4ac088a654184be62d7de0be6298e83af39431f9598c8c5631c09 and 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b with ChannelPoint(c8fdd4f1e9e57f68ada64b8d00a0c4bb3b8642a4d61161efafdfd010ec0865a2:0): chan_id=612600600140906496, capacity=0.00317161 BTC 2019-01-15 19:15:13.315 [INF] CRTR: New channel discovered! Link connects 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b and 02c5371591b640da03f9a645e2ddfa5620d8537388b03ddd524d36766c0f550db0 with ChannelPoint(9b7d587ef135daabbc1039e401b86ff9a063252427c9c5bd035fb0589635e84a:1): chan_id=612440071376011265, capacity=0.003 BTC 2019-01-15 19:15:13.318 [INF] CRTR: New channel discovered! Link connects 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b and 03cfb64a81ad9b94e6f3fa2e34218c9242606890bbfb65a0bb57d603158e6c590c with ChannelPoint(cc88267b03a05a0d6059550f6ad8aaec1c196b9a7f72dc68fb7012930ebc47ce:0): chan_id=612615993258999808, capacity=0.00353752 BTC 2019-01-15 19:18:15.906 [DBG] RPCS: [disconnectpeer] from peer(02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b) 2019-01-15 19:30:50.100 [DBG] RPCS: [disconnectpeer] from peer(02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b)

grep 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada ~/.lnd/logs/bitcoin/mainnet/lnd.log | tail -n 5 2019-01-15 19:01:03.497 [INF] CRTR: New channel discovered! Link connects 024b8019795ec753fcdb1eb21ecd319bfab6a8b05e017f357dc5f052a181fb8c91 and 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada with ChannelPoint(18871533aec34e712053d661f7266c1f13f35f0e4b3bc8eda66cfe62ee747011:0): chan_id=582232088920064000, capacity=0.0002 BTC 2019-01-15 19:28:23.864 [DBG] RPCS: [disconnectpeer] from peer(032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada) 2019-01-15 19:30:51.862 [DBG] RPCS: [disconnectpeer] from peer(032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada) 2019-01-15 19:31:03.732 [INF] CRTR: New channel discovered! Link connects 02f3069a342ae2883a6f29e275f06f28a56a6ea2e2d96f5888a3266444dcf542b6 and 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada with ChannelPoint(2eb868dc242ce74f072abe9fab06c3a1823ce99b5b4ef156a3abf0dfc5109414:1): chan_id=592900650213703681, capacity=0.0002 BTC 2019-01-15 19:31:03.758 [INF] CRTR: New channel discovered! Link connects 02f3069a342ae2883a6f29e275f06f28a56a6ea2e2d96f5888a3266444dcf542b6 and 032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada with ChannelPoint(fcbf2a617b8165fb9d9c2d885bb0db24286f884acde2171bff05ec690f8e83e5:1): chan_id=605291046758973441, capacity=0.0002 BTC

grep 825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e ~/.lnd/logs/bitcoin/mainnet/lnd.log | tail -n 1 2019-01-15 19:33:37.095 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 10m0s.

grep fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4 ~/.lnd/logs/bitcoin/mainnet/lnd.log | tail -n 1 2019-01-15 19:33:37.129 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 10m0s.

kiaraho avatar Jan 15 '19 17:01 kiaraho

Try restarting lnd, and post the grepped logs after restart (up until the "no commit point").

halseth avatar Jan 15 '19 18:01 halseth

Stopped lnd, moved the existing lnd.log to a backup location, then restarted lnd so it creates a fresh lnd.log. Looks like older entries in the current lnd.log got overwritten, as I do not see what is usually the first line, Active chain: Bitcoin (network=mainnet). I've uploaded the contents of the current lnd.log up until the "no commit point", though I'm guessing lots of crucial debug messages got overwritten.

lnd-log_before_no-commit-point-found.txt

kiaraho avatar Jan 15 '19 21:01 kiaraho

Yeah, basically what I want to look for is after you connect to the peers, the channels will attempt to sync up. Here I expect the peer to not respond since they have closed the channel. If they respond with the commitment point then we might be able to recover the funds.

You can try increasing the saved logs size (take a look at lnd -h) so they don't get overwritten!

halseth avatar Jan 16 '19 09:01 halseth

Used the --maxlogfilesize=100 option to increase the log size so it won't get overwritten so quickly. Here is the grepped output for the three channel points (last 30 lines).

grep cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666 lnd.log | tail -n 30

2019-01-18 20:13:19.957 [DBG] CNCT: Starting ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0), htlc_set=(contractcourt.htlcSet) {
2019-01-18 20:13:19.957 [INF] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): starting state=StateWaitingFullResolution
2019-01-18 20:13:19.960 [INF] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): still awaiting contract resolution
2019-01-18 20:13:19.960 [INF] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): relaunching 1 contract resolvers
2019-01-18 20:13:19.961 [DBG] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): attempting to resolve *contractcourt.commitSweepResolver
2019-01-18 20:13:19.961 [DBG] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): contract *contractcourt.commitSweepResolver not yet resolved
2019-01-18 20:13:19.961 [DBG] CNCT: *contractcourt.commitSweepResolver(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): waiting for commit tx to confirm
2019-01-18 20:13:20.150 [INF] CNCT: *contractcourt.commitSweepResolver(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): waiting for commit sweep txid=3b6abf124da45c1a11f4811b21444586c2a3d720d1edcfdb1d8d03867da0788e conf
2019-01-18 20:15:04.452 [INF] UTXN: NurseryReport: building nursery report for channel cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0
2019-01-18 20:26:48.613 [INF] UTXN: NurseryReport: building nursery report for channel cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0

grep 825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e lnd.log | tail -n 30

2019-01-18 20:13:19.940 [DBG] CNCT: New ChainEventSubscription(id=0) for ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1)
2019-01-18 20:13:19.951 [DBG] CNCT: Starting chain watcher for ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1)
2019-01-18 20:13:19.951 [DBG] NTFN: Using height hint 537372 retrieved from cache for 825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1
2019-01-18 20:13:19.951 [INF] NTFN: New spend subscription: spend_id=2, outpoint=825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1, height_hint=537372
2019-01-18 20:13:19.957 [INF] CNCT: Close observer for ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) active
2019-01-18 20:13:19.960 [DBG] CNCT: Starting ChannelArbitrator(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1), htlc_set=(contractcourt.htlcSet) {
2019-01-18 20:13:19.961 [INF] CNCT: ChannelArbitrator(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1): starting state=StateCommitmentBroadcasted
2019-01-18 20:13:20.088 [INF] NTFN: Dispatching spend notification for outpoint=825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1 at height=559059
2019-01-18 20:13:20.088 [WRN] CNCT: Unprompted commitment broadcast for ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) 
2019-01-18 20:13:20.088 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 1s.
2019-01-18 20:13:20.107 [INF] CNCT: ChannelArbitrator(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1): noop trigger chainTrigger
2019-01-18 20:13:21.064 [DBG] LNWL: ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1), starting local commitment: (*lnwallet.commitment)(0xc0114b6000)({
    PreviousOutPoint: (wire.OutPoint) 825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1,
2019-01-18 20:13:21.066 [DBG] LNWL: ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1), starting remote commitment: (*lnwallet.commitment)(0xc010f3c000)({
    PreviousOutPoint: (wire.OutPoint) 825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1,
2019-01-18 20:13:21.066 [INF] PEER: NodeKey(02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b) loading ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1)
2019-01-18 20:13:21.066 [WRN] PEER: ChannelPoint(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) has status CommitmentBroadcasted, won't start.
2019-01-18 20:13:21.090 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 2s.
2019-01-18 20:13:23.090 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 4s.
2019-01-18 20:13:27.090 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 8s.
2019-01-18 20:13:35.093 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 16s.
2019-01-18 20:13:51.094 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 32s.
2019-01-18 20:14:23.097 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 1m4s.
2019-01-18 20:15:27.103 [ERR] CNCT: Unable to retrieve commitment point for channel(825f7a52a6ac12b40f5ae110baf00441a080bea290abcf403d2172eebe90126e:1) with lost state: no commit point found. Retrying in 2m8s.

grep fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4 lnd.log | tail -n 30

2019-01-18 20:13:19.940 [DBG] CNCT: New ChainEventSubscription(id=0) for ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1)
2019-01-18 20:13:19.951 [DBG] CNCT: Starting chain watcher for ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1)
2019-01-18 20:13:19.951 [DBG] NTFN: Using height hint 538170 retrieved from cache for fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1
2019-01-18 20:13:19.951 [INF] NTFN: New spend subscription: spend_id=1, outpoint=fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1, height_hint=538170
2019-01-18 20:13:19.957 [INF] CNCT: Close observer for ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) active
2019-01-18 20:13:20.107 [DBG] CNCT: Starting ChannelArbitrator(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1), htlc_set=(contractcourt.htlcSet) {
2019-01-18 20:13:20.107 [INF] CNCT: ChannelArbitrator(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1): starting state=StateCommitmentBroadcasted
2019-01-18 20:13:20.110 [INF] CNCT: ChannelArbitrator(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1): noop trigger chainTrigger
2019-01-18 20:13:20.160 [INF] NTFN: Dispatching spend notification for outpoint=fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1 at height=559059
2019-01-18 20:13:20.161 [WRN] CNCT: Unprompted commitment broadcast for ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) 
2019-01-18 20:13:20.162 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 1s.
2019-01-18 20:13:20.873 [DBG] LNWL: ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1), starting local commitment: (*lnwallet.commitment)(0xc010a44180)({
    PreviousOutPoint: (wire.OutPoint) fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1,
2019-01-18 20:13:20.875 [DBG] LNWL: ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1), starting remote commitment: (*lnwallet.commitment)(0xc010f22000)({
    PreviousOutPoint: (wire.OutPoint) fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1,
2019-01-18 20:13:20.875 [INF] PEER: NodeKey(032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada) loading ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1)
2019-01-18 20:13:20.876 [WRN] PEER: ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) has status CommitmentBroadcasted, won't start.
2019-01-18 20:13:21.165 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 2s.
2019-01-18 20:13:23.165 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 4s.
2019-01-18 20:13:27.169 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 8s.
2019-01-18 20:13:35.170 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 16s.
2019-01-18 20:13:51.169 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 32s.
2019-01-18 20:14:23.171 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 1m4s.
2019-01-18 20:15:27.174 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 2m8s.
2019-01-18 20:17:35.172 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 4m16s.

kiaraho avatar Jan 18 '19 18:01 kiaraho

If you restored from an old backup (which you should never do!), and the peers you were connected to either didn't support DLP (data loss protection), or the channel was closed before they were running 0.5.1, then they won't re-send the commitment point you need to sweep those funds. This was fixed in #1937. It's also the case that if you started with a stale backup, and broadcasted a revoked commitment, then the other party swept the funds. The channel (https://www.smartbit.com.au/tx/fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4) has been swept into the wallet, if you upgrade to master then if this hasn't confirmed yet we'll rebroadcast it with up to date fees.

Roasbeef avatar Jan 18 '19 21:01 Roasbeef

I had no choice but to restore from a backup due to disk failure on the affected node. I have two nodes running in a part of the world where power outages are not uncommon. Is #1937 merged in 0.5.2 because both my nodes are running 0.5.1? I'm assuming that is what you meant by upgrading to master.

kiaraho avatar Jan 18 '19 21:01 kiaraho

@kiaraho

Is #1937 merged in 0.5.2 because both my nodes are running 0.5.1? I'm assuming that is what you meant by upgrading to master.

No, that's not what he meant by upgrading to master. We don't have v0.5.2 and master is a different branch where the code is most uptodate and it might be able to fix your issue. This is how you do to get master on your terminal screen:

cd $GOPATH/src/github.com/lightningnetwork/lnd
git fetch
git checkout origin/master
make && make install

Restart LND.

molxyz avatar Jan 23 '19 02:01 molxyz

@molxyz, thanks for the clarification. I downloaded the LND binaries from https://github.com/lightningnetwork/lnd/releases/ instead of using Git. I'm assuming the most up to date code will eventually make its way into the next official release. If that is true, I can wait until those binaries are released.

kiaraho avatar Jan 23 '19 08:01 kiaraho

New version of LND is now released.

halseth avatar Feb 07 '19 15:02 halseth

Note that it is your channel peer that needs to update, and it probably won't work for old channels.

halseth avatar Feb 07 '19 15:02 halseth

I think this can be closed now as it's the role of DLP now (if possible) to remedy the situation?

Roasbeef avatar Feb 08 '19 00:02 Roasbeef

Updated to v0.5.2 and waited for the node to get synched to chain. Limbo balance remains unchanged. The two channels below still show up under waiting_close_channels. Will wait to see what happens.

grep cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666 lnd.log | tail -n 30

2019-02-08 14:41:36.444 [INF] UTXN: NurseryReport: building nursery report for channel cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0
2019-02-08 14:45:46.430 [DBG] CNCT: Starting ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0), htlc_set=(contractcourt.htlcSet) {
2019-02-08 14:45:46.430 [INF] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): starting state=StateWaitingFullResolution
2019-02-08 14:45:46.432 [INF] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): still awaiting contract resolution
2019-02-08 14:45:46.432 [INF] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): relaunching 1 contract resolvers
2019-02-08 14:45:46.433 [DBG] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): attempting to resolve *contractcourt.commitSweepResolver
2019-02-08 14:45:46.433 [DBG] CNCT: ChannelArbitrator(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): contract *contractcourt.commitSweepResolver not yet resolved
2019-02-08 14:45:46.433 [DBG] CNCT: *contractcourt.commitSweepResolver(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): waiting for commit tx to confirm
2019-02-08 14:45:46.570 [INF] CNCT: *contractcourt.commitSweepResolver(cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0): waiting for commit sweep txid=3b6abf124da45c1a11f4811b21444586c2a3d720d1edcfdb1d8d03867da0788e conf
2019-02-08 16:21:50.202 [INF] UTXN: NurseryReport: building nursery report for channel cbb1d6bdfa2d1197b13167e83c3b7e18feb410e8cbff02d0b5488e14cd1be666:0

grep fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4 lnd.log | tail -n 30

2019-02-08 14:45:46.240 [DBG] CNCT: Starting ChannelArbitrator(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1), htlc_set=(contractcourt.htlcSet) {
2019-02-08 14:45:46.241 [INF] CNCT: ChannelArbitrator(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1): starting state=StateCommitmentBroadcasted
2019-02-08 14:45:46.430 [INF] CNCT: ChannelArbitrator(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1): noop trigger chainTrigger
2019-02-08 14:45:46.504 [INF] NTFN: Dispatching spend notification for outpoint=fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1 at height=562158
2019-02-08 14:45:46.504 [WRN] CNCT: Unprompted commitment broadcast for ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) 
2019-02-08 14:45:46.504 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 1s.
2019-02-08 14:45:47.504 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 2s.
2019-02-08 14:45:49.505 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 4s.
2019-02-08 14:45:53.505 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 8s.
2019-02-08 14:46:01.505 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 16s.
2019-02-08 14:46:17.505 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 32s.
2019-02-08 14:46:49.506 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 1m4s.
2019-02-08 14:47:53.506 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 2m8s.
2019-02-08 14:49:37.293 [DBG] LNWL: ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1), starting local commitment: (*lnwallet.commitment)(0xc000da9ec0)({
    PreviousOutPoint: (wire.OutPoint) fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1,
2019-02-08 14:49:37.298 [DBG] LNWL: ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1), starting remote commitment: (*lnwallet.commitment)(0xc000b06840)({
    PreviousOutPoint: (wire.OutPoint) fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1,
2019-02-08 14:49:37.299 [INF] PEER: NodeKey(032b2b3f4abda9677bb9563e226c068d3a2456fb8b036635a81c9bcaa1671d1ada) loading ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1)
2019-02-08 14:49:37.299 [WRN] PEER: ChannelPoint(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) has status CommitmentBroadcasted, won't start.
2019-02-08 14:50:01.506 [ERR] CNCT: Unable to retrieve commitment point for channel(fe49e1cc7f146578a73a42bb371355e087d1b4e14764ca1cd485085d3e3665b4:1) with lost state: no commit point found. Retrying in 4m16s.

kiaraho avatar Feb 08 '19 16:02 kiaraho