Repository navigation
Closed
Labels
Description
Issue and Steps to Reproduce
I have a sync error on reconnect to an lnd node. The channel is completely unused, so I suspect
option_dataloss_protect is the culprit (since disabled, you'll need --enable-experimental to test it).
2018-12-07T06:20:24.912Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: pid 30165, msgfd 35
2018-12-07T06:20:28.937Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Handed peer, entering loop
2018-12-07T06:21:08.837Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_out WIRE_OPEN_CHANNEL
2018-12-07T06:21:09.284Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_in WIRE_ACCEPT_CHANNEL
2018-12-07T06:21:09.734Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: signature 304402207a0e9b3e28ecd40a0be9006a2e81e0fd39c8bfb84a7d0ec5a7af228a9957fbfa0220071c6652b86fc43ea73aa747a726f81d7c6962032c01d1e18b96e74f0f81d568 on tx 0200000001388b653e433773d20d74a151c552df647b74e240ef983d21a6d6c5816523b8590100000000af1f0980014cd9160000000000160014822a48ae44fdf55fdb13bc5d8bde3bb2cc50635ca438cf20 using key 0375e302a83bed1ba6d5ec27bcb791610e2758c68ce3a591bc25bdf02f177ad3ce
2018-12-07T06:21:09.740Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_out WIRE_FUNDING_CREATED
2018-12-07T06:21:10.181Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_in WIRE_FUNDING_SIGNED
2018-12-07T06:21:10.559Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: UPDATE WIRE_OPENING_FUNDER_REPLY
2018-12-07T06:21:10.561Z lightningd(1215): lightning_openingd-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: UPDATE WIRE_OPENING_FUNDER_REPLY
2018-12-07T06:21:11.133Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: pid 30185, msgfd 39
2018-12-07T06:21:13.738Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: init LOCAL: remote_per_commit = 0278a01694dc59b181af7ace3bafbb81a62f8f175c7c69be4fb0917d04169b7ce2, old_remote_per_commit = 0278a01694dc59b181af7ace3bafbb81a62f8f175c7c69be4fb0917d04169b7ce2 next_idx_local = 1 next_idx_remote = 1 revocations_received = 0 feerates 3564/3564 (range 253-48270)
2018-12-07T06:26:09.960Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Failed reading header: Success
2018-12-07T06:26:09.967Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Peer connection lost
2018-12-07T06:26:09.967Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Status closed, but not exited. Killing
2018-12-07T06:26:09.977Z lightningd(1215): 0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Peer transient failure in CHANNELD_AWAITING_LOCKIN: lightning_channeld: Owning subdaemon lightning_channeld died (9)
2018-12-07T06:41:26.091Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: pid 31246, msgfd 28
2018-12-07T06:41:41.958Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: init LOCAL: remote_per_commit = 0278a01694dc59b181af7ace3bafbb81a62f8f175c7c69be4fb0917d04169b7ce2, old_remote_per_commit = 0278a01694dc59b181af7ace3bafbb81a62f8f175c7c69be4fb0917d04169b7ce2 next_idx_local = 1 next_idx_remote = 1 revocations_received = 0 feerates 3564/3564 (range 253-48280)
2018-12-07T06:41:42.707Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_out WIRE_CHANNEL_REESTABLISH
2018-12-07T06:41:42.964Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_in WIRE_CHANNEL_REESTABLISH
2018-12-07T06:41:42.993Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Got reestablish commit=1 revoke=0
2018-12-07T06:41:43.020Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_out WIRE_FUNDING_LOCKED
2018-12-07T06:41:43.021Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: next_remote_revocation_number = 0
2018-12-07T06:41:43.025Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: option_data_loss_protect: fields are correct
2018-12-07T06:41:43.212Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Trying commit
2018-12-07T06:41:43.224Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Can't send commit: nothing to send
2018-12-07T06:41:43.466Z lightningd(1215): lightning_channeld-0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: peer_in WIRE_ERROR
2018-12-07T06:41:43.707Z lightningd(1215): 0219c2f8818bd2124dcc41827b726fd486c13cdfb6edf4e1458194663fb07891c7 chan #2508: Peer permanent failure in CHANNELD_AWAITING_LOCKIN: lightning_channeld: received ERROR channel 388b653e433773d20d74a151c552df647b74e240ef983d21a6d6c5816523b858: sync error
getinfo output
{
"id": "024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605",
"alias": "BLUEIRON-v0.6.2-20-g7e73ea7",
"color": "024b9a",
"address": [
{
"type": "ipv4",
"address": "128.199.202.168",
"port": 9735
},
{
"type": "ipv6",
"address": "2400:6180:0:d0::5cd2:a001",
"port": 9735
},
{
"type": "torv2",
"address": "g4nahmc5aq73qdol.onion",
"port": 9735
}
],
"binding": [
{
"type": "ipv6",
"address": "::",
"port": 9735
},
{
"type": "ipv4",
"address": "0.0.0.0",
"port": 9735
}
],
"version": "v0.6.2-20-g7e73ea7",
"blockheight": 553455,
"network": "bitcoin",
"msatoshi_fees_collected": 17297
}
Activity
niftynei commentedon Jan 5, 2019
Confirmed that the
sync errormessage from lnd is indeed aoption_data_loss_protectmismatch bug.niftynei commentedon Jan 5, 2019
LND expects the original
next_remote_revocation_numberto be 0; c-lightning defaults to 1.Per my understanding of the spec, c-lightning is incorrect. Fix incoming...
mmvphil commentedon Jan 5, 2019
Glad to see this issue was not dropped.. :)
Sory Deck.. Didn't mean to be rude opening another issue but until just now I did not see where we were at. Be nice if I could refer people to a 'c-lightn android wallet' but as far as I know LND version BLW is the only one that both sends and receives.
Again guys thanks for the efforts.
Iwson commentedon Jan 21, 2019
I still cant open channel from wallet to another c-lightning node.
akumaigorodski commentedon Jan 24, 2019
@Iwson as far as I know
data-loss-protectfeature is currently disabled by default in CL while while BLW requires a peer to have it, hence an error message.If you have an access to remote CL you can recompile it with
./configure --enable-experimental-features(@rustyrussell please correct me if I'm wrong here, perhaps this should not be done at all yet due to LND incompatibility).Iwson commentedon Jan 24, 2019
Thank you, I will try.
niftynei commentedon Jan 25, 2019
The latest
masterhasoption_data_loss_protectenabled by default as of #2283NicolasDorier commentedon Jan 28, 2019
@niftynei did the origin problem which was the reason why it was disabled in 0.6.3 got solved?
What is the impact of the bug reported by @rustyrussell on this post here if we enable
option_data_loss_protect?Because right now, because the majority of LN implementation require
option_data_loss_protect, CLightning can't connect anywhere. I am tempted to use./configure --enable-experimental-features, because anyway CLightning is unusable without it, enabling the broken implementation still seem an improvement over the situation.Enable experimental feature (workaround ElementsProject#2170)
niftynei commentedon Jan 29, 2019
@NicolasDorier so the net result is that I wasn't able to get the bug to replicate. We're turning it back on since we've tightened up the
data_losschecking on our side and verified that it works as intended. In the course of investigating, I discovered another bug that also causes lnd/c-lightning channel closures intermittently. Currently working on a fix.If you can get a replication and send us the logs, that'd be super helpful.
rustyrussell commentedon Apr 13, 2019
This was fixed in #2275