Timeout downloading pod specs

Based on what we’ve found to be popular opinion (Best practice for use of cached Cocoapods specs), we download cocoapods pods spec using this line:

curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf

We are finding that recently, just the download (and perhaps the expanding) of the pod specs has been taking over 10 minutes resulting in the build errors of the form:

#!/bin/bash --login -o pipefail
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
cd ios && bundle exec pod install && cd -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1588  100  1588    0     0  29407      0 --:--:-- --:--:-- --:--:-- 29407
Downloading CocoaPods master repo from https://cocoapods-specs.circleci.com...

Too long with no output (exceeded 10m0s): context deadline exceeded

This seems a bit over the top. It downloads to my laptop in less that 1 min. Perhaps some more time for decompressing. Seems like a fail on circlecis ability to deal with the pod spec. Is there a recommendation on how to mitigate this issue? It’s just eating into my build time and costing money. On a good day, the same build works in less than 5 min.

Hi,

Welcome to CircleCI Discuss!

It looks like the download is completing as shown by the first percentage in curl’s output. So we can look into this further, I recommend creating a support ticket and our support team will provide proper assistance. https://support.circleci.com/hc/en-us/requests/new

I’ll go ahead and file an issue. However, the issue is intermittent. And for the record that curl output is actually the download percentage for the script, not the actual pod specs data that the script downloads. That download is unfortunately muted with the -s option: curl -sS -L -o “$tempfile” “https://cocoapods-specs.circleci.com/latest.tar.gz

1 Like