-
Notifications
You must be signed in to change notification settings - Fork 158
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
Restoring Channels on RTL fails, Error Code 404 #614
Comments
@silvester235, The user should NOT rename any of the backup files created by RTL as the UI distinguishes these backups by their file names. We expect these files to be copied as is, in the 'restore' folder for proper channel restoration. Also, please remove the trailing slash from the |
thanks for your reply. I removed the trailing slash as advised. I tried both file names channel-all.bak and later Backup-Channel-All.bak however in both cases the result is an 404 error (in the API URL is in both cases the first letter missing). I have this problem with Mynodebtc & RTL installation. Currently I am setting up Raspiblitz & RTL and will try again with my channel-all.bak file. |
If RTL finds a file named The retore page table should only show the individual channel backup files showing their channel point values. In below example, my |
Removing the issue from the release milestone. For now, we are considring it as a troubleshooting issue not a bug. |
@ShahanaFarooqui on my latest Mynodebtc & RTL installation the "RESTORE ALL" button didn't show even if the channel-all.bak file was stored at restore folder location. Only the "RESTORE" button under "Actions" I am currently setting up Raspiblitz and see if it works. |
I failed to reproduce the issue at my end, where Please take your time and let us know if the problem persists. |
When the backup is created it does in fact give the file name of Backup-Channel-All.bak at which point you're able to download it to your computer for safe keeping. I've been able to reproduce the same issue. I've even gone as far as having to create the restore directory, copying the file from pc to admin user home directory /home/admin via SCP, renamed the file to channel-all.bak, mv over to /mnt/hdd/mynode/rtl_backup/restore/ resulting in the same error. I thought it was an issue with permissions so I then assigned the restore permissions for the bitcoin user. Doing so still resulted in the same issue "Error Code 404" |
Downloaded all channels backup fails to restore #614
@RhinoAK & @silvester235 Thank you for the details. I was finally able to reproduce the issue after realizing that you were copying the downloaded file into restore folder. I kept testing it by copying the file directly from the backup folder. These were 3 main issues which are fixed and merged with PR #650. 1: We were renaming the file from 2: The file name check was case-sensitive making 3: The file generated by 'Backup All' button (channel-all.bak) was utf-8 encoded and was able to restore the channels successfully. However, the file downloaded by 'Download All' button (Backup-Channel-All.bak) was in utf-8 BOM encoding and was failing to restore these channels. The fix will now download the file in Please feel free to test the fix from Release-0.10.2 branch or it will be released soon with release v0.10.2. |
Thanks for the update. I have only the file "However, the file downloaded by 'Download All' button (Backup-Channel-All.bak) was in utf-8 BOM encoding and was failing to restore these channels." Does it mean I will not be able to restore? |
A lot of text editors can change the encoding very easily. For example, notepad++. I successfully restored from my Backup-Channel-All.bak file after renaming it to ‘channel-all.bak’ and changing the encoding from ‘utf-8 BOM’ to ‘utf-8’ via notepad++. Please note that these edits are required till v0.10.1. |
High CPU usage by browser when session inactivity dialog is showing #624 Block Altcoins #627 Remove slide right animation on route change #642 Update the initiator field for Loop APIs #643 Filter Bug fix #623 Transaction id for pending waiting channel #603 Empty cookie security risk bug fix #610 Material container repositions on Mac Firefox #268 & #619 Mask config file passwords #636 Downloaded all channels backup fails to restore #614 CLT Routing list disappears on navigation #652 Update Bump Fee modal #628 LND Paying zero amount invoice fails #657 Open channel fails after adding peer with uri #662 Update Fee Policy Bug Fix #659 Changed default password from `changeme` to `password` (#653) (Contributed By: Andrew Leschinsky <[email protected]>)
Number 5 is not related to your number of channels. This is the node index taken from your RTL-Config.json file. We create backup files for all LND nodes configured in the application and name them uniquely with their node index. Also the error message is indicating that this file doesn’t contain all channels backup. It is a single channel backup file. |
Thanks for the quick reply.
I am sure that I made a Backup of all 5 Channels using the "Backup All“ function
I don’t have a screenshot of the latest Channel balance but it should look like this:
This is the backup file.
How can I restore the channels?
Regards Rudi
… Am 29.10.2022 um 18:14 schrieb ShahanaFarooqui ***@***.***>:
Number 5 is not related to your number of channels. This is the node index taken from your RTL-Config.json file. We create backup files for all LND nodes configured in the application and name them uniquely with their node index.
Also the error message is indicating that this file doesn’t contain all channels backup. It is a single channel backup file.
—
Reply to this email directly, view it on GitHub <#614 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A2JFQPPWSXGXOIE3RV7H6D3WFVEPDANCNFSM4YLDNVYQ>.
You are receiving this because you commented.
|
I am unable to check your backup file but for 5 channels backup, it should looks similar to this:
Could you please confirm your lnd & RTL versions also? I just tested the backup & restore feature with RTL 0.13.1 and LND 0.15.3 and it worked without any issue. |
Ok, have renamed the file and started the RESTORE in RTL. Unfortunately it doesn’t work, showing an Error Code 500. What con I do?
… Am 29.10.2022 um 19:58 schrieb ShahanaFarooqui ***@***.***>:
Ensure that your backup file location is correct.
Ensure that your backup file is corresponding to the correct node index.
Do NOT rename any file before copying it into the restore folder.
If the restore folder has single channel backup file then RTL will show it in the grid on restore page.
If the folder has multi channel backup file, then it will show it on the top of restore page.
Restore selected or all channels according to your preference.
—
Reply to this email directly, view it on GitHub <#614 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A2JFQPJNC3HAOBI3P5RA6T3WFVQS7ANCNFSM4YLDNVYQ>.
You are receiving this because you commented.
|
|
Sorry but I am no IT professional and need some more help.
I thought the node index is the -5 which I removed from the name. OK that was wrong. So I renamed the file name back to channel-all-5.bak. But what ist the node index, where can I find it where can I change it in the backup file?
But what ist the node index, where can I find it and what do I have to do to make it "corresponding to the correct node index"?
Is there any problem because I gave the new node a new name?
The backup file now has the old name is located in the right directory
When I start RTL Backup the Restore File/Channel Point shows all:5 .
When I run the restore function I again get the Error Code 400
What is wrong?
Regards Rudi.
… Am 30.10.2022 um 15:20 schrieb ShahanaFarooqui ***@***.***>:
The file should NOT be renamed.
It is not possible to suggest anything else with these little details.
—
Reply to this email directly, view it on GitHub <#614 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A2JFQPIXNQNKNWCZ4TAAYQLWFZ74VANCNFSM4YLDNVYQ>.
You are receiving this because you commented.
|
Ok I found the node indes Datei (rtl-config.json)
But how is it going to corresponding with the backup file?
Sorry but I am no IT professional and need some more help.
I thought the node index is the -5 which I removed from the name. OK that was wrong. So I renamed the file name back to channel-all-5.bak. But what ist the node index, where can I find it where can I change it in the backup file?
But what ist the node index, where can I find it and what do I have to do to make it "corresponding to the correct node index"?
Is there any problem because I gave the new node a new name?
The backup file now has the old name is located in the right directory
When I start RTL Backup the Restore File/Channel Point shows all:5 .
When I run the restore function I again get the Error Code 400
What is wrong?
Regards Rudi.
… Am 30.10.2022 um 15:20 schrieb ShahanaFarooqui ***@***.*** ***@***.***>>:
The file should NOT be renamed.
It is not possible to suggest anything else with these little details.
—
Reply to this email directly, view it on GitHub <#614 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A2JFQPIXNQNKNWCZ4TAAYQLWFZ74VANCNFSM4YLDNVYQ>.
You are receiving this because you commented.
|
Mynodebtc v.0.2.27
Lightning v0.12.1
RTL v0.10.1- beta
Restoring Channels on RTL fails, Error Code 404
I uploaded the backup file "Backup-Channel-All.bak" to /mnt/hdd/mynode/rtl_backup/restore
Backup file shows as restore option in the RTL GUI.
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?
The text was updated successfully, but these errors were encountered: