-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[lncli] unable to restore chan backups: rpc error: code = Unknown desc = unable to unpack chan backup: unable to derive shachain root key: unable to derive private key issue #3881
Comments
This is quite strange, especially because it only seems to affect one or a few channels. It's possible that it being an old channel could be the reason for this. It would really help if you could run the |
Thanks Guggero. ShaChainRootDesc: (chantools.dumpDescriptor) { |
Thanks a lot! |
Let me know if there is something else I can provide to help. |
I've added a new
This will take a few minutes depending on the speed of your machine. After it finishes, there will be a file |
It is not in keys.txt |
Ok, that's really strange. Somehow this incorrect public key for the In the meantime can you please try if you can continue with the restore if you remove the offending channel from the backup file? So you can at least recover the funds from the other channels? |
I think I found the problem. We changed how the But as far as I know the SHA chain root is not really used if an SCB is restored since lnd initiates DLP and the remote party force-closes and hands over their |
Awesome! I'll try recovering the funds now with the filterbackup and then give your pubkey replacement command a try when it's ready for the channels with issues (I believe there are at least two). Thanks for your help. |
I've added the |
Using your filter tool I was able to remove 10 channels from my backup and recover the remaining channels successfully. I just tried your I dumped it with
This is the same pubkey the other channel was failing on. |
Ok, strange. Maybe I did something wrong. You did use the file that was created in the sub directory |
I did for sure, yes. I double checked and you can run the |
Yeah, sorry. Just wanted to make sure. |
Ok - no errors this time on the restore. However the log eventually said |
Closing this as I didn't hear back and this can possibly be resolved manually with the tools I provided. The channels causing the problem are very old and not supported (see release notes of |
Background
I had a db corruption issue and trying to recover from my SCB. Using the same seed and recovered the on-chain funds successfully. When attempting to restore off-chain via lncli create or restorechanbackup I get:
I found #3583 and I seem to be having a similar problem. It starts saving some of the channels back to disk but fails around the 5th one with that error and can't continue. I've noticed that the channel point it fails on is a channel from 2018 - I'm curious if there are some backwards compatibility issues.
Any advice on where to go from here? Is there a way for me to edit my channel.backup and remove the old channels to see if that helps?
Your environment
lnd
: 0.8.2-betauname -a
on *Nix): Ubuntu 18.04btcd
,bitcoind
, or other backend: bitcoind 0.19.0.1Steps to reproduce
Try to recover channels from channel.backup on same seed using lncli create or restorechanbackup.
Expected behaviour
Recover channel.backup successfully.
Actual behaviour
[lncli] unable to restore chan backups: rpc error: code = Unknown desc = unable to unpack chan backup: unable to derive shachain root key: unable to derive private key issue.
And then I receive the previous error.
The text was updated successfully, but these errors were encountered: