Skip to main content
Dynamics 365 Community / Forums / Finance forum / Dyn365F&O on-premise i...
Suggested answer

Dyn365F&O on-premise install stuck on deployment

editSubscribe (0) ShareShare
ReportReport
Posted on by 2

Hi all,

Together with a colleague, I am installing Dyn365F&O on-premises in a test environment. This is in preparation for an installation in a production environment.

We're currently stuck at step 23 of this tutorial: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/deployment/setup-deploy-on-prem...

In step 21 -> bulletpoint 15 we've verïfied the connection to the local agent and this resulted in the following message: Validation complete. Agent connection established.

We've also verified the nodes with the command .//Test-D365FOConfiguration.ps1 and they al came back with the right results and no errors.

On the first orchestrator node after about one hour starting the deployment from LCS we get the following error messages in the Windows Event Viewer:

Message Unable to download asset <id placeholder for this post>. The job state is failed.

<Data Name=/Detail/> at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

at System.Environment.get_StackTrace()

at

Microsoft.Dynamics.Operations.Local.LocalAgentEvents.LocalAgentEventHelpers.ErrorPrettify(LocalAgentEventSource
source, Exception ex, Int32 errorCode, String format, Object[] values)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseLcsArtifactsProvider.&lt;GetDownloadedAssetLocation&gt;d__7.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase.&lt;ContinueWithResult&gt;d__16`1.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase.&lt;InvokeAsync&gt;d__15.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at Microsoft.ServiceFabric.Services.Remoting.V1.Client.ServiceRemotingPartitionClient.&lt;InvokeAsync&gt;d__2.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at

Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.&lt;InvokeWithRetryAsync&gt;d__23`1.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)

at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&amp; currentTaskSlot)

at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)

at System.Threading.ThreadPoolWorkQueue.Dispatch()</Data>

<Data Name=/ErrorCode/>0</Data>

<Data Name=/MemberName/>ErrorPrettify</Data>

<Data Name=/SourceFile/>D://a//_work//1//s//Source//LocalAgentEvents//LocalAgentEventSource.cs</Data>

<Data Name=/SourceLineNumber/>79</Data>

Unable to get extract setup folder for command <command id placeholder for this post>

<Data Name=/Detail/> at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

at System.Environment.get_StackTrace()

at

Microsoft.Dynamics.Operations.Local.LocalAgentEvents.LocalAgentEventHelpers.ErrorPrettify(LocalAgentEventSource
source, Exception ex, Int32 errorCode, String format, Object[] values)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.&lt;ExtractArtifacts&gt;d__14.MoveNext()

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine&amp; stateMachine)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.ExtractArtifacts(String
standaloneZipLocation, String standaloneArtifactName, String
extractedLocation)

at
Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.&lt;ExtractDownloadedArtifacts&gt;d__11.MoveNext()

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&amp; stateMachine)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.ExtractDownloadedArtifacts(OrchestratorCommandArtifact
topologyFileArtifact, OrchestratorCommandArtifact
standaloneZipArtifact)

at
Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.LcsArtifactsProvider.&lt;ResolveArtifactLocations&gt;d__1.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseLcsArtifactsProvider.&lt;DownloadArtifact&gt;d__5.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseLcsArtifactsProvider.&lt;GetDownloadedAssetLocation&gt;d__7.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase.&lt;ContinueWithResult&gt;d__16`1.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase.&lt;InvokeAsync&gt;d__15.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at Microsoft.ServiceFabric.Services.Remoting.V1.Client.ServiceRemotingPartitionClient.&lt;InvokeAsync&gt;d__2.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task`1.TrySetResult(TResult result)

at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)

at

Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.&lt;InvokeWithRetryAsync&gt;d__23`1.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&amp; currentTask)

at System.Threading.Tasks.Task.FinishContinuations()

at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)

at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&amp; currentTaskSlot)

at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)

at System.Threading.ThreadPoolWorkQueue.Dispatch()</Data>

<Data Name=/ErrorCode/>0</Data>

<Data Name=/MemberName/>ErrorPrettify</Data>

<Data Name=/SourceFile/>D://a//_work//1//s//Source//LocalAgentEvents//LocalAgentEventSource.cs</Data>

<Data Name=/SourceLineNumber/>79</Data>

Task

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.ArtifactProcessorTask,OrchestrationService
failed for command id <command id placeholder for this post>

<Data
Name=/Detail/>System.AggregateException: One or more errors
occurred. ---&gt;
LocalAgentCommon.LocalAgentInvalidOperationException: Unable to get
extract setup folder for command <command id placeholder for this
post>

at
Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.&lt;ExtractArtifacts&gt;d__14.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.&lt;ExtractDownloadedArtifacts&gt;d__11.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.LcsArtifactsProvider.&lt;ResolveArtifactLocations&gt;d__1.MoveNext()

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.ArtifactProcessorTask.Run(OrchestratorRunbookResource
runbookResource, String commandId, String jobId, String runbookTaskId)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.OrchestrationJobManager.&lt;&gt;c__DisplayClass22_0.&lt;CreateNewTaskThread&gt;b__4()

---&gt;
(Inner Exception #0)
LocalAgentCommon.LocalAgentInvalidOperationException: Unable to get
extract setup folder for command <command id placeholder for this
post>

at
Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.&lt;ExtractArtifacts&gt;d__14.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.BaseArtifactsProvider.&lt;ExtractDownloadedArtifacts&gt;d__11.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at

Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.LcsArtifactsProvider.&lt;ResolveArtifactLocations&gt;d__1.MoveNext()&lt;---

</Data>

<Data Name=/ErrorCode/>0</Data>

<Data Name=/MemberName/>ErrorPrettify</Data>

<Data Name=/SourceFile/>D://a//_work//1//s//Source//LocalAgentEvents//LocalAgentEventSource.cs</Data>

<Data Name=/SourceLineNumber/>79</Data>

On the second orchestrator node we get the following errors:

The download was canceled as the maximum download time of 60 minutes was exceeded

Asset <asset id placeholder> has failed to download

We checked all the settings but we don't find anything strange. Also the logging we get after a failed deployment is very brief (see below):

7-Zip (a) 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30

Scanning the drive for archives:

1 file, 2847634749 bytes (2716 MiB)

Extracting archive: D://T//TempDataFolder//OnPrem//35zpvnfu.qg2//SFSetup.zip

--

Path = D://T//TempDataFolder//OnPrem//35zpvnfu.qg2//SFSetup.zip

Type = zip

Physical Size = 2847634749

Everything is Ok

Folders: 913

Files: 10519

Size: 4014646398

Compressed: 2847634749

Besides this logging from LCS and the errors already mentioned above from the Windows Event viewer on the Orchestrator node, we do not encounter any other reports.

Does anyone have a suggestion as to what this might be?

 

(I've posted this also on the SpiceWorks en Reddit Dynamics (F&O) forums)