lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.71k stars 2.09k forks source link

Cannot getnodeinfo even from listed peers #4289

Closed rollingdice closed 4 years ago

rollingdice commented 4 years ago

Background

lncli getnodeinfo simply returned this: [lncli] rpc error: code = Unknown desc = unable to find node

lncli listpeers returned 3 peers.

Your environment

LND version: 0.10.0-beta, compiled from source using installation instruction Linux 4.9.0-9-686-pae #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) i686 GNU/Linux bitcoind 0.19.1, running as TOR hidden service Blockchain fully synced, although txindex is halfway synced Node sitting under router with NAT with public IP address

lnd.conf:

alias:<removed>
debuglevel=debug
bitcoin.active=1
bitcoin.mainnet=1
bitcoin.node=bitcoind
tor.active=1
tor.streamisolation=1
tor.v3=1
listen=localhost

bitcoin.conf:

server=1
txindex=1
disablewallet=0
datadir=<removed>

# Lightning settings
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333

# Connection settings
onlynet=onion

Steps to reproduce

Compile, install, configure, and sync bitcoincore 0.19.1 Compile & install lnd Run lnd, unlock wallet with lncli Run lncli getnodeinfo

Expected behaviour

Get another node info, should be similar to getinfo on own node

Actual behaviour

In the lnd terminal: 2020-05-16 02:34:20.958 [ERR] RPCS: [/lnrpc.Lightning/GetNodeInfo]: unable to find node

lncli result: [lncli] rpc error: code = Unknown desc = unable to find node

Tried searching high and low but looks like no one has similar problem as me. I could have overlooked something when configuring things, so any help is appreciated.

cfromknecht commented 4 years ago

In case anyone else runs across this issue: getnodeinfo only returns information about peers in the channel graph. Some of your peers may not have any public channels (or channels at all), in which case you'll get the error above.