lightning-node-connect icon indicating copy to clipboard operation
lightning-node-connect copied to clipboard

Unable to connect.

Open CoderBoogs opened this issue 2 years ago • 19 comments

Having an issue connecting to my LND Node via LNC. Getting an error that says "session not found failed to connect to the WASM client try reloading the page or Obtaining a new phrase"

Any idea how to troubleshoot/fix this?

CoderBoogs avatar Feb 15 '23 04:02 CoderBoogs

Hi @CoderBoogs - did you definitely create a session on the Litd side? (through the Litd UI most likely)

ellemouton avatar Feb 15 '23 06:02 ellemouton

Yes I did on two different nodes same errors

CoderBoogs avatar Feb 15 '23 11:02 CoderBoogs

do your Litd node logs say anything of interest at the time when you create the session?

ellemouton avatar Feb 15 '23 11:02 ellemouton

I am unsure how to access the logs .

CoderBoogs avatar Feb 16 '23 04:02 CoderBoogs

how are you running your Lit node? As a stand alone or through node packaging software (like Umbrel etc)?

ellemouton avatar Feb 16 '23 05:02 ellemouton

Yea as an app both on umbrel and on nodl

CoderBoogs avatar Feb 17 '23 13:02 CoderBoogs

random thought: did you by anychance have a previous session connection before? (ie, one that worked?) and in that case, when you went to start this new connection, did you definitely select the "connect with different paring phrase" option or did you just click on the magic link? If the later, try the former.

ellemouton avatar Feb 20 '23 08:02 ellemouton

If I follow I tried both. Even tried it with a node that I never used LNC with and still got the same error. In the slack channel they suggest I delete my macaroon but I don't know how using umbrel

CoderBoogs avatar Feb 21 '23 02:02 CoderBoogs

ok, next step would then be to figure out how to access the logs on your node so that we can make sure that the session is actually being started.

ellemouton avatar Feb 21 '23 06:02 ellemouton

this guide might be useful

ellemouton avatar Feb 21 '23 08:02 ellemouton

After running the logs where should i post the results here?

CoderBoogs avatar Feb 26 '23 20:02 CoderBoogs

Up to you. If the logs clearly dont contain private info then feel free to post it here. Otherwise, you can send them to me on the developer slack channel. My username there is elle

ellemouton avatar Feb 27 '23 06:02 ellemouton

You might need to re-generate your lnd macaroons by deleting the admin.macaroon, readonly.macaroon and invoice.macaroon (singular, not "invoices"). They are located in ~/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet for Umbrel. Then restart lnd and try again. If that doesn't help, we definitely need logs as @ellemouton mentioned.

guggero avatar Feb 27 '23 08:02 guggero

I am very new to all this stuff. so do i go to that location and then use linux commands to deleted those files? then restart lnd?

CoderBoogs avatar Feb 28 '23 13:02 CoderBoogs

Yes, exactly.

guggero avatar Feb 28 '23 14:02 guggero

after this latest terminal update i noticed now when i try to run LNC it says a macaroon has not been created yet. I also see in thurnderhub i can bake macaroons. Is it possible i can create a new macaroon in thurnderhub that lightning terminal will find then LNC will work? Also what permissions should i allow this macaroon i bake?

CoderBoogs avatar Mar 01 '23 17:03 CoderBoogs

I don't think that will work, since you can't easily tell lightning terminal what macaroon to use. So you deleted the macaroons, restarted lnd, restarte lightning terminal and now get a new error? Can you post the full error (and if possible some logs) here please?

guggero avatar Mar 02 '23 08:03 guggero

I am sorry I just don’t know how do do all that. I know how to ssh in and know basics linux but that is as far as my knowledge will go

CoderBoogs avatar Mar 10 '23 01:03 CoderBoogs

@CoderBoogs , did you do the above steps that you mentioned?

so do i go to that location and then use linux commands to deleted those files? then restart lnd?

ellemouton avatar Mar 10 '23 07:03 ellemouton