Failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

Hi,

We run docker-compose on a machine executor to build and run tests. However, in recent weeks we have observed that most of our builds are failing with the following error message.

failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

After doing the investigation i have found that setting the

docker_layer_caching: false

Resolve the issue but, we would like this to be enabled since we want to reuse the cache to build faster.

Can someone please help me explain why this issue is occurring and how I can resolve it?
We are using a machine executor:

ubuntu-2204:2022.10.2

resource type/class:

arm.large

Thanks a lot in advance.

I do not have a direct answer, but that very unhelpful message is normally from within docker and historically has been firewall related. Can you as a test try and disable the firewall by adding the following command to your script before the docker commands while leaving docker layer caching enabled.

sudo ufw disable

This is not a valid fix as it leaves the whole system open, but it would provide an indication of where the issue maybe and so allow a more detailed support issue to be raised.