-
Notifications
You must be signed in to change notification settings - Fork 129
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
RTL crash when parsing JSON-RPC response #134
Comments
Opened issue at RTL as well: |
It seems unlikely that this is a conflict, rather the JSON parser in c-lightning-rest seems to be crashing while attempting to parse something. Sadly I'm not very experienced with JS code, so I can't really help with this one, but it is unlikely to be at all related to the rebalance plugin (it's not doing anything on its own, just waiting for |
Yeah, I figured it could be the RTL use of c-lightning-REST the source of the problem. |
I think it should be directed to the C-lightning-REST repo as it is neither related to rebalance nor RTL. The (common) issue comes from the As a quick-fix you could use RTL as a plugin instead, which uses its own brewed JSON parser and thus would not run into this specific error. |
Thanks. |
Wait, this happens each time you try to rebalance ?
https://github.com/Ride-The-Lightning/c-lightning-REST#option-2-run-as-c-lightning-plugin (not sure if this can be done directly from RTL though) |
When I load the plugin, the plugin works fine but RTL stops working.
So once I'm done rebalancing I rename the plugins directory to plugins.bak
and restart lightnind so it doesn't load rebalance.py and I can use RTL
until the next rebalancing.
I can't have both at the same time but I am not rebalancing so frequently
that it is unbearable.
I'll try that one as soon as I can! Thanks!!
…On Fri, Aug 28, 2020 at 1:05 PM Darosior ***@***.***> wrote:
Wait, this happens *each* time you try to rebalance ?
Not sure how to use RTL as a plugin though.
https://github.com/Ride-The-Lightning/c-lightning-REST#option-2-run-as-c-lightning-plugin
(not sure if this can be done directly from RTL though)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQLFTROB75MYLSTFYB45UFTSC7WWHANCNFSM4QEQGLZA>
.
|
Ah! That's more inconvenient than i thought it was. Pinging @saubyk . |
RTL will fix it in the next release so I won't touch anything in order to be able to let them know if the fix actually worked on my installation. Hopefully it won't be too long... :) I'll keep you posted. |
Hi @BTCBellyButton are you running C-Lightning-REST as a plugin or a standalone API server? If you are running it as a separate API server, can you try running it as a C-Lightning plugin and see if you run into the same problem? I believe the option which @darosior suggested is to run c-lightning-rest as the plugin, not RTL. Thanks. |
Hi @saubyk. It is running as a plugin. I just double checked.
BUT, I also tried to add the rebalance.py using the config file:
instead of just putting it in the plugins directory as I did when I had the issue. (I followed this guide: https://github.com/lightningd/plugins/blob/master/README.md#automatic-plugin-initialization) This way (plugin in config) it seems to be working:
So the issue seems to be related to the use of the "Automatic plugin initialization" |
NOPE. As soon as you reload the page the bug is back. |
Anytime, and sorry for the delay, hoping this gets resolved soon 👍 |
I was trying to use the Rebalance plugin but after restarting Lightningd, RTL stops working.
Below there is the Systemctl status output.
Before adding the Rebalance plugin this line for RTL was present:
├─35732 node /home/go/c-lightning-REST/plugin.js
So it seems that there is a conflict between the above and this one:
├─35208 python3 /home/go/.lightning/plugins/rebalance/rebalance.py
The text was updated successfully, but these errors were encountered: