score:1

Accepted answer

i think i've finally figured out what was going on.

i was able to reproduce the problem in the travisci/ci-garnet:packer-1512502276-986baf0 docker container. although to get sbt running i had to find and install the sbt-launch.jar for version 1.1.1 because the installed bootstrapper doesn't work for any version 1.0 or higher. i deleted several folders from the home folder with stuff for other languages to free disk space for downloading artifacts.

after it stalled i took a thread dump of the java process (by sending it a quit signal).

the output included this:

found one java-level deadlock:
=============================
"specs2-6":
  waiting to lock monitor 0x00007fc6a4b9fb68 (object 0x00000000997e39f0, a sbt.internal.inc.classpath.classpathfilter),
  which is held by "specs2-3"
"specs2-3":
  waiting to lock monitor 0x00007fc6d0df7298 (object 0x0000000098f700b0, a sbt.internal.inc.classpath.classpathutilities$$anon$1),
  which is held by "specs2-6"

so i knew there was a deadlock which was preventing it from progressing.

after some googling i found a bug for mockito (https://github.com/mockito/mockito/issues/1067).

a workaround is to disable parallelexecution for tests.

score:0

i got the same issue. add to your build.sbt

loglevel := level.debug

so that you can use the log-debug to check what is going in on. in my case sbt was looking for

sbt-chain: module revision found in cache: com.fasterxml.jackson#jackson-parent;2.8
[debug]         tried /home/travis/.ivy2/local/com.fasterxml.jackson/jackson-bom/2.8.11/jars/jackson-bom.jar
[debug]         tried https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug] client error: not found url=https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug]         tried /home/travis/.sbt/preloaded/com.fasterxml.jackson/jackson-bom/2.8.11/jars/jackson-bom.jar
[debug]         tried file:////home/travis/.sbt/preloaded/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug]         tried https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug] client error: not found url=https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar

score:1

it's a 10min compiler timeout. maybe the memory limits cause too much swapping. -xms2048m -xmx2048m -xss6m -xx:maxpermsize=512m


Related Query

More Query from same tag