lightninglabs / lightning-terminal

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

Cannot get LNC to work #463

Closed benthecarman closed 1 year ago

benthecarman commented 1 year ago

I cannot get LNC to connect with Zeus or the Lightning Terminal website. Every time I try pairing I get this error:

image

Refreshing the page or creating a new pairing phrase yields the same results

Logs:

Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.459 [DBG] GRPC: [core] parsed scheme: ""
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.459 [DBG] GRPC: [core] scheme "" not registered, fallback to default scheme
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.459 [DBG] GRPC: [core] ccResolverWrapper: sending update to cc: {[{mailbox.terminal.lightning.today:443  <nil> 0 <nil>}] <nil> <nil>}
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.459 [DBG] GRPC: [core] ClientConn switching balancer to "pick_first"
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.459 [DBG] GRPC: [core] Channel switches to new LB policy "pick_first"
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.459 [DBG] GRPC: [core] Subchannel Connectivity change to CONNECTING
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.460 [DBG] GRPC: [core] pickfirstBalancer: UpdateSubConnState: 0xc000afce50, {CONNECTING <nil>}
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.460 [DBG] GRPC: [core] Channel Connectivity change to CONNECTING
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.460 [DBG] GRPC: [core] Subchannel picks a new address "mailbox.terminal.lightning.today:443" to connect
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.460 [INF] SESS: Mailbox RPC server listening on mailbox:e8e68973c83654b15ecee20788355f7ede34f079a0ce1649d260b6feaf933ad77a9acc0db17a4a030397234be65370c5dd04c3bb70dce015bad7379bcda532dd@mailbox.terminal.lightning.today:443
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.460 [DBG] MBOX: ServerConn: creating gbn, waiting for sync
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.483 [INF] LITD: Handling gRPC web request: /litrpc.Sessions/ListSessions
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.928 [DBG] GRPC: [core] Subchannel Connectivity change to READY
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.928 [DBG] GRPC: [core] pickfirstBalancer: UpdateSubConnState: 0xc000afce50, {READY <nil>}
Dec 05 12:46:23 suredbits-laptop litd[530504]: 2022-12-05 12:46:23.928 [DBG] GRPC: [core] Channel Connectivity change to READY
Dec 05 12:46:24 suredbits-laptop litd[530504]: 2022-12-05 12:46:24.008 [DBG] MBOX: Server: receive mailbox created
Dec 05 12:46:35 suredbits-laptop litd[530504]: 2022-12-05 12:46:35.373 [DBG] LITD: First connection for session 03e50ad65fc6091661a17abb3d6f56c251e2d733c350c63c2797fd69c06bb4fb73 made in a timely manner
Dec 05 12:46:35 suredbits-laptop litd[530504]: 2022-12-05 12:46:35.455 [DBG] MBOX: Server: Send mailbox created
Dec 05 12:46:36 suredbits-laptop litd[530504]: 2022-12-05 12:46:36.571 [DBG] MBOX: ServerConn: done creating gbn
Dec 05 12:46:36 suredbits-laptop litd[530504]: 2022-12-05 12:46:36.571 [DBG] MBOX: Accept: have existing mailbox connection, waiting
Dec 05 12:46:37 suredbits-laptop litd[530504]: 2022-12-05 12:46:37.965 [DBG] MBOX: Finished server handshake, client_key=023b93242ea960b95066d973f709b40312d72b30d68977b7876f981e00449be4bc
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] MBOX: Server: got failure on receive socket, re-trying: rpc error: code = Canceled desc = context canceled
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [WRN] GRPC: [transport] transport: http2Server.HandleStreams failed to read frame: error decrypting payload: error reading from go-back-n: cannot receive, gbn exited
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] MBOX: Server connection is closing
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] GRPC: [transport] transport: loopyWriter.run returning. connection error: desc = "transport is closing"
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] MBOX: closing receive stream
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] MBOX: closing send stream
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] MBOX: Server connection closed
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.062 [DBG] MBOX: Accept: done with existing conn
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.223 [DBG] MBOX: ServerConn: creating gbn, waiting for sync
Dec 05 12:46:59 suredbits-laptop litd[530504]: 2022-12-05 12:46:59.304 [DBG] MBOX: Server: receive mailbox created

System information

ubuntu 20.04

firefox 107.0.1

Running lnd 0.15.5, pool 0.6.1, loop 0.20.2, and litd 0.8.6

lit conf:

#######################################
# Application Options
#######################################
httpslisten=0.0.0.0:8443
lit-dir=/home/ben/.lit

network=mainnet

lnd-mode=remote
loop-mode=remote
pool-mode=remote

# Remote options
remote.lit-debuglevel=debug

# Remote lnd options
remote.lnd.rpcserver=localhost:10009
remote.lnd.macaroonpath=/home/ben/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
remote.lnd.tlscertpath=/home/ben/.lnd/tls.cert

# Remote loop options
remote.loop.rpcserver=localhost:11010
remote.loop.macaroonpath=/home/ben/.loop/mainnet/loop.macaroon
remote.loop.tlscertpath=/home/ben/.loop/mainnet/tls.cert

# Remote pool options
remote.pool.rpcserver=localhost:12010
remote.pool.macaroonpath=/home/ben/.pool/mainnet/pool.macaroon
remote.pool.tlscertpath=/home/ben/.pool/mainnet/tls.cert

#######################################
# Loop
#######################################
#loop.loopdir=/home/ben/.loop
#loop.loopoutmaxparts=5

#######################################
# Pool
#######################################
#pool.basedir=/home/ben/.pool
#pool.newnodesonly=true

#######################################
# Faraday
#######################################
faraday.faradaydir=/home/ben/.faraday
faraday.min_monitored=48h

# Faraday - bitcoin
faraday.connect_bitcoin=true
faraday.bitcoin.host=localhost
faraday.bitcoin.user=###
faraday.bitcoin.password=###
jamaljsr commented 1 year ago

We'll be adding more details to that error shortly. In the past, the cause of the issue has been due to your admin.macaroon being created by an older version of lnd which doesn't have the proper permissions for LNC to function properly. This fix is to delete the macaroon then restart lnd and litd.

levmi commented 1 year ago

Let us know if that works @benthecarman, if not, we'll have to dive in deeper to debug.

benthecarman commented 1 year ago

That worked, thanks!

sangaman commented 1 year ago

After months and months of running into this error message, trying at various times with different versions of litd, messing with networking settings, and scouring logs for clues, I was able to get LNC working finally by deleting and regenerating my admin.macaroon (I also had to generate a new pairing phrase). Thank you!