lightninglabs / lightning-terminal

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

UNABLE TO PERFORM LOOP IN error says use 'listauth' #117

Closed pfergi42 closed 4 years ago

pfergi42 commented 4 years ago

I have litd up and running and my first channel opened. I only have receiving capacity so I'm trying to do a LOOP IN, but I get this error:

listauth

It suggests to use 'listauth' to find the token file name. Is listauth a lncli or litd command?

What token file is this referring to?

Thank you in advance.

jamaljsr commented 4 years ago

Hey @pfergi42, listauth is a loop command.

Try this (change the paths to the cert and macaroon if necessary)

loop listauth --rpcserver=localhost:10009 --tlscertpath=$HOME/.lnd/tls.cert --macaroonpath=$HOME/.lnd/data/chain/bitcoin/mainnet/admin.macaroon

It is safe to delete or rename the LSAT file. A new one will be regenerated.

pfergi42 commented 4 years ago

Thank you. When I run that command (after changing path to cert) I get this error:

Incorrect Usage: flag provided but not defined: -rpcserver

On Fri, Sep 11, 2020 at 8:59 PM Jamal James notifications@github.com wrote:

Hey @pfergi42 https://github.com/pfergi42, listauth is a loop command.

Try this (change the paths to the cert and macaroon if necessary)

loop listauth --rpcserver=localhost:10009 --tlscertpath=$HOME/.lnd/tls.cert --macaroonpath=$HOME/.lnd/data/chain/bitcoin/mainnet/admin.macaroon

It is safe to delete or rename the LSAT file. A new one will be regenerated.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lightninglabs/lightning-terminal/issues/117#issuecomment-691400785, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6VX6HUXKCEH7TBPFP5ASLSFLW2JANCNFSM4RIR26OQ .

jamaljsr commented 4 years ago

Incorrect Usage: flag provided but not defined: -rpcserver

This could be one of two things:

jamaljsr commented 4 years ago

Also, you can also just look in the .loop dir manually. This is where the pending LSAT token files are stored.

Depending on your OS, it'll be in one of these locations:

pfergi42 commented 4 years ago

the --rpcserver flag requires two dashes --. You only show one in the output.

I was using two dashes, it's just the error message only shows one.

Also, you can also just look in the .loop dir manually. This is where the pending LSAT token files are stored.

Thank you, I was able to find it on my Ubuntu machine in the ~/.loop/ directory. I deleted the LSAT token and tried again, but then I get this "insufficient balance" error, however, I do have sufficient on-chain balance. I'm attempting to Loop In 300,000 sats:

Screen Shot 2020-09-14 at 12 29 22 PM

Screen Shot 2020-09-14 at 12 32 03 PM

Perhaps I'm misunderstanding something fundamental here? This channel already exists and has only receiving capacity. Can the "loop in" actually increase the overall size of the channel capacity?

guggero commented 4 years ago

The problem is not the loop in itself but the LSAT authentication that is required to access the loop service in general. You have to be able to pay 1 satoshi to get access to the service (this is a one-time payment, the token will not expire). So in a situation like yours where you only have outbound capacity and "can send" of 0, you cannot pay for the token. This is an edge case that we somehow have to solve.

You can contact me on Slack and I'll pay you an invoice of a few Satoshis so you can use the loop service.

pfergi42 commented 4 years ago

Thanks for you help @guggero. With a little sending capacity I was able to get this going.

Perhaps a suggestion or possible feature request: with the LSAT token, because it's regenerated every time it's needed, perhaps the Loop binary can delete it for the user and regenerate it so that error doesn't occur for future users?