You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, that's likely the issue, we never get a funding locked, so we can't proceed. The remote node may be faulty. Not much we can do on our side, other than just dev-failing it 😞
Hard to say @daldwinc, it could recover, but it seems unlikely, it seems you are connected to the peer ("connected": true on both peers, that could have been another issue. It could be either an incompatibility between the clients (I hope not...) or the peer simply is lagging behind on the blockchain.
@fixone do the logs contain a hex encoded transaction? IIRC onchaind will spawn once that unilateral close transaction gets confirmed and it'll also move the state forward.
@daldwinc : the secret lies in jq, which comes in handy when dealing with json output on the command line. And ofc can be used to automate stuff, for instance
list all visible nodes with id, IP and port (just right for connect)
@cdecker once the dev-fail transaction (in the example above 9c4306b8c128e97a8195f0c2689d78793263e9813aa0593baf5d5edee19cfffc) is propagated, it needs the 144 confirms until the funds show back up, right?
Maybe we should have a timeout between funding tx confirmation to receive of funding_locked, then automatically fail the channel if no funding_locked from peer? This will at least reduce our risk from faulty peers.
I think I am currently on the "bad" side of such a channel, with C-Lightning: I have a channel that stays on CHANNELD_AWAITING_LOCKIN while it already has 12+ confirms. When I grep for funding_locked, I get (for the relevant channel):
Correct me if I'm wrong, but I think this means my peer told me it got locked, but I haven't said the same yet.
Could it be because I'm still getting loads of "Adding block ..." messages in the log? It has been running like that since the morning, and based on the block height it's at now, it won't be finished until the evening. I'll probably shut down my node before that; it'll probably restart the next day.
@bitonic-cjp yes, you need to be up to date with the blockchain, it should start rescanning at the height you created the first channel, but there are some corner cases in which the rescan height seems to be reset to 0. What blockheight is it currently adding?
Activity
cdecker commentedon Feb 21, 2018
Can you grep the logs for
funding_locked? You should have received one (peer_in) and sent one (peer_out).fixone commentedon Feb 22, 2018
Here are all the occurences of funding locked
I have multiple channels and for reference here's the full listpeers
fixone commentedon Feb 22, 2018
The relevant lines seem to be these, right?
but there's not "Got funding_locked" for this peer
cdecker commentedon Feb 22, 2018
Yeah, that's likely the issue, we never get a funding locked, so we can't proceed. The remote node may be faulty. Not much we can do on our side, other than just
dev-failing it 😞daldwinc commentedon Feb 22, 2018
Unfortunately, this just happened to me as well. One is a channel that I opened, and one is a channel that was opened by the peer.
@cdecker if there is no "got funding_locked" for the peers, is there any point in waiting or has it failed permanently?
... and off-topic, why does @fixone have such well-formatted output and mine looks like mashed potatoes?
cdecker commentedon Feb 22, 2018
Hard to say @daldwinc, it could recover, but it seems unlikely, it seems you are connected to the peer (
"connected": trueon both peers, that could have been another issue. It could be either an incompatibility between the clients (I hope not...) or the peer simply is lagging behind on the blockchain.fixone commentedon Feb 22, 2018
easier said than done, dev-fail seems to do nothing
and listpeers shows it still there
cdecker commentedon Feb 22, 2018
@fixone do the logs contain a hex encoded transaction? IIRC onchaind will spawn once that unilateral close transaction gets confirmed and it'll also move the state forward.
fixone commentedon Feb 22, 2018
yes, there's
2018-02-22T18:12:39.778Z lightningd(32119): 0214187473a79a4f32590f645481a944ac7507cb7801d6cfa0671be4e17806e109 chan #8: Peer internal error CHANNELD_AWAITING_LOCKIN:
2018-02-22T18:12:39.778Z lightningd(32119): 0214187473a79a4f32590f645481a944ac7507cb7801d6cfa0671be4e17806e109 chan #8: ... Failing due to dev-fail command
2018-02-22T18:12:39.778Z lightningd(32119): 0214187473a79a4f32590f645481a944ac7507cb7801d6cfa0671be4e17806e109 chan #8: Peer permanent failure in CHANNELD_AWAITING_LOCKIN: Internal error
2018-02-22T18:12:39.778Z lightningd(32119): (tx 9c4306b8c128e97a8195f0c2689d78793263e9813aa0593baf5d5edee19cfffc)
2018-02-22T18:12:39.778Z lightningd(32119): sendrawtransaction: 02000000000101378665a398c29da53192215f4b2949f6b853f624ee2a590a56392e366a5155860000000000756e988001c9959800000000002200204dfb1
12695b3a28bf7434f1aed58afde2a1e2a00c6e386a343027448544ade1c040047304402205443257d9805f5e1af2601f185c4ac10cd2cb8a9eb9c67376a6b8a768cecc8d902202e79bf2328032dfee2af25d9e79fdba7e718fc74e687d4b3
585a78023afd09c701473044022047d0a1e0ecdadbfad06901c50c0ce195edcc433f695df9bf1722a83044faef3502202fb9dd420d3239983a83a271b1032b9fe2a2fc74ee47e85882b4b1495ac5e46201475221029a6fef726214297e114
9d59fc27580a073eb89e5c477df81da112a663418fa922103bf1356133eeabcdd5e3c4ce987c83597d66706a6f703af1067e871705d64fb5952aef33c8720
2018-02-22T18:12:39.779Z lightningd(32119):jcon fd 16: Success
@daldwinc : the secret lies in jq, which comes in handy when dealing with json output on the command line. And ofc can be used to automate stuff, for instance
list all visible nodes with id, IP and port (just right for connect)
or getting a simplified output (just {peer} is in {state}
fixone commentedon Feb 22, 2018
@cdecker once the dev-fail transaction (in the example above 9c4306b8c128e97a8195f0c2689d78793263e9813aa0593baf5d5edee19cfffc) is propagated, it needs the 144 confirms until the funds show back up, right?
cdecker commentedon Feb 22, 2018
@fixone yeah,
listpeersshould list the channel asONCHAIND_OUR_UNILATERAL, right? It should be done in 144 blocks 👍Alex-CodeLab commentedon Feb 23, 2018
Can confirm. I have a similar situation. Both sides of the channel have recent c-lightning (both mine), and show the same info :
[update: no change after 144+ blocks ]
ZmnSCPxj commentedon Feb 23, 2018
Maybe we should have a timeout between funding tx confirmation to receive of
funding_locked, then automatically fail the channel if nofunding_lockedfrom peer? This will at least reduce our risk from faulty peers.bitonic-cjp commentedon Feb 23, 2018
I think I am currently on the "bad" side of such a channel, with C-Lightning: I have a channel that stays on CHANNELD_AWAITING_LOCKIN while it already has 12+ confirms. When I grep for funding_locked, I get (for the relevant channel):
Correct me if I'm wrong, but I think this means my peer told me it got locked, but I haven't said the same yet.
Could it be because I'm still getting loads of "Adding block ..." messages in the log? It has been running like that since the morning, and based on the block height it's at now, it won't be finished until the evening. I'll probably shut down my node before that; it'll probably restart the next day.
cdecker commentedon Feb 23, 2018
@bitonic-cjp yes, you need to be up to date with the blockchain, it should start rescanning at the height you created the first channel, but there are some corner cases in which the rescan height seems to be reset to 0. What blockheight is it currently adding?
fixone commentedon Feb 23, 2018
one other issue that I've encountered is that for instance I have one peer like this
but the funding tx doesn't seem to have been sent. Is there a way to re-broadcast it?
cdecker commentedon Feb 23, 2018
@fixone please create a new issue if it is different enough from the original issue, otherwise these get really hard to follow along.
Do you happen to have the logs of the node while it was opening the channel? It'll contain the transaction as hex which can then be broadcast.
fixone commentedon Feb 24, 2018
the state is similar, but reason totally different. Will open a new issue