Network timeouts


I’ve been using CircleCI 2 happily for a few months now, it’s awesome. We are seeing occasion network timeout issues, and they seem to have become more frequent over the last week.

Here are some examples:

  • From apt-get:

Err stable/main cf-cli amd64 6.24.0
Operation too slow. Less than 10 bytes/sec transferred the last 120 seconds

  • From docker-compose:

Traceback (most recent call last):
File “”, line 3, in
File “compose/cli/”, line 65, in main
File “compose/cli/”, line 117, in perform_command
File “compose/cli/”, line 622, in push
File “compose/”, line 447, in push
File “compose/”, line 854, in push
File “compose/”, line 18, in stream_output
File “compose/”, line 57, in split_buffer
File “compose/”, line 33, in stream_as_text
File “site-packages/docker/”, line 247, in _stream_helper
File “site-packages/requests/packages/urllib3/”, line 324, in read
File “”, line 35, in exit
File “site-packages/requests/packages/urllib3/”, line 237, in _error_catcher
requests.packages.urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host=‘localhost’, port=None): Read timed out.
docker-compose returned -1

Normally a retry works, but it is a little annoying.

Has anyone else seen this?



That’s concerning. Can you PM me a link to the build? Slow network speeds is definitely a concern. We want everyone to have the best uplink we can possibly provide.


We also started observing network issues when moving from machine to docker executor. Timeouts occur at random places, both for connections between the containers in the remote docker environment and now also with the connection from the primary container to the docker server. This just happened during docker-compose up:

ERROR: for xxxx  HTTPSConnectionPool(host='', port=2376): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).


Timeouts also occur when downloading external resources:

Pulling etcd (
ERROR: Get Get net/http: request canceled (Client.Timeout exceeded while awaiting headers)


Some more timeouts today. Even when getting content from CloudFront:

ERROR: error pulling image configuration: Get net/http: TLS handshake timeout


We’ve been seeing TLS handshake timeouts when trying to publish Docker images to This is for CircleCI 1.0.

docker push

The push refers to a repository [] (len: 2)

Post net/http: TLS handshake timeout

This occurs only on some builds, maybe 1/10 or 1/8 times. When it does occur, however, it’s a waste of a 20+ min. build.