Seems that a number of people are experiencing the same issue for various network operations (including our project) - see few threads in https://travis-ci.community/latest
It’s definitely not sbt related, as I get it also via Maven and Gradle, and not even Java related, as I use a peculiar setup. I’m not sure if it affects MacOS, but for sure it affects Linux and Windows builds.
I have been investigating this issue since last week, and I have found a few things about the failures that occur:
Failures occur in bursts, often blocking retries.
The destination never receives the request sent.
The size of the request is a significant factor. In my testing, requests with a size of 2200 bytes would reproduce this issue, while 1400 would not (headers & body).
Concurrent requests seem to be an aggravating factor.
I came up with a fairly minimal test case to reproduce. I sent 400 POST requests sequentially to https://example.com with a body of 2200 characters (all characters were the letter “a”).
If there is anything further I can provide to help, let me know. This problem has been causing nearly a 100% failure rate for our builds for nearly a week.
Thanks for the detailed analysis. I would like to second what you said.
My build is doing a lot of downloads, including concurrent ones (with concurrency of four), and even 5 retries (without pause between them) doesn’t seem to solve the problem.
I tried different download locations, nothing seems to help.
Thanks for writing in and please accept our apologies for the network issues you have been experiencing.
Background
We observed some abnormal behavior in our network which has manifested itself in different forms across our customer builds. In addition, we received reports from customers like you who have experienced some form of interruption in their builds
Current Status
We have given visibility about this to our Engineering Team and the various ways it has affected customers. This is to ensure we focus our resources on fixing the root cause rather than the side-effects.
Worker information
curl: (7) Failed to connect to whereami.travis-ci.com port 443: Connection timed out
system_info
Build system information
Timeout waiting for network availability.
curl: (6) Could not resolve host: cli-assets.heroku.com
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Failed to update Heroku CLI
docker_mtu
resolvconf
pypy3 is not installed; attempting download
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/16.04/x86_64/pypy3.tar.bz2
131.03s$ curl -sSf -o pypy3.tar.bz2 ${archive_url}
curl: (7) Failed to connect to storage.googleapis.com port 443: Connection timed out
Unable to download pypy3 archive. The archive may not exist. Please consider a different version.