polar icon indicating copy to clipboard operation
polar copied to clipboard

Unable to connect to c-lightning node

Open AtmegaBuzz opened this issue 2 years ago • 7 comments

Describe the bug I created 2 Clightning and 2 bitcoin nodes but i'm getting error on starting the setup. Bitcoin nodes are starting perfectly fine but i'm getting error in other 2 CL nodes. in Docker desktop i can see all nodes running

Error: ENOENT: no such file or directory, open '/home/polaris/.polar/networks/2/volumes/c-lightning/bob/rest-api/access.macaroon'

Screenshots image image image

To Reproduce Steps to reproduce the behavior:

  1. create 2 Clightning and 2 bitcoin core nodes
  2. start the setup

Desktop (please complete the following information):

  • OS: POP os
  • Polar 1.4.0
  • Docker Version: 23.0.1
  • Docker Compose Version: 1.29.2

AtmegaBuzz avatar Feb 21 '23 14:02 AtmegaBuzz

It looks like you are using Core Lightning v0.12.0. Which version of Bitcoin nodes are you using? I just tried with Bitcoin Code v24.0 and it worked without any issues.

Do you also face this problem with different combinations of Core Lightning and Bitcoin Core versions? Can you try with the latest version of CLN v22.11?

Are you using any custom startup command flags or custom images?

If different versions do not work, can you share the Core Lightning node's full docker log. That admin macaroon is generated by the c-lightning-REST plugin. I'm interested to see if there is an error initializing the plugin on startup.

jamaljsr avatar Feb 21 '23 15:02 jamaljsr

@jamaljsr i'm using clightning v 0.12 with v23 of botcoin core. How do i change the version of nodes in polar. I updated the versions of nodes to latest but still getting error

image image

AtmegaBuzz avatar Feb 22 '23 06:02 AtmegaBuzz

no i'm not using custom scripts. these are the docker logs image

image

after this error the container is just logging the following info in a loop image

AtmegaBuzz avatar Feb 22 '23 08:02 AtmegaBuzz

Ah, this is a permissions issue. Did you install Docker Desktop or Docker Engine? There are currently issues running Docker Desktop on Linux that I'm aware of. See #553 and #636. Docker Engine should work as long as you followed the post-installation steps.

To use different versions of nodes, you just have to hit the "Show All Versions" toggle in the sidebar. image

You can also click "Check for new node versions" to pull down the latest available. image

jamaljsr avatar Feb 22 '23 12:02 jamaljsr

i am also facing the same issue did you find a way to solve it. i have atta Screenshot from 2023-02-25 23-18-39 Screenshot from 2023-02-25 23-21-32 Screenshot from 2023-02-25 23-23-25 ched the screenshots

pathakharsh123 avatar Feb 25 '23 17:02 pathakharsh123

@pathakharsh123 Polar doesn't currently work with Docker Desktop on Linux. You have to install Docker Engine instead. There are workarounds listed in https://github.com/jamaljsr/polar/issues/636#issuecomment-1358081254 that you may try.

jamaljsr avatar Feb 26 '23 22:02 jamaljsr

I also have the same problem on the Mac with M1 and docker desktop. Bildschirmfoto 2024-01-30 um 22 18 10

FlorianHubl avatar Jan 30 '24 21:01 FlorianHubl