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
Bug: Update instructions to create CLN custom node #863
Comments
Hey @toneloc, thanks for all of the details.
Yes, the exact
This seems like the |
A few observations:
Here are Docker startup commands I am using:
|
Polar doesn't currently support the new REST APi included in CLN. It still requires the c-lightning-REST plugin. You would need to install this plugin in your Docker like Polar does here. Also, you'd have to keep these flags in your startup command. |
Got it. For this line: So I put Also had to add Then got this message as well I am building docker image on Mac M2. I saw something about needing to specify the Linux build platform and tried that, but no luck anyway. Hope this helps. |
Yes, I ran into that issue also. We chose to rename the file after installing the plugin to avoid breaking backwards compatibility with older nodes in Polar.
In Polar we use separate Dockerfiles for |
Describe the bug
I am trying to create a custom CLN node with version 24.02.1 to try dual-funded channels.
The instructions here - https://github.com/jamaljsr/polar/blob/master/docs/custom-nodes.md#c-lightning - seem to be out of date.
I would like to help update those.
To Reproduce
Following the above instructions with the Dockerfile listed gives us an error, where it appears to fail fetching some packages:
#13 1.543 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-arm64/Packages 404 Not Found [IP: 151.101.66.132 80] ... etc
So, I modified the Dockerfile, using the file on the main CLN repo, and modifying the end of the file.
I used this Docker file - https://github.com/toneloc/stable-channels/blob/main/Dockerfile - I annotate the end of it (see "Polar Modification"). I used the same
docker-entrypoint.sh
file as in the above instructions.This image appeared to build okay.
I then created a custom image on the Polar UI. I added the flag
--developer
to startup commands. Note: the new Dockerfile from CLN team did not have theARG DEVELOPER=0
parameter in there. This is why I added the flag here instead.Then, I tried to start up a 1 BTC core / 1 custom CLN network.
I got this error:
Where do these get created and copied?
Expected behavior
I would expect the custom node to start okay.
Screenshots
Desktop (please complete the following information):
Additional context
I would like to use dual-funded channels, which is on this version.
I would also like to include a custom plugin to try out. This is the plugin I want to try - https://github.com/toneloc/stable-channels
Thanks.
The text was updated successfully, but these errors were encountered: