I isolated this line as the cause of issues with my device:
ports:
(...)
- "5656-5699:5656-5699/udp"
When this range of 44 UDP ports is published in addition to the existing 3 UDP and 6 TCP ports, I am unable to access my service via the 8443/TCP port.
I don’t know if this is because 8443/TCP is no longer published correctly, or because the device gets broken in a different way…
I can think of two possibilities now:
My syntax for publishing multiple UDP ports is incorrect…
Balena doesn’t support publishing that many ports – this should be either enforced at deploy time, or fixed if possible!
PS: For reference, this is exactly how I publish the ports:
Hey, it appears that this could be a docker/balena-engine issue. According to this issue: https://github.com/moby/moby/issues/11185 the engine will create a single process for each exposed port, which very quickly eats all of the available RAM (especially in an rpi). A workaround for this could be to use host networking on this container Would that work for you?