lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
506 stars 90 forks source link

RPC error using frcli, loop, pool #139

Closed acburkhardt closed 3 years ago

acburkhardt commented 3 years ago

having some issues trying to interact with bundled daemons using frcli, loop, and pool. they all give me the same rpc unknown service error and I'm unsure how to troubleshoot further.

for example:

$ pool --rpcserver localhost:10009 --macaroonpath ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon --tlscertpath ~/.lnd/tls.cert listauth
[pool] rpc error: code = Unimplemented desc = unknown service poolrpc.Trader

or:

$ frcli <same options> insights
[frcli] rpc error: code = Unimplemented desc = unknown service frdrpc.FaradayServer

verbose output for the same:

INFO: 2020/11/08 03:44:23 parsed scheme: ""
INFO: 2020/11/08 03:44:23 scheme "" not registered, fallback to default scheme
INFO: 2020/11/08 03:44:23 ccResolverWrapper: sending update to cc: {[{localhost:10009  <nil> 0 <nil>}] <nil> <nil>}
INFO: 2020/11/08 03:44:23 ClientConn switching balancer to "pick_first"
INFO: 2020/11/08 03:44:23 Channel switches to new LB policy "pick_first"
INFO: 2020/11/08 03:44:23 Subchannel Connectivity change to CONNECTING
INFO: 2020/11/08 03:44:23 blockingPicker: the picked transport is not ready, loop back to repick
INFO: 2020/11/08 03:44:23 pickfirstBalancer: HandleSubConnStateChange: 0x2c7a670, {CONNECTING <nil>}
INFO: 2020/11/08 03:44:23 Channel Connectivity change to CONNECTING
INFO: 2020/11/08 03:44:23 Subchannel picks a new address "localhost:10009" to connect
INFO: 2020/11/08 03:44:23 Subchannel Connectivity change to READY
INFO: 2020/11/08 03:44:23 pickfirstBalancer: HandleSubConnStateChange: 0x2c7a670, {READY <nil>}
INFO: 2020/11/08 03:44:23 Channel Connectivity change to READY
INFO: 2020/11/08 03:44:23 Channel Connectivity change to SHUTDOWN
INFO: 2020/11/08 03:44:23 Subchannel Connectivity change to SHUTDOWN
[frcli] rpc error: code = Unimplemented desc = unknown service frdrpc.FaradayServer

I'm running lnd 0.11.1-beta and lit 0.3.0-alpha. loop operations seem to work fine with REST with the web UI.

# lnd.conf

...

maxpendingchannels=5
listen=0.0.0.0:9735
restlisten=localhost:8080
rpclisten=0.0.0.0:10009
accept-keysend=true

bitcoin.active=1
bitcoin.mainnet=1
bitcoin.node=bitcoind

tor.active=true
tor.v3=true
tor.streamisolation=true
jamaljsr commented 3 years ago

Since you are running litd in remote mode, you need to specify the RPC port set by the httpslisten flag (default: 8443). So you should use pool --rpcserver localhost:8443 ...

Your lnd node is listening on port 10009 which is why it does not understand the pool and frcli requests.

See the config-lnd-remote doc for more details.

acburkhardt commented 3 years ago

Awesome, thank you! Didn't realize I was running lit in remote mode since I'm running lnd locally. Makes sense now.