-
Notifications
You must be signed in to change notification settings - Fork 130
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
backup: cli tool failed to restore backup #158
Comments
@michel-foucault
|
This is the result of an error that is fixed in c-lightning with #4090. The problem was that when expanding the DB statement in order to pass However, if the backup was created before the fix was applied they FWIW, there is just a space missing between |
I added a fix in the form of PR #172 which will rewrite the statements @michel-foucault: could you try that branch and see if it fixes the issue? |
Great, Since I have used Postgres backend, with multiple database for multiple nodes, that cover my needs for the backup in production. I have the backup and I will try to upgrade the code and restore from the backup (w & w/o patching it) for report. |
Setup:
testnet
alpine:3.11
(amd64)3.8.2
SQLite
3.30.1
Steps to reproduce:
/var/lib/lightning/testnet/lightningd.sqlite3
is removed.Error:
The
lightningd.sqlite3
file is not restored,backup-cli
crashed with error:Traceback:
The text was updated successfully, but these errors were encountered: