SOLVED

ATA Lightweight Gateway not starting

%3CLINGO-SUB%20id%3D%22lingo-sub-285930%22%20slang%3D%22en-US%22%3EATA%20Lightweight%20Gateway%20not%20starting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285930%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20ATA%20Server%20and%20two%20DCs%20on-premises%20running%20the%20Lightweight%20Gateway.%20This%20configuration%20has%20been%20in%20place%20without%20any%20issues%20for%20over%20a%20year.%26nbsp%3B%20We%20setup%20a%20third%20DC%20in%20Azure.%26nbsp%3B%20The%20Azure%20subnet%20is%20connected%20with%20a%20VPN%20to%20to%20our%20on-premises%20network%20with%20no%20connectivity%20issues%20in%20regards%20to%20other%20servers%20in%20the%20two%20sites.%20The%20third%20DC%20has%20the%20Lightweight%20Gateway%20installed%20but%20will%20not%20start%20the%20service.%20We%20are%20able%20to%20connect%20to%20the%20ATA%20web%20site%20from%20the%20Azure%20DC.%20I%20also%20migrated%20the%20ATA%20server%20from%20our%20on-prem%20network%20to%20Azure%20and%20the%20on-prem%20DCs%20communicate%20fine%20to%20the%20ATA%20server%20but%20still%20cannot%20get%20the%20Azure%20DC%20working.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20error%20is%20present%20in%20the%20Microsoft.Tri.Gateway-Errors%20log%20and%20is%20generated%20every%20time%20the%20service%20attempts%20to%20start%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2018-11-13%2014%3A09%3A14.0579%206632%205%20Error%20%5BEnumerable%5D%20System.InvalidOperationException%3A%20Sequence%20contains%20more%20than%20one%20element%3CBR%20%2F%3Eat%20System.Linq.Enumerable.Single%5BTSource%5D(IEnumerable%601%20source)%3CBR%20%2F%3Eat%20async%20Microsoft.Tri.Gateway.Resolution.DirectoryServices.DirectoryServicesClient.ConnectDisconnectedDomainControllersAsync(%3F)%3CBR%20%2F%3Eat%20async%20Microsoft.Tri.Gateway.Resolution.DirectoryServices.DirectoryServicesClient.OnInitializeAsync(%3F)%3CBR%20%2F%3Eat%20async%20Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(%3F)%3CBR%20%2F%3Eat%20async%20Microsoft.Tri.Infrastructure.Framework.ModuleManager.OnInitializeAsync(%3F)%3CBR%20%2F%3Eat%20async%20Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(%3F)%3CBR%20%2F%3Eat%20async%20Microsoft.Tri.Infrastructure.Framework.Service.OnStartAsync(%3F)%3CBR%20%2F%3Eat%20Microsoft.Tri.Infrastructure.Framework.Service.OnStart(String%5B%5D%20args)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-286138%22%20slang%3D%22en-US%22%3ERe%3A%20ATA%20Lightweight%20Gateway%20not%20starting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-286138%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20was%20it%20-%20thanks%20so%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285967%22%20slang%3D%22en-US%22%3ERe%3A%20ATA%20Lightweight%20Gateway%20not%20starting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285967%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20have%20either%20a%20missing%20or%20duplicate%20NTDS%20settings%20record%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20script%20might%20come%20in%20handy%20finding%20it%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2Fscriptcenter%2FCheck-Active-Directory-9faf93b5%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2Fscriptcenter%2FCheck-Active-Directory-9faf93b5%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have an ATA Server and two DCs on-premises running the Lightweight Gateway. This configuration has been in place without any issues for over a year.  We setup a third DC in Azure.  The Azure subnet is connected with a VPN to to our on-premises network with no connectivity issues in regards to other servers in the two sites. The third DC has the Lightweight Gateway installed but will not start the service. We are able to connect to the ATA web site from the Azure DC. I also migrated the ATA server from our on-prem network to Azure and the on-prem DCs communicate fine to the ATA server but still cannot get the Azure DC working.

 

This error is present in the Microsoft.Tri.Gateway-Errors log and is generated every time the service attempts to start;

 

2018-11-13 14:09:14.0579 6632 5 Error [Enumerable] System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at async Microsoft.Tri.Gateway.Resolution.DirectoryServices.DirectoryServicesClient.ConnectDisconnectedDomainControllersAsync(?)
at async Microsoft.Tri.Gateway.Resolution.DirectoryServices.DirectoryServicesClient.OnInitializeAsync(?)
at async Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(?)
at async Microsoft.Tri.Infrastructure.Framework.ModuleManager.OnInitializeAsync(?)
at async Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(?)
at async Microsoft.Tri.Infrastructure.Framework.Service.OnStartAsync(?)
at Microsoft.Tri.Infrastructure.Framework.Service.OnStart(String[] args)

 

2 Replies
Best Response confirmed by Paul Appleby (New Contributor)
Solution

You have either a missing or duplicate NTDS settings record .

 

This script might come in handy finding it:

https://gallery.technet.microsoft.com/scriptcenter/Check-Active-Directory-9faf93b5

 

That was it - thanks so much.