Error "SSLException: Unsupported or unrecognized SSL message while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/..."

See original GitHub issue

Below are the versions I’m using :

SBT : 1.3.13

Scala version : 2.13.3

Open JDK version : 1.8.0_275

Environment : Amazon EC2 - Linux

Content of plugin.sbt file :

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.18")

While running sbt build, it is giving below exception. I have not added any web related plugins. Still it is giving web plugin errors :

=============================================

[info] Loading settings for project sbttest-build from plugin.sbt ...

[info] Loading project definition from /home/ec2-user/sbtTest/project

[info] Updating

[info] Resolved  dependencies

[warn]

[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.

[warn]          com.typesafe.sbt:sbt-js-engine:1.2.3 (scalaVersion=2.12, sbtVersion=1.0)

[warn]          com.typesafe.sbt:sbt-native-packager:1.5.2 (scalaVersion=2.12, sbtVersion=1.0)

[warn]          com.lightbend.sbt:sbt-javaagent:0.1.5 (scalaVersion=2.12, sbtVersion=1.0)

[warn]          com.typesafe.sbt:sbt-twirl:1.5.1 (scalaVersion=2.12, sbtVersion=1.0)

[warn]          com.typesafe.sbt:sbt-web:1.4.4 (scalaVersion=2.12, sbtVersion=1.0)

[warn]

[warn]  Note: Unresolved dependencies path:

[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-js-engine;sbtVersion=1.0;scalaVersion=2.12:1.2.3

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-js-engine_2.12_1.0/1.2.3/sbt-js-engine-1.2.3.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

[error] Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.5.2

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.5.2/sbt-native-packager-1.5.2.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.5.2/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.5.2/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.5.2/ivys/ivy.xml

[error] Error downloading com.lightbend.sbt:sbt-javaagent;sbtVersion=1.0;scalaVersion=2.12:0.1.5

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/lightbend/sbt/sbt-javaagent_2.12_1.0/0.1.5/sbt-javaagent-0.1.5.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/0.1.5/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/0.1.5/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/0.1.5/ivys/ivy.xml

[error] Error downloading com.typesafe.sbt:sbt-twirl;sbtVersion=1.0;scalaVersion=2.12:1.5.1

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-twirl_2.12_1.0/1.5.1/sbt-twirl-1.5.1.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-twirl/scala_2.12/sbt_1.0/1.5.1/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-twirl/scala_2.12/sbt_1.0/1.5.1/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-twirl/scala_2.12/sbt_1.0/1.5.1/ivys/ivy.xml

[error] Error downloading com.typesafe.sbt:sbt-web;sbtVersion=1.0;scalaVersion=2.12:1.4.4

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.4/sbt-web-1.4.4.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.4/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.4/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.4/ivys/ivy.xml

[error]         at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:247)

[error]         at lmcoursier.CoursierDependencyResolution.$anonfun$update$35(CoursierDependencyResolution.scala:216)

[error]         at scala.util.Either$LeftProjection.map(Either.scala:573)

[error]         at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:216)

[error]         at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)

[error]         at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:52)

[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:102)

[error]         at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:69)

[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:115)

[error]         at scala.util.control.Exception$Catch.apply(Exception.scala:228)

[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:115)

[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:96)

[error]         at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:150)

[error]         at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:129)

[error]         at sbt.Classpaths$.$anonfun$updateTask0$5(Defaults.scala:2950)

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

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

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

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

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

[error]         at [sbt.Execute.work](http://sbt.execute.work/)(Execute.scala:290)

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

[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] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-js-engine;sbtVersion=1.0;scalaVersion=2.12:1.2.3

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-js-engine_2.12_1.0/1.2.3/sbt-js-engine-1.2.3.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

[error] Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.5.2

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.5.2/sbt-native-packager-1.5.2.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.5.2/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.5.2/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.5.2/ivys/ivy.xml

[error] Error downloading com.lightbend.sbt:sbt-javaagent;sbtVersion=1.0;scalaVersion=2.12:0.1.5

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/lightbend/sbt/sbt-javaagent_2.12_1.0/0.1.5/sbt-javaagent-0.1.5.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/0.1.5/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/0.1.5/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/0.1.5/ivys/ivy.xml

[error] Error downloading com.typesafe.sbt:sbt-twirl;sbtVersion=1.0;scalaVersion=2.12:1.5.1

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-twirl_2.12_1.0/1.5.1/sbt-twirl-1.5.1.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-twirl/scala_2.12/sbt_1.0/1.5.1/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-twirl/scala_2.12/sbt_1.0/1.5.1/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-twirl/scala_2.12/sbt_1.0/1.5.1/ivys/ivy.xml

[error] Error downloading com.typesafe.sbt:sbt-web;sbtVersion=1.0;scalaVersion=2.12:1.4.4

[error]   Not found

[error]   Not found

[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.4/sbt-web-1.4.4.pom

[error]   not found: /home/ec2-user/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.4/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.4/ivys/ivy.xml

[error]   download error: Caught javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (Unsupported or unrecognized SSL message) while downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.4/ivys/ivy.xml

Below is build.sbt file content :

=======================================

scalaVersion := "2.13.3"

version := "1.0.0"

name := "mySBTtest"

libraryDependencies ++= Seq(

  "com.google.inject" % "guice" % "4.1.0",

  "com.amazonaws" % "aws-java-sdk" % "1.11.46",

  "commons-io" % "commons-io" % "2.5",

  "com.fasterxml.jackson.core" % "jackson-core" % "2.8.7",

  "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.7",

  "com.fasterxml.jackson.core" % "jackson-annotations" % "2.8.7",

  "com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % "2.9.0",

  "org.mockito" % "mockito-core" % "2.8.9",

  "com.couchbase.client" % "java-client" % "3.3.1",

  "org.mindrot" % "jbcrypt" % "0.3m",

  "io.vavr" % "vavr" % "0.9.0",

  "io.vavr" % "vavr-jackson" % "0.9.0",

  "io.vavr" % "vavr-match" % "0.9.0",

  "com.google.code.gson" % "gson" % "2.8.1",

  "junit" % "junit" % "4.12",

  "com.typesafe.play" % "play_2.12" % "2.8.9",

  "io.reactivex" % "rxjava" % "1.3.0",

  "com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % "2.9.0",

  "io.vavr" % "vavr-match" % "0.9.0",

  "commons-io" % "commons-io" % "2.4",

  "com.googlecode.jsontoken" % "jsontoken" % "1.0",

  "com.google.guava" % "guava" % "18.0",

  "org.mongodb" % "bson" % "3.3.0",

  "org.apache.tika" % "tika-core" % "1.18",

  "org.apache.tika" % "tika-parsers" % "1.18"

)

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eed3si9ncommented, Dec 8, 2022

Maybe something to try is running curl inside the EC2 machine to see that the certificates are up to date?

curl --head -L https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-js-engine/scala_2.12/sbt_1.0/1.2.3/ivys/ivy.xml

This should return HTTP/1.1 200 OK.

0reactions
eed3si9ncommented, Dec 8, 2022

Yea, so that’s likely an issue with your environment. Unless Scala Center’s Artifactory is blocked AWS-wide, I think it’s outside of the scope of issue tracking.

Feel free to continue the discussion on Discord etc though - https://www.scala-sbt.org/community.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unrecognized SSL message, plaintext connection? Exception
I think this is due to the connection established with the client machine is not secure. It is due to the fact that...
Read more >
Unrecognized SSL message, plaintext connection?
itko.lisa.vse.sio.OldIOSession - An error occurred trying to process a client request. javax.net.ssl.SSLException: Unrecognized SSL message ...
Read more >
Unsupported or unrecognized SSL message #178 - GitHub
Lately I've been getting the following ssl error. It seems to happen sporadically. I'm on TeamCity Professional 2020.1.1 (build 78657).
Read more >
Failed to read servers response: Unrecognized SSL message ...
This error may indicate that the application server is not communicating with the expected system. One cause of this is the default DNS...
Read more >
Unrecognized SSL message, plaintext connection? - IBM
When the user attempts to save a solution in Case Manager Builder, they receive the error:FNRPB8051E The solution cannot be saved because of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found