mingfang / docker-predictionio

Run PredictionIO inside Docker
201 stars 92 forks source link

Facing issue with sbt installation #24

Closed naveenkumarmarri closed 7 years ago

naveenkumarmarri commented 7 years ago

Hi,

I'm trying to install predictionIO using docker image,I'm facing issue when

RUN /PredictionIO/sbt/sbt package

code is invoked. It is throwing server access error:Connection refused.

mingfang commented 7 years ago

can you please paste the full log here?

naveenkumarmarri commented 7 years ago

` :: problems summary :: :::: WARNINGS problem while downloading module descriptor: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.13.7/ivys/ivy.xml: Connection refused (Connection refused) (80460ms)

    module not found: org.scala-sbt#logging;0.13.7

==== local: tried

  /root/.ivy2/local/org.scala-sbt/logging/0.13.7/ivys/ivy.xml

  -- artifact org.scala-sbt#logging;0.13.7!logging.jar:

  /root/.ivy2/local/org.scala-sbt/logging/0.13.7/jars/logging.jar

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.13.7/ivys/ivy.xml

==== Maven Central: tried

  https://repo1.maven.org/maven2/org/scala-sbt/logging/0.13.7/logging-0.13.7.pom

  -- artifact org.scala-sbt#logging;0.13.7!logging.jar:

  https://repo1.maven.org/maven2/org/scala-sbt/logging/0.13.7/logging-0.13.7.jar

problem while downloading module descriptor: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbinary/sbinary_2.10/0.4.2/ivys/ivy.xml: Connection refused (Connection refused) (81404ms)

    module not found: org.scala-tools.sbinary#sbinary_2.10;0.4.2

==== local: tried

  /root/.ivy2/local/org.scala-tools.sbinary/sbinary_2.10/0.4.2/ivys/ivy.xml

  -- artifact org.scala-tools.sbinary#sbinary_2.10;0.4.2!sbinary_2.10.jar:

  /root/.ivy2/local/org.scala-tools.sbinary/sbinary_2.10/0.4.2/jars/sbinary_2.10.jar

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbinary/sbinary_2.10/0.4.2/ivys/ivy.xml

==== Maven Central: tried

  https://repo1.maven.org/maven2/org/scala-tools/sbinary/sbinary_2.10/0.4.2/sbinary_2.10-0.4.2.pom

  -- artifact org.scala-tools.sbinary#sbinary_2.10;0.4.2!sbinary_2.10.jar:

  https://repo1.maven.org/maven2/org/scala-tools/sbinary/sbinary_2.10/0.4.2/sbinary_2.10-0.4.2.jar

problem while downloading module descriptor: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.13.7/ivys/ivy.xml: Connection refused (Connection refused) (75250ms)

    module not found: org.scala-sbt#run;0.13.7

==== local: tried

  /root/.ivy2/local/org.scala-sbt/run/0.13.7/ivys/ivy.xml

  -- artifact org.scala-sbt#run;0.13.7!run.jar:

  /root/.ivy2/local/org.scala-sbt/run/0.13.7/jars/run.jar

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.13.7/ivys/ivy.xml

==== Maven Central: tried

  https://repo1.maven.org/maven2/org/scala-sbt/run/0.13.7/run-0.13.7.pom

  -- artifact org.scala-sbt#run;0.13.7!run.jar:

  https://repo1.maven.org/maven2/org/scala-sbt/run/0.13.7/run-0.13.7.jar

problem while downloading module descriptor: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.7/ivys/ivy.xml: Connection refused (Connection refused) (75575ms)

    module not found: org.scala-sbt#apply-macro;0.13.7

==== local: tried

  /root/.ivy2/local/org.scala-sbt/apply-macro/0.13.7/ivys/ivy.xml

  -- artifact org.scala-sbt#apply-macro;0.13.7!apply-macro.jar:

  /root/.ivy2/local/org.scala-sbt/apply-macro/0.13.7/jars/apply-macro.jar

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.7/ivys/ivy.xml

==== Maven Central: tried

  https://repo1.maven.org/maven2/org/scala-sbt/apply-macro/0.13.7/apply-macro-0.13.7.pom

  -- artifact org.scala-sbt#apply-macro;0.13.7!apply-macro.jar:

  https://repo1.maven.org/maven2/org/scala-sbt/apply-macro/0.13.7/apply-macro-0.13.7.jar

    [FAILED     ] org.scala-sbt#precompiled-2_9_2;0.13.7!compiler-interface-bin.jar: Connection refused (Connection refused) (91649ms)

    [FAILED     ] org.scala-sbt#precompiled-2_9_2;0.13.7!compiler-interface-bin.jar: Connection refused (Connection refused) (91649ms)

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_2/0.13.7/jars/compiler-interface-bin.jar

    [NOT FOUND  ] org.scala-sbt#actions;0.13.7!actions.jar (83334ms)

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.7/jars/actions.jar

    [FAILED     ] org.scala-sbt#main-settings;0.13.7!main-settings.jar: Connection refused (Connection refused) (90886ms)

    [FAILED     ] org.scala-sbt#main-settings;0.13.7!main-settings.jar: Connection refused (Connection refused) (90886ms)

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main-settings/0.13.7/jars/main-settings.jar

    [NOT FOUND  ] org.scala-sbt#control;0.13.7!control.jar (75418ms)

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.13.7/jars/control.jar

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::          UNRESOLVED DEPENDENCIES         ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.scala-sbt#logging;0.13.7: not found

    :: org.scala-tools.sbinary#sbinary_2.10;0.4.2: not found

    :: org.scala-sbt#run;0.13.7: not found

    :: org.scala-sbt#apply-macro;0.13.7: not found

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::              FAILED DOWNLOADS            ::

    :: ^ see resolution messages for details  ^ ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.scala-sbt#actions;0.13.7!actions.jar

    :: org.scala-sbt#control;0.13.7!control.jar

    :: org.scala-sbt#main-settings;0.13.7!main-settings.jar

    :: org.scala-sbt#precompiled-2_9_2;0.13.7!compiler-interface-bin.jar

    ::::::::::::::::::::::::::::::::::::::::::::::

:::: ERRORS Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/launcher-interface/0.13.7/ivys/ivy.xml.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.13.7/ivys/ivy.xml.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/com.jcraft/jsch/0.1.46/ivys/ivy.xml

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.7/jars/main.jar.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/0.13.7/jars/compiler-interface-bin.jar.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/0.13.7/jars/compiler-interface-bin.jar.md5

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.7/jars/actions.jar

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.13.7/jars/control.jar

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS unresolved dependency: org.scala-sbt#logging;0.13.7: not found unresolved dependency: org.scala-tools.sbinary#sbinary_2.10;0.4.2: not found unresolved dependency: org.scala-sbt#run;0.13.7: not found unresolved dependency: org.scala-sbt#apply-macro;0.13.7: not found download failed: org.scala-sbt#actions;0.13.7!actions.jar download failed: org.scala-sbt#control;0.13.7!control.jar download failed: org.scala-sbt#main-settings;0.13.7!main-settings.jar download failed: org.scala-sbt#precompiled-2_9_2;0.13.7!compiler-interface-bin.jar Error during sbt execution: Error retrieving required libraries (see /root/.sbt/boot/update.log for complete log) Error: Could not retrieve sbt 0.13.7 The command '/bin/sh -c /PredictionIO/sbt/sbt package' returned a non-zero code: 1 `

mingfang commented 7 years ago

My guess is that there was a momentary problem with the public maven repo. I just tried it and am not seeing this error. Can you try again now?

naveenkumarmarri commented 7 years ago

looks like there is 302 response. Does this have to do something with the error?

` Step 27/44 : RUN /PredictionIO/sbt/sbt package ---> Running in c6669ed18137 Attempting to fetch sbt

mingfang commented 7 years ago

The 302 is normal and should not cause any errors.

How you still seeing errors?...Your new log did not show any.

naveenkumarmarri commented 7 years ago

That is before the execution of

Launching sbt from /PredictionIO/sbt/sbt-launch-0.13.7.jar Getting org.scala-sbt sbt 0.13.7 ...

I triggered the docker build, it is in progress

naveenkumarmarri commented 7 years ago

Still facing the same issue.

` :: problems summary :: :::: WARNINGS [FAILED ] org.scala-sbt#compiler-interface;0.13.7!compiler-interface-bin.jar: Connection refused (Connection refused) (82240ms)

    [FAILED     ] org.scala-sbt#compiler-interface;0.13.7!compiler-interface-bin.jar: Connection refused (Connection refused) (82240ms)

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.7/jars/compiler-interface-bin.jar

    [NOT FOUND  ] org.scala-sbt#incremental-compiler;0.13.7!incremental-compiler.jar (77344ms)

==== typesafe-ivy-releases: tried

  https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.7/jars/incremental-compiler.jar

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::              FAILED DOWNLOADS            ::

    :: ^ see resolution messages for details  ^ ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.scala-sbt#incremental-compiler;0.13.7!incremental-compiler.jar

    :: org.scala-sbt#compiler-interface;0.13.7!compiler-interface-bin.jar

    ::::::::::::::::::::::::::::::::::::::::::::::

:::: ERRORS Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.13.7/ivys/ivy.xml.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.13.7/ivys/ivy.xml.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.7/ivys/ivy.xml.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.13.7/ivys/ivy.xml.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.13.7/jars/run.jar.sha1

Server access Error: Connection refused (Connection refused) url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.7/jars/incremental-compiler.jar

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS download failed: org.scala-sbt#incremental-compiler;0.13.7!incremental-compiler.jar download failed: org.scala-sbt#compiler-interface;0.13.7!compiler-interface-bin.jar Error during sbt execution: Error retrieving required libraries (see /root/.sbt/boot/update.log for complete log) Error: Could not retrieve sbt 0.13.7 The command '/bin/sh -c /PredictionIO/sbt/sbt package' returned a non-zero code: 1`

mingfang commented 7 years ago

I removed that line and upgraded to newer version. Please try again.

MichalGallovic commented 7 years ago

Hey, just chimming in ... I installed the image and did not face any issues. So the problem was resolved 👍

mingfang commented 7 years ago

@MichalGallovic thanks for the confirmation.

jobsfan commented 1 year ago

I removed that line and upgraded to newer version. Please try again.

http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.15/sbt-launch.jar this link is not reachable.

I am trying to build the image according to the installation guide, but failed