Error when running sbt docker:publishLocal


(Jose Sparano) #1

Hi, in our lagom project when we execute sbt docker:publishLocal we get this error:

[error] java.lang.RuntimeException: Nonzero exit value: 1

[error] at com.typesafe.sbt.packager.docker.DockerPlugin$.publishLocalDocker(DockerPlugin.scala:335)

[error] at com.typesafe.sbt.packager.docker.DockerPlugin$.$anonfun$projectSettings$26(DockerPlugin.scala:119)

[error] at com.typesafe.sbt.packager.docker.DockerPlugin$.$anonfun$projectSettings$26$adapted(DockerPlugin.scala:117)

[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)

[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)

[error] at sbt.std.Transform$$anon$4.work(System.scala:67)

[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)

[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)

[error] at sbt.Execute.work(Execute.scala:278)

[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)

[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)

[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:1149)

[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

[error] at java.lang.Thread.run(Thread.java:748)

[error] (deploymentPlatformApi / Compile / doc) Scaladoc generation failed

[error] (Docker / publishLocal) Nonzero exit value: 1

[error] Total time: 30 s, completed Nov 2, 2018 12:01:45 PM

We:

  • Are using sbt 1.2.6
  • Added enablePlugins(DockerPlugin) in our build.sbt file of root project
  • Added enablePlugins(LagomScala, SbtReactiveAppPlugin) in our build.sbt files for impl modules

What could be missing?