Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AKKA version missmatch #877

Closed
zpriddy opened this issue Feb 14, 2019 · 0 comments
Closed

AKKA version missmatch #877

zpriddy opened this issue Feb 14, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@zpriddy
Copy link

zpriddy commented Feb 14, 2019

Request Type

Bug

Work Environment

Question Answer
TheHive version / git hash 3.3.0-RC2

Problem Description

When launching Hive in a cluster setup using Akka i get the following error:

2019-02-14 18:10:53,780 [WARN] from akka.util.ManifestInfo in application-akka.actor.default-dispatcher-18 - Detected possible incompatible versions on the classpath. Please note that a given Akka version MUST be the same across all modules of Akka that you are using, e.g. if you use [2.5.17] all other modules that are released together MUST be of the same version. Make sure you're using a compatible set of libraries.Possibly conflicting versions [2.5.17, 2.5.11] in libraries [akka-protobuf:2.5.17, akka-actor:2.5.17, akka-slf4j:2.5.17, akka-remote:2.5.11, akka-cluster:2.5.11, akka-stream:2.5.17, akka-cluster-tools:2.5.11]

Solution

Updating TheHive/project/Dependencies.scala to use version 2.5.19 solves this problem. 2.5.19 was recommended from other error logs:

[warn] 	* com.typesafe.akka:akka-stream_2.12:2.5.19 is selected over {2.5.17, 2.4.20}
[warn] 	    +- com.typesafe.play:play-streams_2.12:2.6.21 ()      (depends on 2.5.19)
[warn] 	    +- com.typesafe.akka:akka-http2-support_2.12:10.0.15 () (depends on 2.4.20)
[warn] 	    +- com.typesafe.akka:akka-http-core_2.12:10.0.15 ()   (depends on 2.4.20)
[warn] 	    +- com.typesafe.play:play-ws-standalone_2.12:1.1.12   (depends on 2.5.17)
[warn] 	    +- com.typesafe.akka:akka-remote_2.12:2.5.17 ()       (depends on 2.5.17)
[warn] 	* com.typesafe.akka:akka-actor_2.12:2.5.19 is selected over {2.5.17, 2.4.17, 2.4.20}
[warn] 	    +- com.typesafe.akka:akka-stream_2.12:2.5.19 ()       (depends on 2.5.19)
[warn] 	    +- com.typesafe.play:play_2.12:2.6.21 ()              (depends on 2.5.19)
[warn] 	    +- com.typesafe.akka:akka-slf4j_2.12:2.5.19 ()        (depends on 2.5.19)
[warn] 	    +- com.typesafe.akka:akka-parsing_2.12:10.0.15 ()     (depends on 2.4.20)
[warn] 	    +- com.sksamuel.elastic4s:elastic4s-streams_2.12:5.6.6 (depends on 2.4.17)
[warn] 	    +- com.typesafe.akka:akka-remote_2.12:2.5.17 ()       (depends on 2.5.17)

This is what worked in my Dependencies.scala:


import sbt._

object Dependencies {
  val scalaVersion = "2.12.6"

  object Library {

    object Play {
      val version = play.core.PlayVersion.current
      val ws = "com.typesafe.play" %% "play-ws" % version
      val ahc = "com.typesafe.play" %% "play-ahc-ws" % version
      val cache = "com.typesafe.play" %% "play-ehcache" % version
      val test = "com.typesafe.play" %% "play-test" % version
      val specs2 = "com.typesafe.play" %% "play-specs2" % version
      val filters = "com.typesafe.play" %% "filters-helpers" % version
      val guice = "com.typesafe.play" %% "play-guice" % version
    }

    val scalaGuice = "net.codingwell" %% "scala-guice" % "4.2.1"

    val reflections = "org.reflections" % "reflections" % "0.9.11"
    val zip4j = "net.lingala.zip4j" % "zip4j" % "1.3.2"
    val elastic4play = "org.thehive-project" %% "elastic4play" % "1.8.0-1"
    val akkaCluster = "com.typesafe.akka" %% "akka-cluster" % "2.5.19"
    val akkaClusterTools = "com.typesafe.akka" %% "akka-cluster-tools" % "2.5.19"
  }
}
zpriddy added a commit to zpriddy/TheHive that referenced this issue Feb 14, 2019
Update akka version as detailed in TheHive-Project#877
zpriddy added a commit to zpriddy/TheHive that referenced this issue Feb 14, 2019
Update akka version as detailed in TheHive-Project#877
@saadkadhi saadkadhi added the bug label Feb 16, 2019
@To-om To-om closed this as completed Feb 18, 2019
@To-om To-om added this to the 3.3.0 RC3 milestone Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants