Orleans: Orleans.Configuration.Validators.ClientClusteringValidator.ClusterIdNotConfigured

Created on 14 May 2018  路  6Comments  路  Source: dotnet/orleans

Hi,

When I was trying using local development configuration to set up a server, I got an error Field not found: 'Orleans.Configuration.Validators.ClientClusteringValidator.ClusterIdNotConfigured'. It is very strange, because I did set ClusterId both in UseLocalhostClustering and Configure<ClusterOptions>.

Here is my server main code

       static async Task Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            ISiloHostBuilder siloBuilder = new SiloHostBuilder()
                .UseLocalhostClustering(clusterId: "tpdt-dev")
                .Configure<ClusterOptions>(options =>
                {
                    options.ClusterId = "dev";
                    options.ServiceId = "HelloWorldApp";
                })
                .Configure<EndpointOptions>(options => options.AdvertisedIPAddress = IPAddress.Loopback)
                .ConfigureLogging(
                    logging => logging.AddConsole());
            ISiloHost silo = siloBuilder.Build();
            await silo.StartAsync();

            Console.WriteLine("Press Enter to close.");
            // wait here
            Console.ReadLine();

            // shut the silo down after we are done.
            await silo.StopAsync();
        }

And the sentry exception log is https://sentry.io/share/issue/d4d5026ae2ca44f29528d1b3d784f763/ .

Thank you.

Most helpful comment

@luohuazhiyu After I manually installed Microsoft.Orleans.OrleansRuntime 2.0.3, the problem fixed. I think the key reason is that our server program uses Microsoft.Orleans.Server latest version 2.0.0 which only contains Microsoft.Orleans.OrleansRuntime 2.0.0. Just like what @sagron said.

All 6 comments

I suppose it's a regression in 2.0.3.
In 2.0.0 it works as expected.

I think this is caused by runtime and generator mismatch - see #4601

@StasPerekrestov @tcz717 This error has been deleted from the source code, at #4450 [ce689d1],I don't know why I'm wrong.

@luohuazhiyu After I manually installed Microsoft.Orleans.OrleansRuntime 2.0.3, the problem fixed. I think the key reason is that our server program uses Microsoft.Orleans.Server latest version 2.0.0 which only contains Microsoft.Orleans.OrleansRuntime 2.0.0. Just like what @sagron said.

@tcz717 I found out that the upgrade is not completely caused, please check the version of your dll file after the release.

This is a version mismatch issue, as mentioned above - please ensure that all packages have a consistent version. Feel free to reopen

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luciobemquerer picture luciobemquerer  路  4Comments

gabikliot picture gabikliot  路  4Comments

pherbel picture pherbel  路  4Comments

urig picture urig  路  4Comments

jt4000 picture jt4000  路  3Comments