Closed PsySc0rpi0n closed 3 months ago
thats not how you run cln plugins. You need to put a sym link to sling in your plugins folder or put
plugin=/path/to/sling
in you cln config or run
lightning-cli plugin start /path/to/sling
then you get plenty logging if your general logging is set to debug :)
thats not how you run cln plugins. You need to put a sym link to sling in your plugins folder or put
plugin=/path/to/sling
in you cln config or run
lightning-cli plugin start /path/to/sling
then you get plenty logging if your general logging is set to debug :)
Yes, I know, but look what I get after starting the plugin:
...
{
"name": "/home/psysc0rpi0n/Downloads/plugins/sling/sling",
"active": true,
"dynamic": true
}
]
}
When I try to use it:
$ lightning-cli sling
{
"code": -32601,
"message": "Unknown command 'sling'"
}
Edited; I may have overlooked the README file. Let me try to run it properly now!
Ok, may I ask a couple more questions in this thread or I should open other issues? I'll ask here. If you see fit, I'll open new issue with quiestions.
1 - How can we tell a job has finished, either with success or not? The only output from the plugin in the terminal is this:
$ lightning-cli sling-go
{
"jobs_started": 4
}
In the debug file I see:
2024-05-07T22:18:19.635Z INFO plugin-sling: 827557x1201x1/1: No candidates found. Adjust out_ppm or wait for liquidity. Sleeping...
2024-05-07T22:18:19.636Z INFO plugin-sling: 827557x1201x1/1: could not find a route. Sleeping...
2024-05-07T22:18:19.658Z INFO plugin-sling: 827557x1201x1/2: No candidates found. Adjust out_ppm or wait for liquidity. Sleeping...
2024-05-07T22:18:19.658Z INFO plugin-sling: 827557x1201x1/2: could not find a route. Sleeping...
2024-05-07T22:18:19.678Z INFO plugin-sling: 827557x1201x1/3: No candidates found. Adjust out_ppm or wait for liquidity. Sleeping...
2024-05-07T22:18:19.679Z INFO plugin-sling: 827557x1201x1/3: could not find a route. Sleeping...
2024-05-07T22:18:19.700Z INFO plugin-sling: 827557x1201x1/4: No candidates found. Adjust out_ppm or wait for liquidity. Sleeping...
2024-05-07T22:18:19.701Z INFO plugin-sling: 827557x1201x1/4: could not find a route. Sleeping...
The sleeping word is the keyword to say it failed?
Is it possible to check which routes the plugin have tried or is actually trying?
if you set logging to debug level the routes will be printed to log. After the fact sling only saves your "from" and "to" local channels for the statistics: use sling-stats
if you set logging to debug level the routes will be printed to log. After the fact sling only saves your "from" and "to" local channels for the statistics: use sling-stats to see the list of the top_5_channel_partners.
You mean plugin debug level or CLN debug level? I couln't find an option to set debug level.
And sling-stats
probably will only show routes of succcessful rebalances no?
This i what sling-stats
shows to me.
+----------------+---------------+--------------------------------------------------------------------+------------+-----------+----------+------------------+------------------+
| alias | scid | pubkey | status | rebamount | w_feeppm | last_route_taken | last_success_reb |
+----------------+---------------+--------------------------------------------------------------------+------------+-----------+----------+------------------+------------------+
| YELLOWWAFFLE | 735144x2710x1 | 0313bae3a7d09d7f1a7ff595918567ba39e503789884d003036a88f7fcea3ec66f | 1:NoRoutes | 0 | 0 | Never | Never |
| | | | 2:NoRoutes | | | | |
| | | | 3:NoRoutes | | | | |
| | | | 4:NoRoutes | | | | |
+----------------+---------------+--------------------------------------------------------------------+------------+-----------+----------+------------------+------------------+
this is how you can set the log level of sling to debug: log-level=debug:plugin-sling
. And i meant sling-stats WITH the scid of a job, e.g. sling-stats 735144x2710x1
setting the log-level for subsystems/plugins is documented here btw: https://docs.corelightning.org/reference/lightningd-config
Is there any way of getting any output whatsoever from the plugin? I tried to run it but the only thing I could see was the prompt locked. I had to terminate te plugin with ctrl+c after a couple of hours of absolute inactivity.
The command I ued was: