-
Notifications
You must be signed in to change notification settings - Fork 906
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
AWAITING_UNILATERAL:Attempting to reconnect #2637
Comments
It seems it's the same problem, my node was down for some time. I lost around half of my channels ("normally" closed) and half of the current channels staying in AWAITING_UNILATERAL state since days. I have no log files. |
Yeah it seems to be the same, can you check if the nodes which unilateraly closed the channel are lnd nodes ? |
How i can do that? |
Some node owner fill up information about their nodes on some explorers (like https://1ml.com/node/02809e936f0e82dfce13bcc47c77112db068f569e1db29e7bf98bcdd68b838ee84), if you are lucky some of misbehaving nodes you were connected to did too |
Yes, most of the nodes are lnd nodes. Direction is also 0 on every node. |
Ok, your issue seems to be quite the same as the one I mentionned above (2462). |
For some test i have set the channel state from AWAITING_UNILATERAL to CLOSINGD_SIGEXCHANGE and i got this messages: chan #1392: Peer internal error CLOSINGD_SIGEXCHANGE: Can't start closing: no remote info What means "Cannot broadcast our commitment tx: they have a future one"? |
Lightning BOLT spec has the If the peer can prove that it has X+1 or greater, then we know "they have a future one". Now, there seems to be some bug in the interoperation of this |
Yes, it seems there is a bug, but how to get sail around this bug if the remote nodes don't update there software? I'm currently in a deadlock and can't close the channels. |
The "attempting to reconnect" is something we always do on peers we have channels with, including those in half-closed states where we are awaiting transactions to hit the blockchain. Probably we simply neglected to update the billboard after connecting to the peer, to something like "still awaiting unilateral close transaction to hit blockchain" or some such. |
I have this very same issue. Exact symptoms and values as OP. Been looking for a fix, also wondering if blockchain congestion is the reason for the channel sitting in AWAITING_UNILATERAL forever. |
As stated above by ZmnSCPxj it might be, though fees are high for unilateral close transactions. Another reason (also stated above) can be that you disconnected from the peer or shut down lightningd while waiting for the unilateral close : |
I never actually checked the status of my channels before I shut down my lightningd node. Now I know better and to look at channel status before updating my lightning installation. Edit: |
It should recover automatically. It just takes time. First the unilateral close has to get confirmed, then you have to wait for the delay imposed by the channel counterparty. |
Has this been satisfied already? Can we now close this? |
Something is complete broken. The remote node is offline since some weeks and i can't close the channel. There is an error message "Cannot broadcast our commitment tx: they have a future one" and the channel goes into the "AWAITING_UNILATERAL" state. And now the channel will stay in "AWAITING_UNILATERAL" forever??? Is this normal? 2019-07-05T09:40:22.743Z UNUSUAL lightningd(27657): xxx chan #13575: Peer permanent failure in CHANNELD_SHUTTING_DOWN: Forcibly closed by 'close' command timeout |
Yeah I agree this is a big problem. I've left my node on for a month in this state with no change. The one channel my node has open has been in AWAITING_UNILATERAL for at least a month. |
The broken message is important --- the root cause is some problem with |
Yes, it is a lnd node. |
Okay, unfortunately I am ignorant of how |
There are around 15 channels with a negligible amount. I think i can set the channel back to normal in the database because the broadcast failed and the remote node is offline, maybe forever. |
You could try looking in a blockchain explorer? In general C-Lightning is continuously monitoring the UTXO of every channel and will trigger So it is likely a nonde-to-onde intercommuncation failure at some point, likely due to previous (?) incompatibility with lnd regarding |
FWIW I ran into this too after a power outage (state |
Hello there! Seems to be the same problem here. the channel info (from
None of the txids are on-chain, and they were replaced with Here is what did not help (I guess my node does not know about the closing transaction of that channel):
Technical question: Is there any chance of recovering those sats? None of the txids mentioned in the |
@darosior is there a chance that the other side would have the raw transaction in their logs/database? Why would they if the channel close is initiated from my side? |
Realizing the transaction was never realized, I just did a |
I've noticed I have a few channels stuck in this state as well. All from over 10 months ago, when I had some disk issues. Is there any way to manually broadcast a unilateral close with whatever latest state my node has? 3/4 of the channels are with permanently dead peers with all the funds on my side. I'm fine risking a punishment transaction from the other side (very unlikely, considering they appear to be gone for over a year). These are very old channels without option_static_remotekey. |
@mb300sd have a look at #2637 (comment) and see this down there: # Run it on a free-standing copy of `lightningd.sqlite3` file
# not the one currently used by `lightningd`
# Gets all raw transactions the lightning node knows about and broadcasts them
sqlite3 lightningd.sqlite3 "SELECT HEX(rawtx) FROM transactions;" \
while read line
do bitcoin-cli sendrawtransaction "$line"
done Would that help? |
I'm running postgres, but I did browse through the db and didn't find anything related to those channels. I did find a dev-sign-last-tx, which did appear to do something - it signed a tx spending the funding output from the channel, seemingly to myself. But now I have these errors, and the output does not appear in listunspent. Does anyone know where the btc went? It was my own node that broadcast the "unknown spend". 2021-07-27T09:13:31.715Z INFO xxxxxxxxxx-chan#xxxxxx: State changed from FUNDING_SPEND_SEEN to ONCHAIN |
So the dev-sign-last-tx led to lost funds, thankfully I tested it on a very small channel. I still can't figure out where they went, since that peer was dead for months so it's very unlikely they could claim a cheating tx. I solved my stuck large channels by going into the db and changing channel state. That caused lightningd to try to reconnect to the peer while they were online and fail the channel properly. |
For those who are in the same trouble like me. Like @mb300sd said, I ve changed the state on my own
:) |
After a little downtime of my node i have channels in AWAITING_UNILATERAL state since days.
Some channels are connected to the remote node:
"connected" : true
and the state is still:
"status" : [
"AWAITING_UNILATERAL:Attempting to reconnect"
],
What happens here? Is there any way to close the channel?
The text was updated successfully, but these errors were encountered: