Hi,
I was running core-lightning on the home NAS server within a docker container … I made a file-system backup of my lightning-node before I lost all data due to logical storage disk failure. I had approx 80 funded channels + some funds on lightning wallet which I would be glad to recover. This is what I done so far BUT without success:
- I install Core-Lightning on Umbrel 1.2.2
- I stopped the Core-Lightning app
- I checked the directory, there are the following files:
-rw-r--r-- 1 root root 36864 Aug 7 15:32 accounts.sqlite3
-rw------- 1 root root 241 Aug 7 15:32 ca-key.pem
-rw-r--r-- 1 root root 554 Aug 7 15:32 ca.pem
-rw------- 1 root root 241 Aug 7 15:32 client-key.pem
-rw-r--r-- 1 root root 530 Aug 7 15:32 client.pem
-r-------- 1 root root 57 Aug 7 15:32 emergency.recover
-rw------- 1 root root 1 Aug 7 15:32 gossip_store
-r-------- 1 root root 32 Aug 7 15:32 hsm_secret
srw------- 1 root root 0 Aug 7 15:32 lightning-rpc
-rw-r--r-- 1 root root 667648 Aug 7 15:58 lightningd.sqlite3
-rw------- 1 root root 241 Aug 7 15:32 server-key.pem
-rw-r--r-- 1 root root 530 Aug 7 15:32 server.pem
- Following the guidelines from this thread, I copied the following files from my file system backup to this directory:
hsm_secret
lightningd.sqlite3
emergency.recover
- I started the core-lighting app from UX
Unfortunatelly, this steps does not make the core-ligtning app to start… I’m getting errors in the log file:
ccore-lightning_app_1 | Waiting for lightningd
core-lightning_app_1 | 2024/08/02 12:46:53 socat[646] E connect(5, AF=1 "/root/.lightning/bitcoin/lightning-rpc", 40): Connection refused
I’m thinking there are other things which may need to be done… I found config file:
/home/umbrel/umbrel/app-data/core-lightning/data/lightningd/.commando-env
LIGHTNING_PUBKEY="03f084e...............630"
LIGHTNING_RUNE="LJV43bcm......................pb24b"
1/ Obviously, the pubkey of my previous lightning node was different. Sould I update the pubkey value in this .commando-env config file before starting the core-lightning app?
2/ I found other files in umbrel related to core-lighting app, like:
/home/umbrel/umbrel/app-data/core-lightning/data/c-lightning-rest/certs/
total 24
drwxr-xr-x 2 umbrel umbrel 4096 Aug 7 15:32 .
drwxr-xr-x 3 umbrel umbrel 4096 Aug 7 12:02 …
-rw-r–r-- 1 root root 114 Aug 7 15:32 access.macaroon
-rw-r–r-- 1 root root 1310 Aug 7 15:32 certificate.pem
-rw------- 1 root root 1704 Aug 7 15:32 key.pem
-rw-r–r-- 1 root root 128 Aug 7 15:32 rootKey.key
What should I do with these files, can I keep them as they are?
3/ The public IP address of the current lightning node hosted on umbrel is different compare to the old LN node… is this a problem for opened channels?
4/ What should I do with other files from old lightning node filesystem backup ? should I also copy them to replace existing files or not? like:
-rw-r--r-- 1 root root 36864 Aug 7 15:32 accounts.sqlite3
-rw------- 1 root root 241 Aug 7 15:32 ca-key.pem
-rw-r--r-- 1 root root 554 Aug 7 15:32 ca.pem
-rw------- 1 root root 241 Aug 7 15:32 client-key.pem
-rw-r--r-- 1 root root 530 Aug 7 15:32 client.pem
-rw------- 1 root root 241 Aug 7 15:32 server-key.pem
-rw-r--r-- 1 root root 530 Aug 7 15:32 server.pem
Thank you so much for your help.