RTL: RTL not connecting to local LND node

Describe the bug Followed installation steps - but I’m getting this error when I authenticate

Error ECONNRESET Fetching Info Failed! Unknown Error

image

and in the logs:

I can click around in RTL but no LND node information is appearing…

To Reproduce Steps to reproduce the behavior:

  1. install btcd (sync)
  2. install lnd (connected to btcd and working normally)
  3. clone github and install following steps in README
  4. Login (password appears to work fine)
  5. See error in log

Screenshots If applicable, add screenshots to help explain your problem.

Your environment

  • Version of RTL 0.11.0-beta
  • Version of lnd lnd version 0.13.99-beta commit=v0.13.0-beta-27-gf9a51882
  • Version of btcd, bitcoind, or other backend btcd version 0.22.0-beta`
  • Browser & browser version
  • Operating system (uname -a on *Nix) 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • any other relevant environment details

Additional context contents of RTL-config.json anonymized with <>

  "port": "3000",
  "defaultNodeIndex": 1,
  "SSO": {
    "rtlSSO": 0,
    "rtlCookiePath": "",
    "logoutRedirectLink": ""
  },
  "nodes": [
    {
      "index": 1,
      "lnNode": "<nodename>",
      "lnImplementation": "LND",
      "Authentication": {
        "macaroonPath": "<lndpath>/data/chain/bitcoin/mainnet",
        "configPath": "<lndpath>/lnd.conf"
      },
      "Settings": {
        "userPersona": "MERCHANT",
        "themeMode": "DAY",
        "themeColor": "PURPLE",
        "channelBackupPath": "<path>/backups",
        "enableLogging": false,
        "lnServerUrl": "http://localhost:10009/v1",
        "fiatConversion": false
      }
    }
  ],
  "multiPassHashed": "<hashed-pw>"
}

contents of lnd.conf

[Application Options]
bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=btcd
alias=<node>
color=#FDD023
rpclisten=127.0.0.1:10009

[autopilot]
autopilot.active=true
autopilot.maxchannels=5
autopilot.allocation=0.6
autopilot.maxchansize=20000
autopilot.minconfs=2
autopilot.conftarget=2

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20

Most upvoted comments

  1. lnServerUrl should be set to restlisten NOT rpclisten in RTL-config.JSON:

“lnServerUrl”: “https://localhost:8080

  1. Need to add restlisten in lnd.conf, like below:

restlisten=0.0.0.0:8080

Please do not forget to restart the lnd and the RTL server after making above changes.

Just wanted to come back here and say that I was able to overcome this error CHRE: Initializing btcd backed fee estimator by adding the following params to my lnd.conf

btcd.rpcuser=<hash>
btcd.rpcpass=<hash>
btcd.rpchost=127.0.0.1:8337

I am sorry, I don’t have any experience with running LND with btcd. I have always run it with bitcoind. Although I don’t see a reason why RTL would have any impact on which backend LND is running on.

@bensig Please configure your lnServerUrl with https://localhost:8080 NOT http://localhost:8080.