LND node channels disappeared

Are you confirming that after restoring from backup and nuking your original channel, you decided to open channels using the same restored LND instance?

After a restore of LND it is not recommended to continue using the same instance. You are explicitly warned against this when you do the restore. If you ignore the warning and do this anyway, you risk losing your funds.

The best way to contact your peers might be by email, or maybe by social media. Depends who they are. If they are fairly public people or entities, they may have contact details on places like Amboss.space

How to do about using chantools on StartOS depends on your CPU architecture. You don’t mention what this is so assuming x86…

x86_64

sudo curl -L https://github.com/lightninglabs/chantools/releases/download/v0.13.7/chantools-linux-amd64-v0.13.7.tar.gz | sudo tar -zxv -f- --strip-components=1 -C /usr/local/bin

From here on, anyone who helps you with any of the following steps has ample opportunity to steal all your funds. You should avoid posting anything regarding the output of any of these commands.

Once chantools has been installed carefully follow the below steps. Do NOT share any of the info from the below commands with anyone.

Step 1: Generate a LND address to sweep the funds to using

sudo podman exec -it lnd.embassy lncli --rpcserver lnd.embassy newaddress p2wkh

Then exit the container.

Step 2: Retrieve the pwd.dat used to unlock wallet.db using

cat /embassy-data/package-data/volumes/lnd/data/main/pwd.dat

Stop LND as the chantools command below will require LND be stopped.

Step 3: Retrieve the xprv of the wallet using

sudo chantools walletinfo --walletdb /embassy-data/package-data/volumes/lnd/data/main/data/chain/bitcoin/mainnet/wallet.db --withrootkey 

You will be prompted for the wallet password; copy and paste the output from the command in step 2 above. If this command is successful, you will see a “BIP32 HD extended root key” - you will need the value beginning with “xprv…”

Finally you can construct the chantools command to scan for addresses with funds and sweep to the address created in step 1.

Be sure to replace with your root key derived in step 3 above, and with your address derived in step 1 above.

chantools sweepremoteclosed --rootkey <xprv> --sweepaddr <bc1>

This command may take a few moments or more to run, wait for it to complete. Once the command does complete, you should see an output indicating a sweep target was found.

Now publish it

chantools sweepremoteclosed --rootkey <xprv> --sweepaddr <bc1> --publish

Afterwards you can start LND and wait for the sweep tx to confirm.

1 Like