Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BalanceTooLow$ despite adequate funding #245

Closed
no-zzz-un opened this issue May 21, 2020 · 13 comments
Closed

BalanceTooLow$ despite adequate funding #245

no-zzz-un opened this issue May 21, 2020 · 13 comments

Comments

@no-zzz-un
Copy link

no-zzz-un commented May 21, 2020

My payments to 3 vendors (bitrefill, satoshis.place, yalls.org) fail immediately with:

#1 of 1: BalanceTooLow$
Type: Local

I have two channels, both status normal, both with sufficient "Can send" balances.

update: I've closed those two channels and opened a new one. The problem persists.

eclair_channels
eclair_payment_failure

@AdamISZ
Copy link

AdamISZ commented Jun 11, 2020

I have exactly the same problem. App is up to date (latest version), I tried resetting wallet cache and resetting network database, but made no difference. I have 2 channels, one has sending capacity about 5 times the size of the payment (as reported on the app, and in the log), but above failure is repeatable. Note that this happened today, but I have been using the channel successfully to make 5 or 6 payments over the last week. No idea what changed.

Edit: I should mention that both channels open are acinq nodes, as above. The fact that there are two doesn't seem so relevant (especially given the evidence in the OP).

@t-bast
Copy link
Member

t-bast commented Jun 11, 2020

Sorry I missed this issue. This seems linked to some recent MPP changes.
Could you send me eclair-mobile logs by email (bastien@acinq.fr)?
We have a bunch of important changes coming to the MPP split algorithm (ACINQ/eclair#1427) that should be available in the next eclair-mobile version, but if there are other bugs lurking it would be good to fix them asap.

@AdamISZ
Copy link

AdamISZ commented Jun 11, 2020

Log sent @t-bast

@t-bast
Copy link
Member

t-bast commented Jun 11, 2020

We recently activated MPP on eclair-mobile, and there is an issue with how the splitting algorithm behaves when you have only a few channels with big(-ish) capacity and send non-negligible amounts to non-neighbour nodes.
We're choosing to deactivate MPP for now (expect a new release of eclair-mobile very soon with that fix) and will re-activate in the next version, with the brand new splitting algorithm that should behave much better.

@t-bast
Copy link
Member

t-bast commented Jun 29, 2020

This should be fixed with the latest eclair-mobile release that temporarily disables splitting multipart payments.
The next release will provide the new splitting algorithm (available on eclair-core master).

@t-bast t-bast closed this as completed Jun 29, 2020
@AdamISZ
Copy link

AdamISZ commented Jun 29, 2020

Yeah sorry deleted my comment when i realised there was an update. And it works 👍

@t-bast
Copy link
Member

t-bast commented Jun 29, 2020

Great, good to know!

@AdamISZ
Copy link

AdamISZ commented Jul 2, 2020

I think I may have spoken too soon in saying this is resolved. I just did a trivial test payment to a btcpayserver instance before my message above ("it works"), but I have since found that every attempt to pay bitrefill has failed (I guess 6 or so attempts over the last several days), interestingly each attempt (amounts are far below the channel balance) has as the first of its ten failures an "insufficient funds: missing = Satoshi(X) ...", and all the remaining failures say channel unavailable or disabled.

@t-bast
Copy link
Member

t-bast commented Jul 2, 2020

Hey @AdamISZ, this indicates an issue either with the state of the channels, with the routing DB or with how we manage retries.
Could you send me your eclair logs for some of those payment attempts?

@t-bast
Copy link
Member

t-bast commented Jul 2, 2020

In the channels tab, everything looks right? All the channels indicate a NORMAL state?

@AdamISZ
Copy link

AdamISZ commented Jul 2, 2020

Yes channels are normal state, 2 channels one a bit smaller than the required amount (afair) the other very much larger.

@t-bast
Copy link
Member

t-bast commented Jul 2, 2020

I'm suspecting an issue with how channel balances are propagated throughout the app, I'll check exactly what commit of eclair-core the latest eclair-mobile version uses.
If you could send me some logs that would be helpful!

@AdamISZ
Copy link

AdamISZ commented Jul 2, 2020

Sent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants