aleksandr-vin / sbt-keychain-credentials

Adds com.xvyg.sbt.keychain.Credentials object capable of loading passwords from Mac OS X Keychain
3 stars 1 forks source link

java.net.ProtocolException: Too many follow-up requests: 21 #1

Open aleksandr-vin opened 6 years ago

aleksandr-vin commented 6 years ago

Sometimes when you compile a completely new project (or just drop the ~/.ivy2/cache) it fails constantly with:

± sbt test
[info] Loading settings from idea.sbt,build.sbt ...
[info] Loading global plugins from /Users/aleksandr.vinokurov/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/aleksandr.vinokurov/Developere/project
[info] Reading credentials from /Users/aleksandr.vinokurov/.ivy2/.credentials ...
[info] Obtaining password from system's keychain ...
[info] Updating ProjectRef(uri("file:/Users/aleksandr.vinokurov/Developer/some-new-project/project/"), "some-new-project-build")...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.xxxxxx.sbt#sbt-xxxxxx;10.0.6: ACME Releases: unable to get resource for com/xxxxxx/sbt#sbt-xxxxxx;10.0.6: res=https://repo.acme.com/repository/sbt-plugins/com/xxxxxx/sbt/sbt-xxxxxx_2.12_1.0/10.0.6/sbt-xxxxxx-10.0.6.pom: java.net.ProtocolException: Too many follow-up requests: 21
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.xxxxxx.sbt:sbt-xxxxxx:10.0.6 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]      com.xxxxxx.sbt:sbt-xxxxxx:10.0.6 (scalaVersion=2.12, sbtVersion=1.0) (/Users/aleksandr.vinokurov/Developer/some-new-project/project/plugins.sbt#L1-2)
[warn]        +- default:some-new-project-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.xxxxxx.sbt#sbt-xxxxxx;10.0.6: ACME Releases: unable to get resource for com/xxxxxx/sbt#sbt-xxxxxx;10.0.6: res=https://repo.acme.com/repository/sbt-plugins/com/xxxxxx/sbt/sbt-xxxxxx_2.12_1.0/10.0.6/sbt-xxxxxx-10.0.6.pom: java.net.ProtocolException: Too many follow-up requests: 21
[error]     at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:334)
[error]     at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:208)
[error]     at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:243)
[error]     at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error]     at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error]     at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error]     at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error]     at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error]     at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error]     at xsbt.boot.Using$.withResource(Using.scala:10)
[error]     at xsbt.boot.Using$.apply(Using.scala:9)
[error]     at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error]     at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error]     at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error]     at xsbt.boot.Locks$.apply(Locks.scala:28)
[error]     at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error]     at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error]     at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error]     at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[error]     at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:193)
[error]     at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error]     at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error]     at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:46)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:99)
[error]     at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:112)
[error]     at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:112)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:95)
[error]     at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error]     at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:126)
[error]     at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2387)
[error]     at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:39)
[error]     at sbt.std.Transform$$anon$4.work(System.scala:66)
[error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:263)
[error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]     at sbt.Execute.work(Execute.scala:272)
[error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:263)
[error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
[error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error]     at java.lang.Thread.run(Thread.java:745)
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.xxxxxx.sbt#sbt-xxxxxx;10.0.6: ACME Releases: unable to get resource for com/xxxxxx/sbt#sbt-xxxxxx;10.0.6: res=https://repo.acme.com/repository/sbt-plugins/com/xxxxxx/sbt/sbt-xxxxxx_2.12_1.0/10.0.6/sbt-xxxxxx-10.0.6.pom: java.net.ProtocolException: Too many follow-up requests: 21
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? [:~/Developer/some-new-project] initial-setup ±

Env:

$ uname -a
Darwin Vinokurovs-Mac.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
$ find ~/.ivy2/ -name sbt-keychain-*
/Users/aleksandr.vinokurov/.ivy2//cache/scala_2.10/sbt_0.13/com.xvyg/sbt-keychain-credentials
/Users/aleksandr.vinokurov/.ivy2//cache/scala_2.12/sbt_1.0/com.xvyg/sbt-keychain-credentials
/Users/aleksandr.vinokurov/.ivy2//cache/scala_2.12/sbt_1.0/com.xvyg/sbt-keychain-credentials/jars/sbt-keychain-credentials-1.0.3.jar
$ cat ~/.ivy2/.credentials
realm=Sonatype Nexus Repository Manager
host=repo.acme.com
user=aleksandrvin
password=
$ cat ~/.sbt/1.0/global.sbt

import com.xvyg.sbt.keychain.Credentials

credentials ++= Seq(Credentials(Path.userHome / ".ivy2" / ".credentials", sLog.value))
$ cat ~/.sbt/1.0/plugins/build.sbt

addSbtPlugin("com.xvyg" % "sbt-keychain-credentials" % "1.0.3")
$ cat ~/.sbt/0.13/global.sbt

import com.xvyg.sbt.keychain.Credentials

credentials ++= Seq(Credentials(Path.userHome / ".ivy2" / ".credentials", sLog.value))
$ cat ~/.sbt/0.13/
global.sbt   global.sbt~  plugins/     staging/     target/
$ cat ~/.sbt/0.13/plugins/build.sbt

addSbtPlugin("com.xvyg" % "sbt-keychain-credentials" % "1.0.3")
aleksandr-vin commented 6 years ago
$ cat project/build.properties
sbt.version = 1.1.5