Skip to content

Failure to form a cluster on .NET 9 when using Azure discovery with Akka.Management 1.5.35 #3079

@object

Description

@object

Version Information
Akka.Management
Akka.Discovery.Azure
Akka.Coordination.Azure
Version 1.5.35
.NET 9

Describe the bug
Services start but unable to form a cluster continuously raising the following exception:

  "Message": "Failed to create/retrieve self discovery entry, retrying.",
  "MessageTemplate": "{Message:l}",
  "Renderings": [
    "Failed to create/retrieve self discovery entry, retrying."
  ],
  "Exception": {
    "Type": "FileNotFoundException",
    "Message": "Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.",
    "StackTrace": "   at Akka.Discovery.Azure.ClusterMemberTableClient.GetEntityAsync(String rowKey, CancellationToken token)\r\n   at Akka.Discovery.Azure.ClusterMemberTableClient.GetOrCreateAsync(String host, IPAddress address, Int32 port, CancellationToken token)\r\n   at Akka.Discovery.Azure.Actors.AzureDiscoveryGuardian.<Initializing>b__24_1(CancellationToken token)\r\n   at Akka.Discovery.Azure.Actors.AzureDiscoveryGuardian.ExecuteOperationWithRetry[T](Func`2 operation)\r\n   at Akka.Actor.PipeToSupport.PipeTo[T](Task`1 taskToPipe, ICanTell recipient, Boolean useConfigureAwait, IActorRef sender, Func`2 success, Func`2 failure)"
  },
  "_Message": "Failed to create/retrieve self discovery entry, retrying.",
  "Thread": "0038",
  "LogSource": "AzureDiscoveryGuardian (akka://Oddjob)",
  "Timestamp": "2025-01-16T06:47:49.7561942Z",
  "ActorPath": "akka://Oddjob/system/azure-discovery-guardian",
  "SourceContext": "Akka.Event.DummyClassForStringSources",

To Reproduce
Build applications using Akka.Management 1.5.35, run on .NET 9.

Environment
Linux with .NET SDK 9.0

Additional context
After downgrading Akka.Management packages to the version 1.5.33 the problem goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions