Rebalance plugin errors out
See original GitHub issueHello. 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@vincenzopalazzo here is my issue report. you asked to tag you but I had created the issue before I saw your request!
@vincenzopalazzo @cdecker thanks for replying.
yes, this issue is solved. I’ll call it closed.