Open theRescuer opened 3 years ago
I see that you're using a c-lightning instance that's mounted from the host, can you check its log files for errors when spark gets disconnected from it?
Here it comes
docker logs 6cc7f04bc66a --tail 150
Lightning client connection closed, reconnecting Trying to reconnect... Lightning client connection error Error: connect ECONNREFUSED /root/.lightning/lightning-rpc at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) { errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '/root/.lightning/lightning-rpc' } events.js:291 throw er; // Unhandled 'error' event ^
Error: connect ECONNREFUSED /root/.lightning/lightning-rpc
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
Emitted 'error' event on LightningClient instance at:
at Socket.
Error: connect ECONNREFUSED /root/.lightning/lightning-rpc
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
Emitted 'error' event on LightningClient instance at:
at Socket.
Error: connect ECONNREFUSED /root/.lightning/lightning-rpc
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
Emitted 'error' event on LightningClient instance at:
at Socket.
Oh, I see it's part of a BTCPay setup, it helps to know that.
The errors in your last comment don't originate from Spark Wallet, they're from RTL's c-lightning-rest. This suggests that c-lightning is generally malfunctioning, and that it's not a Spark-specific issue.
I would suggest to try asking in the BTCPay support chat.
Ok, thanks. I'll ask them.
Hi, I'm running Spark Wallet with c-lightning 0.9.3.1 in a docker deployment. Almost every day the connection breaks with Browser exception '502 - Bad Gateway' showing up
Output of 'Docker logs' command ...
HTTP server running on http://0.0.0.0:9737 Lightning client connection closed, reconnecting Lightning client connection error { Error: connect ECONNREFUSED /etc/lightning/lightning-rpc at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '/etc/lightning/lightning-rpc' } uncaughtException, stopping process Error: connect ECONNREFUSED /etc/lightning/lightning-rpc at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14) nc: unix connect failed: Connection refused Using lightningd directory mounted in /etc/lightning... waiting for RPC unix socket... Starting spark wallet (standalone mode)... Connected to c-lightning basedon-v0.9.3-1 with id 023808f558a644d786cb9071ea22f2afcd7329326170eded00dd2ce0b4e377ed2f on network bitcoin at /etc/lightning/lightning-rpc Loading login credentials from /data/.cookie