[recovery]: channels in Limbo after restore #8283
-
BackgroundAfter our Server crashed and the datapool got corrupted, we stored our btcpay-server from a two day told backup. After the node was beeing startet, our channels were gone and been put into "waiting close" according to rtl All channel funds from my side are stuck in Limbo. The state after two ours is still "waiting close" Your environment
root@btcpay:~/btcpayserver-docker# bitcoin-lncli.sh pendingchannels
part of lnd logs:
can anyone help me to recover the funds because im quiet nervous as we have quiet some sats in those channels.. Goal Additional Infos, as far as i know, the channel balances are still the same today as the two day old backup. Can anyone suggest what to do? |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 16 replies
-
Restoring from a file based backup is BAD, very BAD, basically the worst thing you can do in this situation: https://github.com/lightningnetwork/lnd/blob/master/docs/safety.md#file-based-backups Do not under any circumstances force close any channels, Shut down that |
Beta Was this translation helpful? Give feedback.
-
Damn it, i didnt know this can go wrong, as restoring from an backup that was an day old never made problems :( i didnt know about this. I am stupid and not well prepared I see :( I got an replication from HA enviroment this morning, destroyed this old container and created a new container with a replication from arround 01.30 this morning. Is if any use if i go online with that state? If no i will try to do this SCB thing? |
Beta Was this translation helpful? Give feedback.
-
I just want to be sure, on my exit server, all i need to do is
just wait for the right time because of the fees? Will i be asked for a fee rate or is it automatic? I guess i pay those fees completly as its my fault in that situation? maybe you could say a thing if i could try coming online with a more recent backup from this morning (01.30AM) its 15.00 here now. |
Beta Was this translation helpful? Give feedback.
-
i dont want to argue or question what you say, but why do I have to do this from a fresh install? can I also just remove the lnd docker container, install the LND docker again and the replace files in
if yes, all files? to make things clear, im worried to create a new btcpay server install and replace those files, I dont want to fuck up things more as they are. I just wanna be sure everything goes well. PS: ich bin us de schwiiz, vielleicht magsch mir persönlich helfe, bin es bitz nervös :( |
Beta Was this translation helpful? Give feedback.
-
just remove channel.db and then use the recovery commands? what about the rest: 803dcb2a92e0:/data/data/chain/bitcoin/mainnet# ls -l
sorry i know you have deserved your weekend. Just let me know if you have time to verify: just delete channal.db use does it matter which files of channel.back i use? i guess no? i have this one from today, and the one from two days ago viele viele dank für dini müe!! |
Beta Was this translation helpful? Give feedback.
-
PS no im reading the docs but its not so clear what i have to do in case of such accidents. I didnt do this on purpose. And also i didnt know if i can do this on the exisiting server, or on a fresh install. |
Beta Was this translation helpful? Give feedback.
-
okay thanks, ill set the command when the fees are lower. Ill let you know if it worked out. |
Beta Was this translation helpful? Give feedback.
-
@guggero |
Beta Was this translation helpful? Give feedback.
-
There are transactions: But your node won't see or react to them until they confirm (because of the recovery mode). The errors you see in the log are to be expected, |
Beta Was this translation helpful? Give feedback.
-
thank you @guggero i suceeded to install the pullanchor PR but im still afraid to use this command as I am not 100%sure what those
Am I right with the follwing: the command asks me fore the --values?
Example Transaction one: https://mempool.space/tx/72afc30a1f0ac97dda6b48536160eb9971f479555344dbbd8e62e571036d003d sponsor input --> cd683b142301b8a2fbe2edf852d9d43a0b35c0f1a565bab92cb8c6a88d0e0ff5:0 (utxo from my lndwallet) Example Transaction two: same but what is the anchor addresse? it has two? https://mempool.space/tx/ec211576e526c6f44509ede7d96ca319c49afb60f2bbc30c3f78e55c350d87e3 Example 3 this channel:
I didnt find the transaction ID of the force close yet, how did you find those? can those be extracted from where? Sorry for those many questions, i really dont want to mess anything up :( thanks and happy, calming and relaxing christmas days Oliver! |
Beta Was this translation helpful? Give feedback.
-
as far as i understand thist:
so Ill just give it a try, maybe you can help me how to use the command properly because I have trouble to understand the syntax and how to find the txID of the last channel |
Beta Was this translation helpful? Give feedback.
-
i forced myself to just do it, and i know how the tool works now, but im asking myself why i should use a utxo that is higher then 84671sats? |
Beta Was this translation helpful? Give feedback.
-
update: ive found out why channel number two ist not im mempool, so I wrote the owner of it directly if they could manually close it. theres one last question left. When I enter feerate of lets say 100sats/vbyte, chantool sents me:
so thats arround 85k sats. (100x676 plus 16900 ~84500sats. Why is the size of this transaction so high? is it possible that i need to spend 30Dollars für that closing?? I used a utxo with arround 84k sats and the transaction was refused |
Beta Was this translation helpful? Give feedback.
-
update2: i dont care about the fees anymore, I am using a utxo with enough sats on it, but i always get:
ich verzweifle hier langsam bei der Stange Geld die da festsitzt example utxo: 11752eca409872544f218bb349292c3647baf7955877b89d29931a5455c5d650:0 no matter how many confirmations it has and what utxo i use from the ln wallet (lncli listunspent), it says always ouput already spent :( |
Beta Was this translation helpful? Give feedback.
-
Is your wallet fully synced? The UTXO you showed me has indeed already been used (you can check on a block explorer). Maybe you need to use |
Beta Was this translation helpful? Give feedback.
Hallo Oli, thanks for your answer. the utxo in the example above had been spend afterwards. I always used unspend utxos. I solved the problem in the maintime: The problem was, that the closing tx was not in my own mempool anymore due to highblockchain usegage in the last monts, I had to republish it and raise the maxmempool.
After that, the tx created with chantools and finalize psbt could be published. Thank you and I wish you a good day.
Greetings
Mario