question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rebalance plugin errors out

See original GitHub issue

Hello. First things first.

C-Lightning Version: v0.10.2 Debian BullsEye on a RockPro64 single board computer

I’m trying to rebalance a channel and I set the fees for the 2 participating channels to base=0 and ppm=0. The channel I want to rebalance is 1,426,049 sats on the remote side and 23,951 sats on local side.

The other channel is 1,523,465 in local side and 52,352 on the remote side.

I already tried a few different combinations of maxfeepercent and retry_for parameters. Also tried with no parameters but in_scid and out_scid but I always get one of 2 errors that I’ll paste here at the end.

The commands I already tried were:

lightning-cli rebalance -k outgoing_scid=665969x1380x0 incoming_scid=690200x2004x0
lightning-cli rebalance -k outgoing_scid=665969x1380x0 incoming_scid=690200x2004x0 maxfeepercent=0.1 retry_for=180

I tried a few percent values here, up to the default of 0.5. I also tried different retry times, up to 600s

I also tried with fees different from 0 but I always get the same errors.

Error 1:

{
   "code": -32600,
   "message": "Error while processing rebalance: RPC call failed: method: rebalance, payload: {'outgoing_scid': '665969x1380x0', 'incoming_scid': '690200x2004x0', 'msatoshi': None, 'maxfeepercent': 0.5, 'retry_for': 600, 'exemptfee': 5000msat}, error: {'message': 'Error with incoming channel'}",
   "traceback": "Traceback (most recent call last):\n  File \"/home/psysc0rpi0n/Downloads/plugins/rebalance/rebalance.py\", line 204, in rebalance\n    plugin.rpc.waitsendpay(payment_hash, retry_for + start_ts - int(time.time()))\n  File \"/usr/local/lib/python3.9/dist-packages/pyln/client/lightning.py\", line 1239, in waitsendpay\n    return self.call(\"waitsendpay\", payload)\n  File \"/usr/local/lib/python3.9/dist-packages/pyln/client/lightning.py\", line 387, in call\n    raise RpcError(method, payload, resp['error'])\npyln.client.lightning.RpcError: RPC call failed: method: waitsendpay, payload: {'payment_hash': 'ff879063a49bb972567e6df59cdfbea8668833a6fe2e5adfee4ea1c46ac7cd56', 'timeout': 544}, error: {'code': 203, 'message': 'failed: WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS (reply from remote)', 'data': {'id': 252, 'payment_hash': 'ff879063a49bb972567e6df59cdfbea8668833a6fe2e5adfee4ea1c46ac7cd56', 'groupid': 4, 'destination': '03fef777d58a529df02a3fb267690e0c9033767b555cc1c63844bb2d3498789f91', 'msatoshi': 701049000, 'amount_msat': 701049000msat, 'msatoshi_sent': 702637778, 'amount_sent_msat': 702637778msat, 'created_at': 1636805418, 'status': 'pending', 'erring_index': 5, 'failcode': 16399, 'failcodename': 'WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS', 'erring_node': '03fef777d58a529df02a3fb267690e0c9033767b555cc1c63844bb2d3498789f91', 'erring_channel': '690200x2004x0', 'erring_direction': 0, 'raw_message': '400f0000000029c928a8000ad38c'}}\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.9/dist-packages/pyln/client/plugin.py\", line 621, in _dispatch_request\n    result = self._exec_func(method.func, request)\n  File \"/usr/local/lib/python3.9/dist-packages/pyln/client/plugin.py\", line 606, in _exec_func\n    return func(*ba.args, **ba.kwargs)\n  File \"/home/psysc0rpi0n/Downloads/plugins/rebalance/rebalance.py\", line 220, in rebalance\n    return cleanup(plugin, label, payload, success_msg, e)\n  File \"/home/psysc0rpi0n/Downloads/plugins/rebalance/rebalance.py\", line 77, in cleanup\n    raise error\n  File \"/home/psysc0rpi0n/Downloads/plugins/rebalance/rebalance.py\", line 211, in rebalance\n    raise RpcError(\"rebalance\", payload, {'message': 'Error with incoming channel'})\npyln.client.lightning.RpcError: RPC call failed: method: rebalance, payload: {'outgoing_scid': '665969x1380x0', 'incoming_scid': '690200x2004x0', 'msatoshi': None, 'maxfeepercent': 0.5, 'retry_for': 600, 'exemptfee': 5000msat}, error: {'message': 'Error with incoming channel'}\n"
}

Error 2

{
   "code": -32600,
   "message": "Error while processing rebalance: RPC call failed: method: rebalance, payload: {'outgoing_scid': '665969x1380x0', 'incoming_scid': '690200x2004x0', 'msatoshi': None, 'maxfeepercent': 0.5, 'retry_for': 60, 'exemptfee': 5000msat}, error: {'message': 'Rebalance failed'}",
   "traceback": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.9/dist-packages/pyln/client/plugin.py\", line 621, in _dispatch_request\n    result = self._exec_func(method.func, request)\n  File \"/usr/local/lib/python3.9/dist-packages/pyln/client/plugin.py\", line 606, in _exec_func\n    return func(*ba.args, **ba.kwargs)\n  File \"/home/psysc0rpi0n/Downloads/plugins/rebalance/rebalance.py\", line 221, in rebalance\n    return cleanup(plugin, label, payload, success_msg)\n  File \"/home/psysc0rpi0n/Downloads/plugins/rebalance/rebalance.py\", line 77, in cleanup\n    raise error\npyln.client.lightning.RpcError: RPC call failed: method: rebalance, payload: {'outgoing_scid': '665969x1380x0', 'incoming_scid': '690200x2004x0', 'msatoshi': None, 'maxfeepercent': 0.5, 'retry_for': 60, 'exemptfee': 5000msat}, error: {'message': 'Rebalance failed'}\n"
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PsySc0rpi0ncommented, Nov 13, 2021

@vincenzopalazzo here is my issue report. you asked to tag you but I had created the issue before I saw your request!

0reactions
PsySc0rpi0ncommented, Nov 17, 2021

@vincenzopalazzo @cdecker thanks for replying.

yes, this issue is solved. I’ll call it closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The following plugins could not be found - Google Groups
Using rebalance plugin: I load queues, then I use "go" command. Then when I try to get the report I see that just...
Read more >
ERROR: The group is rebalancing, so a rejoin is needed #691
Hi, i need some help with the error message from the title. ... and kick it out of the group (depending on the...
Read more >
iZotope rx7 Music Rebalance issue - Gearspace.com
Hey there, Does anyone else find that the Music Rebalance in rx7 doesn't work ... arounds [other than exporting the track out and...
Read more >
Rebalance - Audio plugin - YouTube
The Rebalance plugin identifies vocal, bass, and drums in an already done musical mix, and makes possible to modify the gain of each...
Read more >
Music Rebalance - RX 8 Help - Amazon S3
Music Rebalance leverages a machine learning algorithm trained to identify and ... it will not be reflected until you've stopped and started playback...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found