Cluster fail with error "Akka version MUST be the same across all modules of Akka that you are using,"


(Joo) #1

Not quite sure if it is related to the other bug I reported just before, but even after I managed to deploy the containers by upgrading the RP to 1.7.0, I am still unable to start my services as they fail to form a cluster and shutdown themselves after repeated failure.

However I do notice this error message in the log file, which might be related to this issue:

2019-02-07T16:38:19.967Z [warn] akka.util.ManifestInfo [sourceThread=main, akkaTimestamp=16:38:19.955UTC, akkaSource=ManifestInfo(akka://application), sourceActorSystem=application] - 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.20] 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.19, 2.5.20] in libraries [akka-persistence:2.5.19, akka-cluster-sharding:2.5.19, akka-protobuf:2.5.19, akka-persistence-query:2.5.19, akka-actor:2.5.20, akka-slf4j:2.5.19, akka-remote:2.5.19, akka-cluster:2.5.19, akka-distributed-data:2.5.19, akka-stream:2.5.19, akka-cluster-tools:2.5.19]

(Joo) #2

Also this error:

2019-02-07T16:39:45.754Z [warn] akka.cluster.sharding.ShardRegion [sourceThread=application-akka.actor.default-dispatcher-2, akkaTimestamp=16:39:45.753UTC, akkaSource=akka.tcp://application@10-8-4-179.silver-alpha.pod.cluster.local:2552/system/sharding/PlanTimeSeriesEventProcessor, sourceActorSystem=application] - No coordinator found to register. Probably, no seed-nodes configured and manual cluster join not performed? Total [12] buffered messages.
2019-02-07T16:39:46.004Z [info] akka.management.cluster.bootstrap.LowestAddressJoinDecider [sourceThread=application-akka.actor.default-dispatcher-5, akkaTimestamp=16:39:46.004UTC, akkaSource=LowestAddressJoinDecider(akka://application), sourceActorSystem=application] - Discovered [3] contact points, confirmed [1], which is less than the required [3], retrying
2019-02-07T16:39:46.284Z [warn] akka.cluster.sharding.ShardRegion [sourceThread=application-akka.actor.default-dispatcher-4, akkaTimestamp=16:39:46.284UTC, akkaSource=akka.tcp://application@10-8-4-179.silver-alpha.pod.cluster.local:2552/system/sharding/kafkaProducer-timeseriesSvc-dailyMarketValueTopic-V1, sourceActorSystem=application] - No coordinator found to register. Probably, no seed-nodes configured and manual cluster join not performed? Total [12] buffered messages.

(Joo) #3

I did some more research, and read the RP 1.7.0 release note - it seems like the problem is that RP 1.7.0 is expecting akka 2.5.20 but Lagom 1.4.10 is still on Akka 2.5.19. Please correct me if i am wrong…

Also, how do I override the akka version in Lagom? @TimMoore @eed3si9n @patriknw please help!


(Tim Moore) #4

@lejoow you can add dependencyOverrides for all of the outdated Akka modules.

See sbt docs for details:
https://www.scala-sbt.org/release/docs/Library-Management.html#Overriding+a+version


(Tim Moore) #5

We’ll also release Lagom 1.4.11 with updated Akka dependencies.

Thanks for alerting us, @lejoow!


(Joo) #6

Your welcome. Thanks a lot @TimMoore for fixing it so quickly!


(Marcos Pereira) #7

@lejoow Lagom 1.4.11 was just released with Akka update @TimMoore did:

https://www.lagomframework.com/blog/lagom-1-4-11.html

Best.


(Joo) #8

Thanks a lot @marcospereira and @TimMoore!