Upgrade failed

Copper Contributor

Hi all,

Lately the updater service is throwing event ID 3277:

"UpdateAgentAsync - DownloadMSIException Microsoft.RDInfra.RDAgent.Service.DownloadMSIException: RDAgent failed to download MSI: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. : 0x80131620 ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
--- End of inner exception stack trace ---
at Microsoft.RDInfra.RDAgent.Service.DownloaderHelper.DownloadMSI(String downloadLocation, String msiFileName, String errorMessagePreamble, IAgentUpdateState agentUpdateState, ILogger logger) in C:\agent\_work\35\s\src\RDAgent\src\Service\AgentUpdateClasses\AgentUpdateCommon.cs:line 160
at Microsoft.RDInfra.RDAgent.Service.AgentDownloadHdlrImpl.DownloadAgentMSI(String downloadLocation) in C:\agent\_work\35\s\src\RDAgent\src\Service\AgentUpdateClasses\AgentDownloadHdlrImpl.cs:line 42
at Microsoft.RDInfra.RDAgent.Service.RDAgentUpdateHandler.UpdateAgentAsync(JObject json) in C:\agent\_work\35\s\src\RDAgent\src\Service\AgentUpdateClasses\RDAgentUpdateHandler.cs:line 232"

 

AgentVersion : 1.0.1006.2000
OsVersion : 10.0.18362
SxSStackVersion : rdp-sxs190614002
Status : UpgradeFailed
UpdateState : Failed
LastUpdateTime : 14.08.2019 09:29:58
UpdateErrorMessage : RDAgent failed to download MSI: Unable to read data from the transport connection: An existing
connection was forcibly closed by the remote host. : 0x80131620


Anyone else is having this issue or does know how to fix it? Manual download is no problem at all.
Is this a known bug in 1.0.1006.2000? Never had this before.

 

Cheers

3 Replies

@A_priori_superior : Apologies for the delay. Previously, we had seen some errors with updating. However, you should no longer see any issues with the agent today. Please let us know if you hit any more issues.

Hi Christianmontoya, Even I am also seeing the same issue. As i am seeing below events

Can you please help ?

Log Name: Application
Source: WVD-Agent
Date: 3/15/2021 7:18:15 AM
Event ID: 3277
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: IT-WVD-0.Test.com
Description:
UpdateAgentSxSStackAsync - DownloadMSIException Microsoft.RDInfra.RDAgent.Service.DownloadMSIException: Side-by-Side Stack MSI failed to download: Unable to connect to the remote server
at Microsoft.RDInfra.RDAgent.Service.DownloaderHelper.DownloadMSI(String downloadLocation, String msiFileName, String errorMessagePreamble, IAgentUpdateState agentUpdateState, ILogger logger) in E:\agent\_work\2\s\src\RDAgent\src\Service\AgentUpdateClasses\AgentUpdateCommon.cs:line 192
at Microsoft.RDInfra.RDAgent.Service.SxsStackMsiDownloader.DownloadSxsStackMSI(String downloadLocation) in E:\agent\_work\2\s\src\RDAgent\src\Service\AgentUpdateClasses\SxsStackMsiDownloader.cs:line 70
at Microsoft.RDInfra.RDAgent.Service.RDAgentUpdateHandler.<UpdateAgentSxSStackAsync>d__55.MoveNext() in E:\agent\_work\2\s\src\RDAgent\src\Service\AgentUpdateClasses\RDAgentUpdateHandler.cs:line 465
Event Xml:
hi, @Christian_Montoya - can you pls advise on how to fix the above issue ?
I am getting this in my 2009 environment, both sessions host in my host pool having that error
UpdateAgentAsync - DownloadMSIException Microsoft.RDInfra.RDAgent.Service.DownloadMSIException: RDAgent failed to download MSI: The remote server returned an error: (403) Forbidden. at Microsoft.RDInfra.RDAgent.Service.DownloaderHelper.DownloadMSI(String downloadLocation, String msiFileName, String errorMessagePreamble, IAgentUpdateState agentUpdateState, ILogger logger) in S:\src\RDAgent\src\Service\AgentUpdateClasses\AgentUpdateCommon.cs:line 192 at Microsoft.RDInfra.RDAgent.Service.AgentDownloadHdlrImpl.DownloadAgentMSI(String downloadLocation, Boolean isRDAgentMSI) in S:\src\RDAgent\src\Service\AgentUpdateClasses\AgentDownloadHdlrImpl.cs:line 67 at Microsoft.RDInfra.RDAgent.Service.RDAgentUpdateHandler.UpdateAgentAsync(JObject json) in S:\src\RDAgent\src\Service\AgentUpdateClasses\RDAgentUpdateHandler.cs:line 255