lightninglabs / lightning-node-connect

MIT License
78 stars 22 forks source link

Unable to connect. #68

Open CoderBoogs opened 1 year ago

CoderBoogs commented 1 year ago

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?

ellemouton commented 1 year ago

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

CoderBoogs commented 1 year ago

Yes I did on two different nodes same errors

ellemouton commented 1 year ago

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

CoderBoogs commented 1 year ago

I am unsure how to access the logs .

ellemouton commented 1 year ago

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

CoderBoogs commented 1 year ago

Yea as an app both on umbrel and on nodl

ellemouton commented 1 year ago

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.

CoderBoogs commented 1 year ago

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

ellemouton commented 1 year ago

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 commented 1 year ago

this guide might be useful

CoderBoogs commented 1 year ago

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

ellemouton commented 1 year ago

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

guggero commented 1 year ago

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.

CoderBoogs commented 1 year ago

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?

guggero commented 1 year ago

Yes, exactly.

CoderBoogs commented 1 year ago

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?

guggero commented 1 year ago

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?

CoderBoogs commented 1 year ago

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

ellemouton commented 1 year ago

@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?