Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Connection closes and server shuts down on launch, especially on devices with low-performance #676
Hi, I'm not sure if it's a known issue, but I've been pulling hairs for over three days due to this issue, so I had to ask here.
I was building a NATS/STAN cluster built up with three Raspberry Pis:
There's no problem on 3B+ and 3B, but the one with least computing power - Zero W, constantly closes connection on launch and shuts down immediately.
Strange thing is, when I run gnatsd locally and make nats-streaming-server connect to it, it just works without any problem.
And also, when tls options are removed from the config, nats-streaming-server(with embedded NATS server) works OK.
So now I'm wondering if there would be any case of connection failure on devices with low-performance, especially when tls option is enabled and embedded NATS server is running.
Here is my stan.conf (with embedded NATS) that doesn't work:
I started with
and it shut down with following logs:
And here are splitted configs for both NATS server and STAN that work:
This is nats.conf:
I started NATS with
and this is stan2.conf that connects to NATS server launched above:
I ran it with
And these work perfectly.
For your information, there's a seed STAN server with embedded NATS running on
If you need any more information about this, please let me know.
Thanks in advance.
I'm sorry I kept you waiting.
This is the output (with all possible debug options on) of the working setup on the low-perf machine:
This is the file: