lightning-terminal icon indicating copy to clipboard operation
lightning-terminal copied to clipboard

UNABLE TO PERFORM LOOP OUT (error message in Lightning Terminal on Umbrel). LOOP IN still works

Open RosevilleLarry opened this issue 2 years ago • 20 comments

Need help debugging loop out failures in Lightning Terminal on Umbrel. I'm getting the following message regardless of the size of the transfer: "UNABLE TO PERFORM LOOP OUT channel balance too low for loop out amount: Request swap amount of xxxx sats along with the maximum routing fee of xxxx sats is more than what can be routed giving current state of the channel set. LOOP IN appears to still be working. Any ideas?

RosevilleLarry avatar Aug 13 '21 04:08 RosevilleLarry

The total amount you can loop out is limited to the sum of your local channel balances. Eg, if you have 200k sat outgoing capacity, you can only loop out amounts < 200k, because otherwise you don't have local funds to push out the the server (and thus acquire inbound).

If you don't have local balance, you probably don't need to loop out because you've got inbound already. If you have a very small number of channels open, you could open new channels then loop out over them to improve your inbound.

carlaKC avatar Aug 13 '21 06:08 carlaKC

Thanks for the idea. However, I have a ton of outgoing capacity and much less inbound capacity. Any other things to check/try?

RosevilleLarry avatar Aug 13 '21 06:08 RosevilleLarry

If you could tell me the following, I can try to reproduce:

  • Loop out amount
  • Routing fee
  • Local balances on your channels

Also, are you setting a specific outgoing channel ID for the swap? If so, the local balance on that specific channel would be useful as well.

carlaKC avatar Aug 13 '21 06:08 carlaKC

screenshot1 screenshot2 screenshot3 screenshot4

RosevilleLarry avatar Aug 13 '21 07:08 RosevilleLarry

@RosevilleLarry , are you by any chance setting loop.loopoutmaxparts to something specific in the config file or in a cmd line option?

ellemouton avatar Aug 13 '21 11:08 ellemouton

I'm using all the stock Umbrel interfaces, not the command line. No loopoutmaxparts in my config file. Attached is my full config file. Please let me know if there are any settings that look suspicious

lnd.conf.backup.txt

RosevilleLarry avatar Aug 13 '21 14:08 RosevilleLarry

A new observation - LOOP OUT is working on this node in RTL, so it seems to be a Lightning Terminal issue. Where are the LOOP fee limits set in Lightning Terminal?

RosevilleLarry avatar Aug 14 '21 04:08 RosevilleLarry

it feels to me like my LT has stale channel balance info. is there a way to force LT to re-scan my channels to refresh the balances?

RosevilleLarry avatar Aug 14 '21 05:08 RosevilleLarry

when I rebooted my system, I get a new LT error message: "UNABLE TO FETCH THE NOD connection error: desc = "transport: Error while dialing dial tcp xx.xx.xxx.xxx:12010: i/o timeout"

RosevilleLarry avatar Aug 15 '21 18:08 RosevilleLarry

Looks like your node has had an issue connecting to the pool server there? That should be resolved now (we had some brief server downtime).

If you boot up LiT, could you check that your channel balances equal the balance output in lncli listchannels?

Also what version of LiT are you running? And are lnd/loop/pool in integrated or remote mode?

carlaKC avatar Aug 16 '21 06:08 carlaKC

I have been having the exact same issue on my Umbrel. RTL was able to perform the same loop out for me while Terminal gave me an error messages. Terminal version v0.5.0-alpha.

PLK2 avatar Sep 02 '21 01:09 PLK2

I've been having the same issue as above - node is run on Umbrel, can't perform Loop Out on Terminal, but it works on RTL. Same error message as the first comment.

alex-klyuev avatar Oct 11 '21 17:10 alex-klyuev

Are you all selecting a specific channel or using the automatic selection when performing the Loop Out using Terminal and in RTL?

jamaljsr avatar Oct 11 '21 22:10 jamaljsr

specific channel

On Mon, Oct 11, 2021 at 3:52 PM Jamal James @.***> wrote:

Are you all selecting a specific channel or using the automatic selection when performing the Loop Out using Terminal and in RTL?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lightninglabs/lightning-terminal/issues/259#issuecomment-940500603, or unsubscribe https://github.com/notifications/unsubscribe-auth/APHKT3BAGGPCGHQ65CTEXSDUGNTDNANCNFSM5CC25PSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

RosevilleLarry avatar Oct 11 '21 23:10 RosevilleLarry

specific channel

Does RTL allow you to select a specific channel as well?

jamaljsr avatar Oct 11 '21 23:10 jamaljsr

yes

On Mon, Oct 11, 2021 at 4:46 PM Jamal James @.***> wrote:

specific channel

Does RTL allow you to select a specific channel as well?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lightninglabs/lightning-terminal/issues/259#issuecomment-940522071, or unsubscribe https://github.com/notifications/unsubscribe-auth/APHKT3FZTVLGSPPZT6ERLO3UGNZMLANCNFSM5CC25PSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

RosevilleLarry avatar Oct 12 '21 01:10 RosevilleLarry

Are you able to perform a Loop Out in Terminal without specifying a channel?

Did you check that your channel balances in the UI match the balances shown in lncli listchannels output?

jamaljsr avatar Oct 12 '21 11:10 jamaljsr

yes, I can perform a bulk loop out (no channels specified). When performing the bulk loop out I don't see the errors that I see when trying to loop out a single channel. A few of those bulk loop outs succeeded (only a small amount transferred), but of the bult loop outs eventually fail.

when I compare the terminal balances to the actual balances they are higher on the terminal side (for both snd & rcv balances). The terminal balance differences are usually 50k or 100k higher than the actual balances, but I did see two terminal send balances that were much higher than the actual balance (650.688K & 1.25087M higher)

On Tue, Oct 12, 2021 at 4:46 AM Jamal James @.***> wrote:

Are you able to perform a Loop Out in Terminal without specifying a channel?

Did you check that your channel balances in the UI match the balances shown in lncli listchannels output?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lightninglabs/lightning-terminal/issues/259#issuecomment-940936512, or unsubscribe https://github.com/notifications/unsubscribe-auth/APHKT3AQLTJYC2P6R4GWWV3UGQN3BANCNFSM5CC25PSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

RosevilleLarry avatar Oct 12 '21 14:10 RosevilleLarry

Facing a similar issue but cannot find the reason for it. I'm getting this error message every time I'm trying to do a loop-out on one of my three channels (the other two worked well).

UNABLE TO PERFORM LOOP OUT
channel balance too low for loop out amount: Requested swap amount of 250000 sats along with the maximum routing fee of 5000 sats is more than what can be routed given current state of the channel set

My inbound liquidity is more than 290k and outbound liquidity is shown as more than 1.3 mio. So should be no problem to execute this loop out, right?

bart avatar Oct 28 '21 13:10 bart

Okay, looks like it really is an issue with lightning terminal itself. Tried to execute necessary commands in the CLI on my Umbrel node which worked without any problems (at least to fire the loop-out). Will share commands here so that you guys can use it, too.

docker ps
docker exec -it <lightning-terminal container ID> /bin/bash
echo "alias lit-loop=\"loop --rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.cert\"" > .bashrc
source .bashrc
lit-loop out --channel <channel-id> 250000
lit-loop monitor

bart avatar Oct 28 '21 14:10 bart