Hi all,
My CircleCI builds are constantly failing from today when the sbt launcher tries to bootstrap sbt itself. The launcher can’t download org.scala-sbt:sbt:1.11.7 because Maven Central (repo1.maven.org) returns HTTP 429 (Too Many Requests),
[info] [launcher] getting org.scala-sbt sbt 1.11.7 (this may take some time)...
[error] [launcher] xsbt.boot.internal.shaded.coursier.error.ResolutionError$CantDownloadModule: Error downloading org.scala-sbt:sbt:1.11.7
not found: /home/circleci/.ivy2/local/org.scala-sbt/sbt/1.11.7/ivys/ivy.xml
download error: Caught java.io.IOException (Server returned HTTP response code: 429 for URL: https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.11.7/sbt-1.11.7.pom) while downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.11.7/sbt-1.11.7.pom
download error: Caught java.io.IOException (Server returned HTTP response code: 429 for URL: https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.11.7/sbt-1.11.7.pom) while downloading https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.11.7/sbt-1.11.7.pom
not found: https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.11.7/sbt-1.11.7.pom
not found: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.11.7/ivys/ivy.xml
not found: https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/1.11.7/ivys/ivy.xml
[error] [launcher] could not retrieve sbt 1.11.7
I understand the 429 is Maven Central rate-limiting requests coming from shared cloud IP addresses. To work around this I’ve already enabled circleci_ip_ranges: true on the job so that traffic comes from CircleCI’s documented IP ranges, but I’m still hitting the 429
Any guidance on the most reliable fix would be much appreciated. Thanks!