Skip to content
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

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

Closed
NVG2021 opened this issue Mar 22, 2023 · 7 comments

Comments

@NVG2021
Copy link

NVG2021 commented Mar 22, 2023

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

@saubyk
Copy link
Collaborator

saubyk commented Mar 22, 2023

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

@NVG2021
Copy link
Author

NVG2021 commented Mar 22, 2023 via email

@saubyk
Copy link
Collaborator

saubyk commented Mar 24, 2023

@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

@saubyk saubyk closed this as completed Mar 24, 2023
@NVG2021
Copy link
Author

NVG2021 commented Mar 25, 2023

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

@saubyk saubyk reopened this Mar 25, 2023
@NVG2021
Copy link
Author

NVG2021 commented Apr 1, 2023

No news on how to solve this?

@saubyk
Copy link
Collaborator

saubyk commented Apr 2, 2023

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

@ShahanaFarooqui
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants