lnd: New channel with ACQIN is not active
Background
I tried to open a channel with ACQIN node and for some reason the channel is inactive. I do not know why, I can ping the ip address, but the channel remains inactive.
This is the command that I used to open the channel (It is in the history of the terminal:
lncli openchannel 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f 4500000 --sat_per_byte 1
Logs
Channel info
{
"active": false,
"remote_pubkey": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
"channel_point": "fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1",
"chan_id": "709134422426189825",
"capacity": "4500000",
"local_balance": "4477856",
"remote_balance": "0",
"commit_fee": "22144",
"commit_weight": "600",
"fee_per_kw": "30586",
"unsettled_balance": "0",
"total_satoshis_sent": "0",
"total_satoshis_received": "0",
"num_updates": "0",
"pending_htlcs": [
],
"csv_delay": 720,
"private": false,
"initiator": true,
"chan_status_flags": "ChanStatusDefault",
"local_chan_reserve_sat": "45000",
"remote_chan_reserve_sat": "45000",
"static_remote_key": false,
"commitment_type": "LEGACY",
"lifetime": "29761",
"uptime": "29636",
"close_address": "",
"push_amount_sat": "0",
"thaw_height": 0,
"local_constraints": {
"csv_delay": 720,
"chan_reserve_sat": "45000",
"dust_limit_sat": "573",
"max_pending_amt_msat": "20000000000",
"min_htlc_msat": "1",
"max_accepted_htlcs": 30
},
"remote_constraints": {
"csv_delay": 540,
"chan_reserve_sat": "45000",
"dust_limit_sat": "546",
"max_pending_amt_msat": "4455000000",
"min_htlc_msat": "1",
"max_accepted_htlcs": 483
}
},
Related logs:
2020-08-18 14:10:47.304 [INF] CNCT: Creating new ChannelArbitrator for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-18 14:10:47.310 [INF] CNCT: ChannelArbitrator(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=644278
2020-08-18 14:10:47.310 [INF] NTFN: New spend subscription: spend_id=70, outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, height_hint=644278
2020-08-18 14:10:47.310 [INF] NTFN: Dispatching historical spend rescan for outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, start=644278, end=644278
2020-08-18 14:10:47.409 [INF] FNDG: Finalizing pending_id(35f3ea5996ea9db81d6f417bbe18d4ad660903077fa9d01a53c12f1cfa8d6e4b) over ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1), waiting for channel open on-chain
2020-08-18 14:10:47.410 [INF] CNCT: Close observer for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) active
2020-08-18 14:10:47.426 [INF] NTFN: New confirmation subscription: conf_id=3, txid=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a, num_confs=3 height_hint=644278
2020-08-18 14:10:47.426 [INF] FNDG: Waiting for funding tx (fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a) to reach 3 confirmations
2020-08-20 16:27:20.181 [WRN] FNDG: ChainNotifier shutting down, cannot complete funding flow for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-20 16:27:20.198 [ERR] FNDG: Unable to advance pending state of ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): error waiting for funding confirmation for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): waiting for fundingconfirmation failed
2020-08-20 17:05:23.357 [INF] NTFN: New spend subscription: spend_id=26, outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, height_hint=644578
2020-08-20 17:05:23.358 [INF] NTFN: Dispatching historical spend rescan for outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, start=644578, end=644581
2020-08-20 17:05:26.763 [INF] CNCT: Close observer for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) active
2020-08-20 17:05:29.737 [INF] CNCT: ChannelArbitrator(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=644581
2020-08-20 17:08:52.045 [INF] NTFN: New confirmation subscription: conf_id=3, txid=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a, num_confs=3 height_hint=644578
2020-08-20 17:08:52.045 [INF] FNDG: Waiting for funding tx (fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a) to reach 3 confirmations
2020-08-20 17:08:53.642 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-20 17:08:59.313 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-20 17:08:59.314 [WRN] PEER: Unable to find our forwarding policy for channel fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, using default values
2020-08-21 06:03:00.297 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-21 07:59:18.030 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 07:08:14.527 [INF] LNWL: Marking unconfirmed transaction fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a mined in block 644954
2020-08-23 07:12:34.320 [INF] NTFN: Dispatching 3 confirmation notification for txid=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a
2020-08-23 07:12:34.332 [INF] FNDG: ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) is now active: ChannelID(1ac1bd8a3e2b2828e0c4603d8db99ce177ed811410913b1e2c4fa10797132bfa)
2020-08-23 07:12:36.404 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 07:12:36.674 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 07:12:37.647 [INF] NTFN: New confirmation subscription: conf_id=7, txid=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a, num_confs=6 height_hint=644954
2020-08-23 07:34:03.073 [INF] NANN: Announcing channel(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) disabled [detected]
2020-08-23 07:41:01.649 [INF] NTFN: Dispatching 6 confirmation notification for txid=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a
2020-08-23 07:41:01.651 [INF] FNDG: Announcing ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1), short_chan_id=644954:695:1
2020-08-23 14:10:59.416 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-23 14:10:59.418 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-23 16:37:11.737 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 19:18:20.788 [INF] NTFN: New spend subscription: spend_id=51, outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, height_hint=645016
2020-08-23 19:18:20.789 [INF] NTFN: Dispatching historical spend rescan for outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, start=645016, end=645036
2020-08-23 19:18:26.576 [INF] CNCT: Close observer for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) active
2020-08-23 19:18:27.347 [INF] CNCT: ChannelArbitrator(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=645036
2020-08-23 19:21:47.777 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 19:21:57.479 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 19:23:51.796 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-23 19:23:51.799 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-23 21:36:16.908 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-23 23:57:08.842 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-24 01:14:00.737 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 01:14:00.739 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 01:23:36.197 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 01:23:36.199 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 05:16:56.710 [INF] NTFN: New spend subscription: spend_id=29, outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, height_hint=645098
2020-08-24 05:16:56.710 [INF] NTFN: Dispatching historical spend rescan for outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, start=645098, end=645100
2020-08-24 05:16:59.396 [INF] CNCT: Close observer for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) active
2020-08-24 05:17:02.903 [INF] CNCT: ChannelArbitrator(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=645100
2020-08-24 05:17:06.840 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-24 05:17:14.264 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 05:17:14.265 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 10:04:26.067 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-24 10:04:26.068 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-28 03:10:06.757 [INF] NTFN: New spend subscription: spend_id=33, outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, height_hint=645282
2020-08-28 03:10:06.757 [INF] NTFN: Dispatching historical spend rescan for outpoint=fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1, script=0 6e52b92e00d423495dcfd2702f1598c637363a0ced0450deef37b83a941937d9, start=645282, end=645632
2020-08-28 03:10:11.156 [INF] CNCT: Close observer for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) active
2020-08-28 03:10:13.434 [INF] CNCT: ChannelArbitrator(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=645632
2020-08-28 03:16:52.656 [WRN] CHBU: Replacing disk backup for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1) w/ newer version
2020-08-28 03:18:55.994 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-28 03:18:56.002 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-28 07:34:29.615 [INF] PEER: NodeKey(03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f) loading ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
2020-08-28 07:34:29.681 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(fb2b139707a14f2c1e3b91101481ed77e19cb98d3d60c4e028282b3e8abdc11a:1)
You can see that the channel can not be seen at 1ml
Your environment
lnd version 0.11.0-beta commit=v0.11.0-beta
Linux rock64 4.4.132-1075-rockchip-ayufan-ga83beded8524 #1 SMP Thu Jul 26 08:22:22 UTC 2018 aarch64 GNU/Linux
@t-bast maybe you can also have a look from your side?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (28 by maintainers)
Good to know you’ve been able to recover the funds!
I think the root cause is still there, and is a small bug in lnd: lnd sometimes sends
funding_lockedbeforechannel_reestablish, which is a spec violation and causes eclair to ignore messages. We’ve created a somewhat hacky mitigation in eclair (https://github.com/ACINQ/eclair/pull/1563) but AFAIK lnd <-> c-lightning will also have this issue, so it’s worth keeping an issue open until that is fixed.thanks @guggero and @t-bast , I’m waiting for a new machine. (intel 4670). Once it will arrive I’ll try the suggested solutions. THanks
Also in the future, please stick to using paste bins for logs so they don’t consume so much space in issues.
So turns out this is related to #4006 and might require some larger changes to properly fix. In the short term, we’re looking to see if there’s anything incremental we can do in this area.
Sorry I mistyped here, it’s normal that lnd sends no
FundingSigned, only the fundee is sending that message, I meantFundingLockedbut I found it 5 days later when the transaction confirmed.I’ve been digging through our logs over a longer period of time, and it seems like the issue is somehow linked to
ChannelReestablish:It looks like we never receive a
ChannelReestablish(but we have sent one at time2020-08-20 17:08:59,225). This causes us to drop theFundingLockedmessage and then end up considering that the channel never completed the funding flow.Can you check your logs around times
2020-08-20 17:08:59,225(where we send aChannelReestablish) and2020-08-23 07:12:36,149(where you send aFundingLocked)? We need to understand if there is an issue where lnd isn’t sending aChannelReestablishwhere it should, or whether it’s correctly sent but it’s lost on our side (or lost in-flight).I suspect that this could be an issue with reconnection handling somewhere… Or could it be related to what @Roasbeef said about lnd forgetting the channel after 2 days? Could it be the reason why lnd doesn’t send a
channel_reestablish(it seems a bit surprising since lnd does send thefunding_locked, but maybe that’s an area to investigate).Interesting, I don’t know what these errors internally mean to lnd…let’s see what the experts say 😉
If you connect to the peer manually does the channel flip to active?