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

use exit codes to denote success/failure #185

Open
C-Otto opened this issue Jul 27, 2021 · 4 comments
Open

use exit codes to denote success/failure #185

C-Otto opened this issue Jul 27, 2021 · 4 comments

Comments

@C-Otto
Copy link
Owner

C-Otto commented Jul 27, 2021

  • 0: rebalanced some amount
  • -1: didn't rebalance
  • -2: generic error
  • -3: didn't find route (after several attempts?)
  • ...
@C-Otto
Copy link
Owner Author

C-Otto commented Sep 23, 2021

This is already implemented for the main use case: success vs. failure

@GordianLN
Copy link

So, commenting here instead of bugging you on plebnet.
I keep getting exitcode!=0 occasionally, even if rebalance succeeds.
Finally supposing it was because I prepended timeout --preserve-status -k 5 120 to the rebalance command, and maybe the 5s kill happened too soon before rebalance-lnd had time to graciously exit, and was prevented to communicate a 0 exit code even if lnd kept working and completed the circular route.
So now I use 30s kill timeout, but I still get fake failures on exit code from time to time.

Do you reckon even 30s is not enough, or is there something else I can do to help you debug this?

@C-Otto
Copy link
Owner Author

C-Otto commented Jun 2, 2022

Payments can be stuck for hours...

@GordianLN
Copy link

There's probably no solution to this, even adding a --timeout <seconds> to rebalance-lnd will hit the same wall, leaving possibly a payment hanging as failed that instead could succeed later on.

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

2 participants