lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
509 stars 91 forks source link

Lightning Node Connect fails #509

Open http402 opened 1 year ago

http402 commented 1 year ago

Just installed LND LIT from the Raspiblitz menu.

Trying to pair via https://terminal.lightning.engineering/#/connect/pair gives me an error:

Failed to connect Connected. rpc error: code = Unknown desc = lnd macaroon validation failed: rpc error: code = Unknown desc = permission denied. Try reloading the page or obtaining a new pairing phrase.

Tried reloading, rebooting, generating new phrase both from webinterface and lncli. Any suggestions?

guggero commented 1 year ago

You need to re-generate your lnd macaroons. You can do that by removing the admin.macaroon, readonly.macaroon and invoice.macaroon (singular, not invoices.macaroon) in the lnd data directory (I think somewhere in /mnt/hdd/lnd/data/chain/bitcion/mainnet/ on RaspiBlitz). Then restart lnd and Lightning Terminal.

http402 commented 1 year ago

regenerated and restartet everything, now i get a different error:

Failed to connect Session Not Found. Failed to connect the WASM client to the proxy server. Try reloading the page or obtaining a new pairing phrase.

http402 commented 1 year ago

i'm using tor btw, maybe that's the issue?

levmi commented 1 year ago

The re-try was with a totally new pairing phrase, correct? They expire after 10 minutes is why I ask.

http402 commented 1 year ago

i hit the 'copy pairing phrase' button, not sure if that generated a new phrase.

now i get the rpc error again after generating a new phrase.

nvm, i'll keep playing around. just wanted to try terminal, nothing important. thx!

levmi commented 1 year ago

Happy to help you debug if you want to keep trying! If there's an issue, we definitely want to get to the bottom of it. Could you try running debug logs in your browser console while connecting? That could give us more information about the problem.

http402 commented 1 year ago

like this?

2023-03-04 14:11:54.283 [DBG] WASM: WASM client ready for connecting index.js:2:928 2023-03-04 14:11:54.871 [DBG] GRPC: [core] parsed scheme: "" index.js:2:928 2023-03-04 14:11:54.877 [DBG] GRPC: [core] scheme "" not registered, fallback to default scheme index.js:2:928 2023-03-04 14:11:54.877 [DBG] GRPC: [core] ccResolverWrapper: sending update to cc: {[{mailbox.terminal.lightning.today:443 0 }] } index.js:2:928 2023-03-04 14:11:54.878 [DBG] GRPC: [core] ClientConn switching balancer to "pick_first" index.js:2:928 2023-03-04 14:11:54.878 [DBG] GRPC: [core] Channel switches to new LB policy "pick_first" index.js:2:928 2023-03-04 14:11:54.879 [DBG] GRPC: [core] Subchannel Connectivity change to CONNECTING index.js:2:928 2023-03-04 14:11:54.879 [DBG] GRPC: [core] Subchannel picks a new address "mailbox.terminal.lightning.today:443" to connect index.js:2:928 2023-03-04 14:11:54.879 [DBG] MBOX: Client: Dialing... index.js:2:928 2023-03-04 14:11:54.879 [DBG] MBOX: New client conn, read_stream=2fa125183e957489692ab288d3097512b5626e08003657c1e07ef49cfc8eb85c6d3ccd7d05fe920f1ddd227faaf66cd9f45f77c2fe3056cfc230cbca9af830e0, write_stream=2fa125183e957489692ab288d3097512b5626e08003657c1e07ef49cfc8eb85c6d3ccd7d05fe920f1ddd227faaf66cd9f45f77c2fe3056cfc230cbca9af830e1 index.js:2:928 2023-03-04 14:11:54.880 [DBG] MBOX: Client: Attempting to create send socket/stream index.js:2:928 2023-03-04 14:11:54.879 [DBG] GRPC: [core] pickfirstBalancer: UpdateSubConnState: 0x1feeeb0, {CONNECTING } index.js:2:928 2023-03-04 14:11:54.882 [DBG] GRPC: [core] Channel Connectivity change to CONNECTING index.js:2:928 2023-03-04 14:11:55.761 [DBG] MBOX: Client: Connected to send socket/stream index.js:2:928 2023-03-04 14:11:56.349 [DBG] MBOX: Client: receive mailbox initialized index.js:2:928 2023-03-04 14:11:56.541 [DBG] MBOX: Starting client handshake index.js:2:928 2023-03-04 14:11:57.920 [DBG] MBOX: Kicking off client handshake with client_key=0338b0e3c08851f8bea23e107233bde0248277a670b72c9b798ccc6bb1689f54dd index.js:2:928 2023-03-04 14:11:58.319 [DBG] MBOX: Completed client handshake with with server_key=023d4dea88223d399125d2cc14cacaf9507aa788f66b429d0f0255ca434a0beea3 index.js:2:928 2023-03-04 14:11:58.320 [TRC] MBOX: Client handshake completed index.js:2:928 2023-03-04 14:11:58.743 [DBG] GRPC: [core] Subchannel Connectivity change to READY index.js:2:928 2023-03-04 14:11:58.744 [DBG] GRPC: [core] pickfirstBalancer: UpdateSubConnState: 0x1feeeb0, {READY } index.js:2:928 2023-03-04 14:11:58.745 [DBG] GRPC: [core] Channel Connectivity change to READY index.js:2:928 2023-03-04 14:11:58.746 [DBG] WASM: WASM client connected to RPC index.js:2:928 2023-03-04 14:11:58.926 [INF] WASM: Calling 'lnrpc.Lightning.GetInfo' on RPC with request {} index.js:2:928