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

Azure Cosmos DB Emulator cannot be installed on AD domain controller machine #471

Open
Yaming-Hub opened this issue Apr 6, 2018 · 0 comments

Comments

@Yaming-Hub
Copy link

The Azure Cosmos DB Enumerator is working well when running on regular computers, but when I tried to install in on one domain controller machine, I got following error:

Application: DocumentDB.StartupEntryPoint.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Security.Principal.IdentityNotMappedException
at System.Security.Principal.NTAccount.Translate(System.Security.Principal.IdentityReferenceCollection, System.Type, Boolean)
at System.Security.Principal.NTAccount.Translate(System.Type)
at Microsoft.Azure.Documents.Common.SecurityUtil.AccountNameToSid(System.String)
at Microsoft.Azure.Documents.Services.ServiceStartupEntryPoint.ServiceStartupEntryPoint.GetSecurityGroupSid(System.String)
at Microsoft.Azure.Documents.Services.ServiceStartupEntryPoint.ServiceStartupEntryPoint.GatewayInit(System.Fabric.CodePackageActivationContext)
at Microsoft.Azure.Documents.Services.ServiceStartupEntryPoint.ServiceStartupEntryPoint.Main(System.String[])

I checked the code, the problem happens to the following linke
string securityGroupSid = GetSecurityGroupSid("DocDBGatewayService");

which internally try to find the SID for account \DocDBGatewayservice, where on a domain controller, the machine name is not valid account scope. Since the DocDBGatewayservice is not present anyway, so we should try catch and ignore such exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant