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

peerswap can fail to start if lightningd startup is too slow #346

Open
wtogami opened this issue Jan 28, 2025 · 2 comments
Open

peerswap can fail to start if lightningd startup is too slow #346

wtogami opened this issue Jan 28, 2025 · 2 comments

Comments

@wtogami
Copy link
Contributor

wtogami commented Jan 28, 2025

2025-01-28T18:01:44.190Z INFO    plugin-peerswap: Killing plugin: exited before replying to init

peerswap can fail to start if lightningd startup is too slow.

Version: peerswap 3eadb6b

@grubles
Copy link
Collaborator

grubles commented Jan 28, 2025

How long did it take to start?

@YusukeShimizu
Copy link
Contributor

c-lightning has a 60-second timeout for both “getmanifest” and “init.”
https://docs.corelightning.org/docs/a-day-in-the-life-of-a-plugin#timeouts

Any plugin that fails to respond within this timeframe is forcibly terminated. It is highly likely that the peerswap plugin is exceeding this timeout during its startup process and thus terminates before responding to “init.”

The current startup process involves establishing a Unix domain socket connection with CLN, which is taking too long. Making this process asynchronous could potentially resolve the issue, but the full scope of the impact is not yet fully understood.

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

3 participants