web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

LCS Local Agent 3.2.0 Upgrade fails when deploying ArtifactsManager

(0) ShareShare
ReportReport
Posted on by 48

Hello Everyone.

I am trying to upgrade my Local Agent from 3.1.0 to 3.2.0

I clean up the old agent , all ok , then when I start installation of the 3.2.0 I get an error and timeout.

LocalAgentCLI.exe Information: 0 : Copying application package C:\Temp\LocalAgent3_2_0\LocalAgent1393253\Applications\LBDTelemetry to LBDTelemetryType-Agent-1.0.0.20230321
LocalAgentCLI.exe Information: 0 : Provisioning application from LBDTelemetryType-Agent-1.0.0.20230321
LocalAgentCLI.exe Information: 0 : Creating application fabric:/LBDTelemetry-Agent, type LBDTelemetryType-Agent. app version 1.0.0.20230321
LocalAgentCLI.exe Information: 0 : Application fabric:/LBDTelemetry-Agent is OK
LocalAgentCLI.exe Information: 0 : Copying application package C:\Temp\LocalAgent3_2_0\LocalAgent1393253\Applications\LocalAgent to LocalAgentType-1.0.0.20230321
LocalAgentCLI.exe Information: 0 : Provisioning application from LocalAgentType-1.0.0.20230321
LocalAgentCLI.exe Information: 0 : Creating application fabric:/LocalAgent, type LocalAgentType. app version 1.0.0.20230321
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__38.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.Task.DelayPromise.Complete()
   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.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers(). 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.
Press any key to exit

Looking on the Application events I can see the following error on one of the ORCHESTRATOR nodes.

Application: ArtifactsManager.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: RunAsync failed due to an unhandled exception causing the host process to crash: System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Microsoft.Dynamics.LocalAgent.ArtifactsManager.ArtifactsDownloadManager..ctor(ConfigurationSection configSection, IReliableStateManager stateManager, Boolean validateFileHash)
   at Microsoft.Dynamics.LocalAgent.ArtifactsManager.ArtifactsManager.<RunAsync>d__18.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.ServiceFabric.Services.Runtime.StatefulServiceReplicaAdapter.<ExecuteRunAsync>d__23.MoveNext()
Stack:
   at System.Environment.FailFast(System.String)
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Faulting application name: ArtifactsManager.exe, version: 3.2.0.0, time stamp: 0x6419af74
Faulting module name: mscorlib.ni.dll, version: 4.8.4614.0, time stamp: 0x63995ad2
Exception code: 0x80131623
Fault offset: 0x00000000005faf27
Faulting process id: 0x2254
Faulting application start time: 0x01d9826b6db2fa77
Faulting application path: C:\ProgramData\SF\AX7TORC1\Fabric\work\Applications\LocalAgentType_App2112\ArtifactsManagerPkg.Code.1.0.0.20230321\ArtifactsManager.exe
Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\b647019e9c1f6030fc3caa74d4f8f2ac\mscorlib.ni.dll
Report Id: 939595d4-471f-4553-8f9f-18fd5b1720b8
Faulting package full name:
Faulting package-relative application ID:

Runing on Windows Server 2016 as I am trying to upgrade agent and everything else before I upgrade to Windows 2019 Server.

Thanks in advance.

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans