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

Plugin killed with no explanation #212

Open
Sjors opened this issue May 10, 2024 · 3 comments
Open

Plugin killed with no explanation #212

Sjors opened this issue May 10, 2024 · 3 comments
Assignees

Comments

@Sjors
Copy link

Sjors commented May 10, 2024

On Ubuntu 24.04 the plugin seems to die:

$ tail -f ~/log/debug.log | grep clrest
2024-05-10T18:43:27.433Z DEBUG   plugin-manager: started(428245) /home/lightning/src/c-lightning-REST/clrest.js
2024-05-10T18:44:22.188Z UNUSUAL plugin-clrest.js: --- Starting the cl-rest server ---
2024-05-10T18:44:22.195Z UNUSUAL plugin-clrest.js: --- cl-rest api server is ready and listening on :::3001 ---
2024-05-10T18:44:22.195Z UNUSUAL plugin-clrest.js: --- cl-rest doc server is ready and listening on :::4001 ---
2024-05-10T18:44:22.210Z INFO    plugin-clrest.js: Killing plugin: exited during normal operation

If I run it as a regular node application it seems fine:

$ node cl-rest.js 
Reading config file
warn: --- Starting the cl-rest server ---
warn: --- cl-rest api server is ready and listening on :::3001 ---
warn: --- cl-rest doc server is ready and listening on :::4001 ---

I'm pretty sure the config is equivalent.

v0.10.7 built with npm install

Lightningd v24.02.2 running via systemd.

@Sjors
Copy link
Author

Sjors commented May 10, 2024

I can just run c-lightning-REST via systemd, but having it as a plugin would allow me to delete that service.

@saubyk saubyk self-assigned this May 11, 2024
@saubyk
Copy link
Collaborator

saubyk commented Jun 6, 2024

Hi @Sjors apologies for responding super late on this issue.
Curious about your use case for running c-lightning-REST. Are you using it for RTL or a separate interface?
If it's the former, have you considered running clnrest instead?

We are planning to deprecate this project, given clnrest is already in place.

@Sjors
Copy link
Author

Sjors commented Jun 7, 2024

I'm using it to connect Zeus to my CLN node. They recently announced a bounty for clnrest integration, but currently that doesn't work afaik.

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

No branches or pull requests

2 participants