Ride-The-Lightning / c-lightning-REST

REST APIs for Core Lightning written with node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lightningd: --plugin: Failed to register /home/nicolas/c-lightning-REST/plugin.js: Invalid argument

NVG2021 opened this issue · comments

Hi there, good day
I've upgraded my Ubuntu from 20.04 to 22.04 and started to have issues with my node... not being able to boot with error on SQLite....
I've got the hint to download the updated version for lightningd for the new Ubuntu distro and now I get this annoying new message when executing
nicolas@HP655:/tmp/lightning/usr/bin$ lightningd --plugin=/home/nicolas/c-lightning-REST/plugin.js --rest-port=3002
lightningd: --plugin: Failed to register /home/nicolas/c-lightning-REST/plugin.js: Invalid argument
My first node install was on August 2021.... and nothing upgraded till last week... and the node was running smoothly
Any hint which can be done without affecting the channels????

Thank you
Nicolas

commented

Hi @NVG2021 please update the c-lightning-REST to the latest version (v0.10.2) and that should address your issue.

commented

@NVG2021 hope this is addressed?
you can find the latest version to update on the release section of this repo:
https://github.com/Ride-The-Lightning/c-lightning-REST/releases/tag/v0.10.2

Or you can follow the below instructions:

  1. go to the c-lightning-REST folder on your box
  2. git pull
  3. git checkout v0.10.2
  4. optional step: git verify-tag v0.10.2
  5. npm install --only=prod

Hope this helps

Closing this issue now. Thanks

Hi, sorry for not answering you before, as I was traveling and out of my box ...
I did all what you indicated to update and I had to rename plugin.js to clrest.js, but still have same messahe when performing the command
lightningd: --plugin: Failed to register /home/nicolas/c-lightning-REST/clrest.js: Invalid argument

What else can be done?

Thgank you

No news on how to solve this?

commented

Hi @NVG2021 can you please share your cl-rest-config.json? Need to examine the config settings.

Closing this as it has been resolved with ElementsProject/lightning#6088.