Skip to main content



No record found.

Dynamics 365 Community / Forums / Finance forum / Install LocalAgent Dyn...
Finance forum

Install LocalAgent Dynamics 365 F&O on-premise error Not ok after 5 minutes

Posted on by 35


I following in and I got an error in step 20 when I run command "LocalAgentCLI.exe Install <path of config.json>".

This error:

C:\D365OnpremInstallation\LocalAgent-1051074\LocalAgent-1051074>LocalAgentCLI.exe Install "C:\D365OnpremInstallation\localAgent-config.json"
Invoking ef6.exe database update --assembly OrchestrationService.DataModels.dll --connection-string "Data;Initial Catalog = OrchestratorData; Integrated Security = True; MultipleActiveResultSets=True" --connection-provider System.Data.SqlClient --project-dir C:\D365OnpremInstallation\LocalAgent-1051074\LocalAgent-1051074
LocalAgentCLI.exe Information: 0 : Copying application package C:\D365OnpremInstallation\LocalAgent-1051074\LocalAgent-1051074\Applications\LBDTelemetry to LBDTelemetryType-Agent-
LocalAgentCLI.exe Information: 0 : Provisioning application from LBDTelemetryType-Agent-
LocalAgentCLI.exe Information: 0 : Creating application fabric:/LBDTelemetry-Agent, type LBDTelemetryType-Agent. app version
LocalAgentCLI.exe Information: 0 : Application fabric:/LBDTelemetry-Agent is OK
LocalAgentCLI.exe Information: 0 : Copying application package C:\D365OnpremInstallation\LocalAgent-1051074\LocalAgent-1051074\Applications\LocalAgent to LocalAgentType-
LocalAgentCLI.exe Information: 0 : Provisioning application from LocalAgentType-
LocalAgentCLI.exe Information: 0 : Creating application fabric:/LocalAgent, type LocalAgentType. app version
LocalAgentCLI.exe Error: 0 : Application fabric:/LocalAgent is not OK after 5 minutes. Exception: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at SetupInfrastructure.SetupInfrastructureEventsHelper.ErrorPrettify(SetupInfrastructureEventSource source, Exception ex, Int32 errorCode, String format, Object[] values)
at SetupInfrastructure.ServiceFabricApplicationSetupManager`1.<CheckApplicationState>d__39.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
at System.Threading.Tasks.TaskCompletionSource`1.SetResult(TResult result)
at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
at System.Fabric.Interop.SharedNativeObject`1.TryAcquireAndInvoke(Action`1 action). Error code: 0
LocalAgentCLI.exe Information: 0 : Unable to install the application fabric:/LocalAgent. Check the event viewer and service fabric explorer for more details.


I don't know what to do next.

If you have any suggestion please advice to me.

Sorry for my bad in English.


Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans