Skip to main content

Notifications

Announcements

No record found.

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.

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