-
Notifications
You must be signed in to change notification settings - Fork 895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried to pay but getting WIRE_TEMPORARY_CHANNEL_FAILURE #733
Comments
This will eventually be fixed by #638. Temporary channel failures should cause An issue not fixed by #638 is if one of your local channels is not in a useable state (not yet locked in, or already closing, or depleted) and routing decides to use it; currently the routing algorithm does not pay attention to local channel state (it should!). |
I think I lost $50. Reckless! But worth it. |
Hmm it should not happen money loss for #638. Can you give more detail why you think money loss? |
I had a channel open and made a lightning BOLT payment to Blockstream. The payment failed, hence, "WIRE_TEMPORARY_CHANNEL_FAILURE". I close the channel. Now the state of that channel says, "ONCHAIND_MUTUAL". I try to reopen the channel: cli/lightning-cli connect <node_id xxxx> < ip xxx > But I get this msg: channel ALL: lightning_closingd: bad reestablish msg: WIRE_PING 001200100000" So I have money stuck and I'm not sure what do do. Can you help? Thanks. Additional info: lightning_gossipd(12732): TRACE: hand_back_peer 035f1498c929d4cefba4701ae36a554691f526ff60b1766badd5a49b3c8b68e1d8: now local again |
Channel close is an onchain tx. You will have to wait for it onchain. Unfortunately this can take some time depending on congestion onchain. You got a mutual close, which is slightly cheaper and has no timelock, meaning you will be able to get the funds as soon as the closing tx confirms. We cannot show the txid of the close tx yet, because showing it on close is not yet implemented, see #714 and #622. We cannot accelerate it either yet, as we need some kind of CPFP+RBF, see #475. |
Ok. I will wait then. I managed to open another channel with a different node and bought a sticker and a t-shirt successfully. I should have not connected to a node called "RECKLESS" in the first place probably. |
Since the close was mutual you should get your funds back. Could you try |
I did a |
jimgolian try to comb your logs for a txid of the closing tx. It's also maybe in the sql db? |
Where is the log file? Not sure how to query sql db. I just did a |
The data should be in This is strange, it should be in |
Notice that the actual transaction ID will not be the same as the funding transaction ID, instead the funds will be listed under a the settlement TX ID or one of its children. |
Checked crash.log but nothing much in there. I am querying the sqlite database and see tables. Which table and columns should I be looking at for the transaction ID? I went through all of the tables and a lot of them have BLOB data I can't read easily. |
|
Here is the output of the SQL query: F478BD7753DABB2BA9CA961AD28EACD9BCF7B5D22839105E10927D041DCBBD05|1|2 |
Well, this is strage. I ran the command "listpeers" and the transaction with the missing funds showed up again as a peer. Just earlier today it was gone from the list, and now it is back. It still has a state of "ONCHAIND_MUTUAL". A command of "listfunds" reveals the bitcoin in the failed transaction has not been recovered yet. |
@jimgolian Has this gotten fixed? |
Been a while since I ran c-lightning, but I booted up my Linux box and checked. I did a cli/lightning-cli listpeers and still see the ONCHAIND_MUTUAL. |
Please update to the latest |
I updated by doing a 'git pull' and 'make'. I ran 'cli/lightning-cli listpeers'. I get: 1 ONCHAIN I no longer see ONCHAIND_MUTUAL. I did a 'cli/lightning-cli listfunds' and I see six channels with various amounts of 'channel_total_sat'. I see one output with status "unconfirmed". |
Great, thanks for checking @jimgolian. From the above output from the SQlite query I think the channel was the one created by the funding transaction |
Tried:
cli/lightning-cli pay lnbcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Getting this error...
lightningd(8817): Sending 201231786 over 2 hops to deliver 201230585
lightningd(8817): peer 035f1498c929d4cefba4701ae36a554691f526ff60b1766badd5a49b3c8b68e1d8: htlc 0 failed from 0th node with code 0x1007 (WIRE_TEMPORARY_CHANNEL_FAILURE)
lightningd(8817): Sending 201231786 over 2 hops to deliver 201230585
lightningd(8817): peer 035f1498c929d4cefba4701ae36a554691f526ff60b1766badd5a49b3c8b68e1d8: htlc 1 failed from 0th node with code 0x1007 (WIRE_TEMPORARY_CHANNEL_FAILURE)
lightningd(8817): Sending 201231786 over 2 hops to deliver 201230585
lightningd(8817): peer 035f1498c929d4cefba4701ae36a554691f526ff60b1766badd5a49b3c8b68e1d8: htlc 2 failed from 0th node with code 0x1007 (WIRE_TEMPORARY_CHANNEL_FAILURE)
The text was updated successfully, but these errors were encountered: