charge-lnd icon indicating copy to clipboard operation
charge-lnd copied to clipboard

Charge LND Umbrel Install Error Message?

Open BonzoDogDooDah opened this issue 10 months ago • 6 comments

Here is the error we saw whe tryin to start Charge LND?

Traceback (most recent call last): File "/usr/local/bin/charge-lnd", line 5, in from charge_lnd.charge_lnd import main File "/usr/local/lib/python3.9/site-packages/charge_lnd/charge_lnd.py", line 333, in success = main() File "/usr/local/lib/python3.9/site-packages/charge_lnd/charge_lnd.py", line 41, in main lnd = Lnd(arguments.lnddir, arguments.grpc, arguments.tls_cert_path, arguments.macaroon_path) File "/usr/local/lib/python3.9/site-packages/charge_lnd/lnd.py", line 130, in init combined_credentials = self.get_credentials(lnd_dir, tls_cert_path, macaroon_path) File "/usr/local/lib/python3.9/site-packages/charge_lnd/lnd.py", line 159, in get_credentials tls_certificate = open(tls_cert_path if tls_cert_path else lnd_dir + '/tls.cert', 'rb').read() FileNotFoundError: [Errno 2] No such file or directory: '/data/.lnd/tls.cert'

--

We tried these commands first:

cd /mnt/data/upgrades/charge-lnd

sudo docker run --rm -it --network=umbrel_main_network
-e GRPC_LOCATION=192.168.0.131:10009
-e LND_DIR=/data/.lnd
-e CONFIG_LOCATION=/app/charge.config
-v /home/umbrel/umbrel/lnd:/data/.lnd
-v /mnt/data/upgrades/charge-lnd/charge.config:/app/charge.config
accumulator/charge-lnd:latest

--

Then these ones and the same error came up?

cd /mnt/data/upgrades/charge-lnd

sudo docker run --rm -v /mnt/data/upgrades/charge-lnd:/app -v ~/.lnd:/home/charge/.lnd -e GRPC_LOCATION=192.168.0.131:10009 accumulator/charge-lnd

Any Ideas please?

Thank you

Orange

BonzoDogDooDah avatar Feb 24 '25 10:02 BonzoDogDooDah

Hi Again,

Sorry we then thought we should also try the Umbrel App Portainer to set up Charge LND but are not that technically proficient just yet and we could not find a tutorial on how to use it to install Charge LND? Please let us know if anyone here can points us in the direction of a solution to either of these issues?

Thank you

Regards,

Orange

BonzoDogDooDah avatar Feb 24 '25 11:02 BonzoDogDooDah

Like the error says

FileNotFoundError: [Errno 2] No such file or directory: '/data/.lnd/tls.cert'

you need to make sure that file exists, or provide its path using the --tlscert option.

accumulator avatar Feb 24 '25 14:02 accumulator

Hi, So if the file does not exist which I assume it does not, how do I create one or copy one to that location?

Is this a common error message?

Thank you.

Regards,

Orange

BonzoDogDooDah avatar Feb 25 '25 09:02 BonzoDogDooDah

lnd should auto-generate it if it doesn't exist

accumulator avatar Feb 25 '25 12:02 accumulator

Hi, So if I am seeing that error message lnd did not auto-generate one right? Please let me know how I can get it to generate one? Or copy a working one to the correct folder? Sorry I forgot to mention that I have installed Charge LND on an umbrel node. I hope this helps you. Thank you warm regards, Orange

BonzoDogDooDah avatar Feb 26 '25 10:02 BonzoDogDooDah

I don't know if this is still relevant, but on recent Umbrel installs, the path to lnd is different from yours. So it should look something like this:

docker run --rm --network=umbrel_main_network \
-e GRPC_LOCATION=192.168.0.131:10009 \
-e LND_DIR=/data/.lnd \
-e CONFIG_LOCATION=/app/charge.config \
-v /home/umbrel/umbrel/app-data/lightning/data/lnd:/data/.lnd \
-v /mnt/data/upgrades/charge-lnd/charge.config:/app/charge.config \
accumulator/charge-lnd:latest

whizz avatar Jul 28 '25 06:07 whizz