mynodebtc / mynode

The easiest way to run Bitcoin and Lightning!
Other
650 stars 148 forks source link

Restoring Channels on RTL fails, Error Code 404 #483

Open silvester235 opened 3 years ago

silvester235 commented 3 years ago

Mynodebtc v.0.2.27 Lightning v0.12.1 RTL v0.10.1- beta

RTL wallet 24 words seed & Backup-Channel-All.bak file available

Restoring Channels on RTL:

After some power failures Lightning client was not running anymore. I re-installed Lightning client and RTL

Via Lightning client I chose to restore wallet (24 words seed and also upload Backup-Channel-All.bak file). After log in to RTL client: wallet was restored successfully however no channels were restored.

In the RTL client I checked the "restore" option. No file was available.

I checked the Restore folder location: /mnt/hdd/mynode/rtl_backup//restore However directory "restore” didn't exist.

So I created directory "restore" and copied Backup-Channel-All.bak in the directory.

Now the restore file shows in the RTL client as restore option. However when I choose restore I receive "Error Code 404, Error Message Unknown Error, API URL ./api/lnd/channels/backup/restore/hannel:All"

Screenshots attached.

Do you have any idea how to restore the channels?

Screen Shot 2021-02-27 at 20 01 25 Screen Shot 2021-02-27 at 20 01 39
tehelsper commented 3 years ago

After restoring via seed words and SCB file, the channels should have been closed to get funds back. There is no way to recover the channel and its state, only the funds in the channel.

You should be able to check the channel states via lncli commands if the are still closing. They may appear in RTL, I'm not 100% sure.

silvester235 commented 3 years ago

I guess I identified the problem. When restoring the Lightning Wallet on mynodebtc I used the 24 words seed and the channel backup file generated by RTL (backup-channel-all.bak, that is also the only backup file I have). It looks like the Lightning Client is not able to handle the backup file generated by RTL.

So the Lightning Wallet got restored correctly, however channels are not closed/ restored.

When using the channel backup file generated by RTL (backup-channel-all.bak) direct in the RTL GUI I receive the 404 error. I guess I will figure out with RTL was causes the error.