question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[lncli] rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:10009: connect: connection refused"

See original GitHub issue

Describe the bug I get an error when trying to access lnd via cli: [lncli] rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:10009: connect: connection refused"

To Reproduce the bug root@btcpay:~/btcpayserver-docker# ./bitcoin-lncli.sh getinfo

Expected behavior show node info

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: BTCPayServer v1.1.0.0
  • Deployment Method: LunaNode
  • Browser:

Additional context

https://github.com/lightningnetwork/lnd/issues/5264 https://github.com/lightningnetwork/lnd/issues/5264#issuecomment-831608294

how can I check to see if default RPC listening port has been modified in the config and what RTL and Joule are using for the port + cert ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
Eskyeecommented, May 5, 2021

I see this @rockstardev after checking my logs !!

nrpclisten=lnd_bitcoin:10009 shouldn’t this be ?? nrpclisten=127.0.0.1:10009

LND_EXTRA_ARGS=restlisten=lnd_bitcoin:8080\nrpclisten=127.0.0.1:10008\nrpclisten=lnd_bitcoin:10009\nbitcoin.node=bitcoind\nbitcoind.rpchost=bitcoind:43782\nbitcoind.rpcuser=lnd\nbitcoind.rpcpass=afixedpasswordbecauselndsuckswithcookiefile\nbitcoind.zmqpubrawblock=tcp://bitcoind:28332\nbitcoind.zmqpubrawtx=tcp://bitcoind:28333\nadminmacaroonpath=/data/admin.macaroon\ninvoicemacaroonpath=/data/invoice.macaroon\nreadonlymacaroonpath=/data/readonly.macaroon\ntlsextradomain=lnd_bitcoin\nno-rest-tls=1\nprotocol.wumbo-channels=1\n\ntor.active=1\ntor.socks=tor:9050\n",

3reactions
rockstardevcommented, May 10, 2021

Just add rcpserver to it ./bitcoin-lncli.sh --rpcserver lnd_bitcoin:10009 getinfo

I’ll open PR to make adding rpcserver not required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[lncli] rpc error: code = Unavailable desc = all SubConns ...
[lncli] rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc ...
Read more >
lncli getinfo returns error: Unavailable desc = connection ...
lncli getinfo returns error: Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:10009: connect: ...
Read more >
rpc error: code = Unavailable desc = connection closed in ...
I am getting error rpc error: code = Unavailable desc = connection closed when I an trying to run code. As I am...
Read more >
rpc error: code = Unknown desc = dial tcp 103.102.44.207 ...
I'm getting connection refused when I try to connect to a public testnet node. lncli --network=testnet connect ...
Read more >
Running a Bitcoin Lightning Full Node on Raspberry Pi
This guide walks you through the steps in running a full Bitcoin Lightning Network node on a Raspberry Pi. When you're finished, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found