The lease on AnalyticsStateService.SetFeatureState ....expire during azureDevOps on-premises install

Copper Contributor

keep buming into this error during installation on a window server (Azure DevOps Server 2019.1):

[Info @00:15:12.224] [2022-01-05 08:15:11Z][Error] The lease on AnalyticsStateService.SetFeatureState, owner deab9dc2-1425-4b34-a416-fec7ea471614, obtained on 1/5/2022 8:13:41 AM by process 2cc9421e-a42a-48c2-a8e2-3e8571fe00fe has expired on 1/5/2022 8:14:11 AM (362 of 387)
[Info @00:15:12.224] [2022-01-05 08:15:11Z][Informational] Microsoft.TeamFoundation.Framework.Server.LeaseLostException: The lease on AnalyticsStateService.SetFeatureState, owner deab9dc2-1425-4b34-a416-fec7ea471614, obtained on 1/5/2022 8:13:41 AM by process 2cc9421e-a42a-48c2-a8e2-3e8571fe00fe has expired on 1/5/2022 8:14:11 AM
at Microsoft.TeamFoundation.Framework.Server.VssRequestContext.CheckCanceled(Boolean throwIfShutdown)
at Microsoft.TeamFoundation.Framework.Server.VssRequestContext.get_ServiceProvider()
at Microsoft.TeamFoundation.Framework.Server.VssRequestContextExtensions.GetService[TService](IVssRequestContext context)
at Microsoft.VisualStudio.Services.Framework.SecurityStepPerformer.CreateOrUpdateSecurityNamespaces(IVssRequestContext requestContext, ServicingContext servicingContext, LocalNamespaceDescriptionStepData[] securityNamespaceDescriptions)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps) (362 of 387)
[Warning@00:15:12.224] [2022-01-05 08:15:11Z] Servicing step 'Create Framework Security Namespaces' failed. (ServicingOperation: 'CreateCollection.Service.Notifications'; Step group: 'CreateCollection.Service.Notifications')
[Info @00:15:12.224] [2022-01-05 08:15:11Z] Servicing step 'Create Framework Security Namespaces' failed. (ServicingOperation: 'CreateCollection.Service.Notifications'; Step group: 'CreateCollection.Service.Notifications') (362 of 387)
[Info @00:15:12.224] [2022-01-05 08:15:11Z][Step Duration] 0.0001752 (362 of 387)
[Info @00:15:12.224] [2022-01-05 08:15:11Z][Group Duration] 0.0208917 (362 of 387)
[Info @00:15:12.224] [2022-01-05 08:15:11Z][Operation Duration] 0.0209106 (362 of 387)
[Warning@00:15:12.224] TF255271: The team project collection could not be created. The number of steps before the completion of project creation is: 387. The number of steps completed before the failure was 362.
[Info @00:15:14.684] Node returned: Error
[Warning@00:15:14.692] There was a problem or delay during the creation of your initial Team Project Collection. To check the status of the Team Project Collection, launch the Azure DevOps Administration Console and review the current status on the Team Project Collection node.
You must create at least one team project collection before you can use the features of Azure DevOps Server. You can create a team project collection by using the New Team Project Collection Wizard from the Azure DevOps Administration Console.
Before you run the New Team Project Collection Wizard, you should open the configuration logs and then review and correct any errors and warnings about the failure.

 

and 2nd question is i seem to not able to load the web portal. to resolve the 1st issue as suggested by the installer which is to go to this link

docs.microsoft.com/en-us/azure/devops/report/dashboards/analytics-extension?view=azure-devops-2019

 

please advice.

 

 

2 Replies
can anyone explain why we no longer get the analytics extension anymore. The ' get it free' button is grey out. i am just trying to download and bring it over to my another machine.

https://marketplace.visualstudio.com/items?itemName=ms.vss-analytics&ssr=false#overview

I had a similar issue ("The lease on [...] expired") when installing Azure DevOps Server on a dual-core VM with a fairly weak CPU.

The issue for me was resolved by increasing the CPU power of the server, e.g. using a quad-core processor instead of a dual-core processor. E.g. if you're using an AWS server, you can pay for a more expensive server for the installation step, then downgrade it to a cheaper and less powerful server afterwards.

 

I also found temporarily disabling the anti-virus and other background processes seemed to help too, so that the installation step can run as quickly as possible.