lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Lost connection to the RPC socket in Darwin.

Open JaviLib opened this issue 1 year ago • 18 comments

Issue and Steps to Reproduce

After around 5 minutes working properly, the lightningd gets shut down with the following error:

Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.libc++abi: terminating with uncaught exception of type std::runtime_error: Rpc: read: unexpected end-of-file in RPC socket.

This only happens under Darwin, using the nix package manager, which includes v25.05.2. I also tried under v25.05. I am unable to reproduce in Linux. I suspect the socket buffer gets full, but OSX doesn't allow to increase it, which is kern.ipc.maxsockbuf=8388608.I also tried kern.ipc.somaxconn=2048 (it was 128 by default) but it doesn't help.

I happen to have the plugin clboss, if that means something.

Note that my node is a heavy duty one, it has 200+ channels. I suspect this problem is not reproducible with a small amount of channels, as it gets a while to happen, when tons of connections are already stablished.

JaviLib avatar Jul 10 '23 12:07 JaviLib