Giter Site home page Giter Site logo

Comments (8)

shesek avatar shesek commented on June 20, 2024

It seems like lightning charge was unable to find the c-lightning rpc socket in /etc/lightning/lightning-rpc. Was your c-lightning node already running when you started the lightning charge container?

Lightning charge should normally wait for the c-lightning socket file to appear if its not there when starting up (to support starting charge while c-lightning is still warming up), but there was a bug preventing this from working, which was causing the error you were seeing. 43973f4 should fix this, I'll be releasing this in v0.4.12 soon.

from lightning-charge.

shesek avatar shesek commented on June 20, 2024

0.4.12 is released and available on docker hub, can you try again and verify this fixed the issue?

from lightning-charge.

jaro2k avatar jaro2k commented on June 20, 2024

thank you! I managed to move on slightly.. but there is still a problem..
I mounted filesystem from bitcoin container to mount-point: /etc/bitcoin
and filesystem from lightning container to mount-point: /etc/lightning as instructed in documentation..

This is the output from container startup:

Using lightningd directory mounted in /etc/lightning...
Starting Lightning Charge
undefined:1
{ "jsonrpc": "2.0", "id" : "1", "result" :

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at Interface.LightningClient.rl.on.line (/opt/charged/node_modules/clightning-client/index.js:60:29)
at emitOne (events.js:116:13)
at Interface.emit (events.js:211:7)
at Interface._onLine (readline.js:280:10)
at Interface._normalWrite (readline.js:422:12)
at Socket.ondata (readline.js:139:10)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:601:20)

Maybe I'm doing something fundamentally wrong..

from lightning-charge.

shesek avatar shesek commented on June 20, 2024

Which version of c-lightning are you running?

Also, note that you don't need to mount in the bitcoin's datadir if you're mounting lightning's.

from lightning-charge.

jaro2k avatar jaro2k commented on June 20, 2024

v.0.7.0
the issue before you helped me with was caused by the fact that I had incorrect mount-point /etc/lightning set so your assumption was correct when you asked me whether c-lightning is up and running. It was up but it was not accessible.
I believe my mounting-point is correct now.. but since then I'm getting this issue.
I can removed /etc/bitcoin to make it more correct.

I need to say that this containers are running on top of NAS from QNAP and I'm mounting the file-system of c-lightning as a share:
/etc/lightning -> /share/docker/c-lightning-1 Read/Write

am I able to turn some level of debug logging via Environment-params ? maybe I can find out more that way..

from lightning-charge.

shesek avatar shesek commented on June 20, 2024

I'm not aware of any specific issues that should prevent charge from working with c-lightning v0.7.0, but would it be possible to update to the latest version (v0.7.3) and see if the issue persists? There were lots of major improvements and bug fixes since v0.7.0, so you should probably update anyway :)

from lightning-charge.

jaro2k avatar jaro2k commented on June 20, 2024

It works! :)
issue was gone ones c-lightning got upgraded from 0.7.0 to 0.7.3, see output:

curl $CHARGE/info
{"id":"02ca4c46faa50b2d961f4ad2e9d00c90826077b6a282b71079a88cb29a34b8c84a"...}

@shesek, thank you so much for your support and your effort.. I'm happy to join your LN node.. you can find me at: 02ca4c46faa50b2d961f4ad2e9d00c90826077b6a282b71079a88cb29a34b8c84a@178.143.52.84:9735

issue can be closed. Cheers!

from lightning-charge.

robertclarkson avatar robertclarkson commented on June 20, 2024

@jaro2k I'm trying to do this as well. Is there any chance you'd share your docker-compose.yml? Any help much appreciated

from lightning-charge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.