Comments (8)
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.
0.4.12 is released and available on docker hub, can you try again and verify this fixed the issue?
from lightning-charge.
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.
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.
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.
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.
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.
@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)
- shesek/lightning-charge (standalone) is unable to start HOT 2
- Support for v0.8.0? HOT 3
- Look for lightning-rpc in the network subdirectory if it does not exists in the parent LN_PATH
- Change price from Bitcoin Average? HOT 2
- Weird 'forbidden' error HOT 2
- Can you use tini in the dockerfiles? HOT 1
- Feature request: Add support for displaying in satoshis HOT 3
- Adopt to changed lightningd api HOT 4
- Docker image error HOT 2
- Docker container stops on boot using latest version of charged HOT 3
- Support for v0.10.0? HOT 1
- Lightning Charge container keeps restarting in docker , ARM64 HOT 2
- Toks
- gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp HOT 4
- Unable to run Docker with existing bitcoind/lightningd
- build fail
- lightning-charge not answering
- Add lightning-network as a topic to this repository
- Compatibility with Core-Lightning v23.05 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning-charge.