-
Notifications
You must be signed in to change notification settings - Fork 889
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
Node corrupt after power outage #3083
Comments
Is there a Your filesystem might be broken. Could you check |
There is a There may be a problem with the filesystem... but I'm stuck in my attempts to resolve it. I'm running the RasPi with
If I press 1, I get:
By going 2,
and no matter what I do now, it gives me the same message above, after option 1 to remove dirty bit.
Tried running
Running just Guess the question now is how to force a file system check and fix on boot? I googled, but the suggestions are basically the ones I did above already. Any other ideas? |
If it is truly empty, You could try |
Learning new stuff with every comment... super appreciated!
including the odd In the debug message above it was saying I suspect you're right, will need to |
This seems to be a valid |
OK, looks like my drive is fairly corrupt overall. Suffers from some major problems, not just bad blocks... even as much as with the control board, doesn't seem to power up properly, and struggles with that. You can hear the plates trying to spin up, but struggling. Not sure why.. I did manage to power it on and save the contents of the |
You only really need the db file |
Hi again, so I finally rebuilt my node and got clightning running as well, I connected to another node. I tried to import (i.e. copy/paste) the
Note, I did get clightning to run before doing it, I connected to another node successfully. I then thought it may be a problem with the files (corrupted?), so I tried doing the same with two new files, the ones which were generated automatically by clightning. (I backed them up before deleting them.) Got the same message. I also deleted everything from Question now is, how do I restore my LN node with just the two files above? |
How much did you lose? |
Hi @leilerg, were you able to recover your database ? If not, have your channels been closed (funding transaction spent) ? |
I did manage to set up another node, and tried to run it by simply copying Any suggestions how can I go about closing those channels? I found this to retrieve my funds, but the channels must be closed first, no? @ZmnSCPxj |
That's exactly the problem why the "static channel backup" approach used elsewhere is not ok. Your peer could remain inactive forever and you would never recover your funds (because you don't have the most updated state). |
Well, at this point I don't really have much of an option, so I'll wait. I didn't "put 4BTC in LN", either, so it's not a big deal for me to wait. I'm monitoring my node using 1ml.com (any other ways?), and some channels have been closed. I guess people will eventually close them. |
Could be that a newer version of c-lightning can recover the database (we added a couple of DB connection startup options that should ensure foreign key constraints don't break). If that's the case I'd suggest starting the node with the |
I had a similar catastrophic node failure involving a power outage and simultaneous RAID 1 failure. I spent some time researching the process for recovering funds from a c-lightning node when all is lost but the I have found that in general there is quite a lot less information/resources/discussion (besides the Lightning Docs) on subjects like this for c-lightning in comparison to LND. It is primarily intended as a pragmatic guide for in practice recovery, as opposed to a complete theoretical/technical covering of the recovery process. |
Awesome, thanks @mandelbit for taking the time to write this up. You're right that there are fewer resources than LND, but then again we also have a smaller user-base :-) It'd people like you going the extra mile that allows us to improve the situation. So just wanted to thank you for this ^^ |
Not at all, the least I can do after benefiting from all of your work. Huge thanks to you guys for creating such a great piece of software. Very excited about harnessing this stack, and contributing wherever I can. |
Hi, yesterday I suffered a power outage on my bitcoin/lightning node, and after that was resolved clightning could not start again. Was using
v0.7.2
on a RasPi3. As such, reproducing may be hard...Tried rebooting, restarting clightning separately, uninstall/re-install clightning, build
v0.7.1
and downgrade, and didn't work. Something is preventing the node from starting, so my config tries to restart it indefinetly.The debug info (
log-level=info
) is pretty obscure to me:This is all I get, over and over. Or better, what I used to get. Eventually it stopped producing all three lines and is now only logging the last one,
We seem to be missing gossip messages
.hsm_secret
is in place, with timestamp when I first set the node up, about a year ago.lightningd.sqlite3
alsi in place, but timestamp the when I try running the node, so recent.Any ideas what could I do to restore the node? Should I try removing (with local backup) the two files above and restart? Not too sure what is crucial and what isn't to avoid losing funds, so didn't touch any of that so far. If that doesn't work, how could I just recover the funds? (Though problem remains, I still want to run lightning.)
The text was updated successfully, but these errors were encountered: