Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Dyn365F&O on-premise install stuck on deployment

(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)

  • Suggested answer
    Eddie_Nguyen Profile Picture
    Eddie_Nguyen on at
    Dyn365F&O on-premise install stuck on deployment
    Hi,
     
    I would suggest you to check few things:
    1. In the Fileshare VM (VM that hosted Agent folder and aos-storage folder). do you have any Antivirus running? It will actively scan any file that got downloaded/copied to agent folder which greatly slow down the process. If yes, you should create exception/exclusion in your AV to avoid scanning agent and aos-storage folders or simply disable your AV.
    2. Testing connection between VM and LCS, follow this docTroubleshoot on-premises deployments - Finance & Operations | Dynamics 365 | Microsoft Learn . If you run psping lcsapi.lcs.dynamics.com:443 and the result is more than 200ms, I would suggest to check the internet connection as it was too slow. 
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Dyn365F&O on-premise install stuck on deployment
    Hi,
    Not sure if it's a file download issue, based on what you think, you may need to open a ticket with Microsoft to confirm and find out the specific cause of the error.
    Best Regards,
    Hana
  • Dyn365F&O on-premise install stuck on deployment
    Hi both,
     
    Thanks for your reply! I've checked both suggestions and verified the settings but we didn't find anything wrong.
     
    Another thing I discovered myself is that a file StandaloneSetup.zip is being downloaded and it is not very fast. Given the reports, I suspect that downloading this file is causing the timeout.
    The file is also not opening after the 60 minutes and gives error messages that it is incomplete/corrupt.
     
    Do you guys have any idea what could be causing this? The internet connection is a fiber optic connection with 1000/1000 in terms of speed.
     
    Or is it wise to file a ticket with Microsoft for this?
  • Suggested answer
    Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Dyn365F&O on-premise install stuck on deployment
    Hi,
    For the errors you mentioned, you can view the screenshots and links below. Questions similar to yours are mentioned in the link, you can check it for reference.


    Unable to get extract setup folder issue · Issue #1464 · MicrosoftDocs/dynamics-365-unified-operations-public · GitHub
    Best Regards,
    Hana
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,162 Super User 2025 Season 1 on at
    Dyn365F&O on-premise install stuck on deployment
    Hi Ard-Jan,
     
    Searching for some error text in the logs, I found this error:
     
    LocalAgentCommon.LocalAgentInvalidOperationException: Unable to get extract setup folder for command <command id placeholder for this post>
     
    On Microsoft Learn, you can find help for this on the troubleshooting page: Troubleshoot on-premises deployments - Finance & Operations | Dynamics 365 | Microsoft Learn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans