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

rebalance-lnd crashing on exclusion of closed channel ids #252

Closed
blckbx opened this issue Jan 13, 2022 · 0 comments
Closed

rebalance-lnd crashing on exclusion of closed channel ids #252

blckbx opened this issue Jan 13, 2022 · 0 comments

Comments

@blckbx
Copy link
Contributor

blckbx commented Jan 13, 2022

Background:

Rebalance-lnd crashes on closed channel ids.
I'm running several cronjobs of rebalance-lnd. Lately I closed a channel but forgot it was excluded in several rebalance-lnd cronjobs. Reading syslog it showed that rebalance-lnd was crashing.

*/5 * * * * /usr/bin/python3 /home/user/rebalance-lnd/rebalance.py -f -1 -t -1 --exclude <channel id of closed channel>

Your Environment:

  • lnd-0.14.1-beta
  • rebalance-lnd latest

Steps to reproduce:

  • Run rebalance-lnd excluding a channel id that has been closed previously
  • Watch traceback

Expected behaviour:

  • Ignoring closed channel exclusion or warning message without traceback (?)

Actual behaviour:

  • rebalance-lnd is throwing error "Unable to find channel edge " and traceback
Unable to find channel edge xxx
Traceback (most recent call last):
  File "/home/user/rebalance-lnd/rebalance.py", line 540, in <module>
    success = main()
  File "/home/user/rebalance-lnd/rebalance.py", line 326, in main
    return Rebalance(arguments).start()
  File "/home/user/rebalance-lnd/rebalance.py", line 258, in start
    return Logic(
  File "/home/user/rebalance-lnd/logic.py", line 82, in rebalance
    self.initialize_ignored_channels(routes, fee_limit_msat, min_fee_last_hop)
  File "/home/user/rebalance-lnd/logic.py", line 380, in initialize_ignored_channels
    routes.ignore_channel(chan_id)
  File "/home/user/rebalance-lnd/routes.py", line 132, in ignore_channel
    edge = self.lnd.get_edge(chan_id)
  File "/home/user/rebalance-lnd/lnd.py", line 142, in get_edge
    return self.stub.GetChanInfo(ln.ChanInfoRequest(chan_id=channel_id))
  File "/home/user/.local/lib/python3.9/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/user/.local/lib/python3.9/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = "edge not found"
	debug_error_string = "{"created":"@1642088005.995604515","description":"Error received from peer ipv4:127.0.0.1:10009","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"edge not found","grpc_status":2}"
>
@C-Otto C-Otto closed this as completed in ab5c8f8 Jan 14, 2022
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

1 participant