If your Casa node has become unresponsive and you need to recover funds from it, the recommended process to do so can be found below. It requires access to the node's hard drive and may not be possible to follow if the hard drive has crashed or the file system has been corrupted.
The following guide is for recovery both on-chain AND off-chain funds (those in lightning channels.)
If you're unable to read the necessary wallet data from the hard drive, an alternative recovery process can be followed with this guide.
This article is intended for advanced users, and covers how to recover funds from a non-working Casa Node. This recovery can be done on a laptop or desktop computer that has plenty of disk space.
1. Install Bitcoin Core and allow it to sync fully to the current block height.
2. Once Bitcoin Core is fully synced, install LND
3. Remove the hard drive from the Casa Node and read the contents by plugging it into a USB port on the machine being used for recovery.
Note: on Windows and Mac you will need additional third party software in order to be able to read the Linux (EXT4) file system on the hard drive.
The lnd data is located at /volumes/applications_lnd-data/_data/data/ on the hard drive. Note that if you're accessing the drive from the node's command line, the full path is /mnt/data/volumes/applications_lnd-data/_data/data/. Copy that entire "data" directory into the lnd directory on your recovery machine. On Linux it's the ~/.lnd/ directory.
4. Now you can actually start up lnd and unlock it with your node's login password:
5. Now you'll just need to wait a while (we recommend at least 24 hours) for lnd to sync
6. Now you can check the state of your wallet and channels
7. Close all the channels via the cli. You can do this by running:
Be aware that sometimes channel closings can take 24 hours or longer!
8. When you channels have closed, you can sweep the wallet funds to the address of your choosing.
./lncli sendcoins --sweepall --conf_target 10 --addr <address>
For more specific details about the process of LND recovery, you can go more in-depth by checking out this guide from Lightning Labs.