accumulator / charge-lnd

charge-lnd is a simple policy based fee manager for LND. With this tool you can set fees to autobalance, recover channel open costs, use on-chain fees as reference, use channel activity to determine fees or just use static fees.
GNU General Public License v2.0
232 stars 44 forks source link

Debug connection issue? #82

Open rasodu opened 2 years ago

rasodu commented 2 years ago

I am getting below error when trying to run charge lnd:

Could not connect to gRPC endpoint
ERROR: 1

So, far I have tried:

  1. Telnet to the grcp host and port. It's is able to connect.
  2. I have lnbits. It's connecting to LND service over rest endpoint using the same tls and macron.

How can I debug the issue? I would like to see more detailed error message.

zapomatic commented 9 months ago

If you hit this problem and you are using a localhost network, it may be that your gRPC endpoint needs adjusting. For instance, if you are running on an umbrel, umbrel.local or lnd are local DNS names mapped to the shared docker container network. So if you are trying on the same host but in a docker container 127.0.0.1 won't work because that would only be the network inside the docker container itself. You would need to use the exact local subnet 10.* address of the lnd server container/machine, or a local DNS mapping to that machine.