akkadotnet / akka.net

Canonical actor model implementation for .NET with local + distributed actors in C# and F#.
http://getakka.net
Other
4.7k stars 1.04k forks source link

Update to 1.3.8 - Cluster does not work anymore #3528

Closed JTrotta closed 6 years ago

JTrotta commented 6 years ago

After update to 1.3.8 cannot create the cluster.

Obviously nothing ha been changed but akka libraries (firewall is disabled). JJ

Aaronontheweb commented 6 years ago

@JTrotta could you share your HOCON configuration? The only big change in 1.3.7 or 1.3.8 that might be at the root of this is the upgrade to DotNetty v0.4.8. Are all nodes running the same version of Akka.NET?

JTrotta commented 6 years ago

@Aaronontheweb Hello, of course nodes are identical. Hocon is the same I used with 1.3.6: akka {
loglevel = DEBUG loggers =["Akka.Logger.NLog.NLogLogger, Akka.Logger.NLog"] actor { provider = cluster serializers { akka-pubsub = "Akka.Cluster.Tools.PublishSubscribe.Serialization.DistributedPubSubMessageSerializer, Akka.Cluster.Tools" hyperion = "Akka.Serialization.HyperionSerializer, Akka.Serialization.Hyperion" } serialization-identifiers { "Akka.Cluster.Tools.PublishSubscribe.Serialization.DistributedPubSubMessageSerializer, Akka.Cluster.Tools" = 9 } serialization-bindings { "System.Object" = hyperion } } remote { dot-netty.tcp { port = 32213 hostname = 192.168.0.103 public-hostname = 192.168.0.103 } } cluster { seed-nodes = [] } }

Seed nodes is empty, because is populated at run-time

Aaronontheweb commented 6 years ago

And now the cluster can't form at all?

JTrotta commented 6 years ago

Yes, I got the above errors. FYI The leader node log a lot of this error, each one with a different Id: Error caught channel [192.168.0.30:32213->192.168.0.103:27365](Id=073fafe4)

JTrotta commented 6 years ago

Do you have any news? May I help you in such a way? Thank you.

Aaronontheweb commented 6 years ago

Not at the moment - running clusters on .NET Core and .NET Framework with v1.3.8 and I'm not running into any issues at all, so I'm inclined to think this is a configuration issue on your end possibly. I'd like to take a look at the Hyperion bits some but we haven't had any reports about that being an issue either.

JTrotta commented 6 years ago

Is, in your opininion, this part of Hocon correct ?: actor { provider = cluster serializers { akka-pubsub = "Akka.Cluster.Tools.PublishSubscribe.Serialization.DistributedPubSubMessageSerializer, Akka.Cluster.Tools" hyperion = "Akka.Serialization.HyperionSerializer, Akka.Serialization.Hyperion" } serialization-identifiers { "Akka.Cluster.Tools.PublishSubscribe.Serialization.DistributedPubSubMessageSerializer, Akka.Cluster.Tools" = 9 } serialization-bindings { "System.Object" = hyperion } }

JTrotta commented 6 years ago

Solved. Weird problem, even though everything correct compiled and working, dotnetty now needs the library System.Runtime.CompilerServices.Unsafe, I did not copy to the remote machine. Sorry for the waste time.