Upgrade failed

%3CLINGO-SUB%20id%3D%22lingo-sub-804247%22%20slang%3D%22en-US%22%3EUpgrade%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-804247%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3CBR%20%2F%3E%3CBR%20%2F%3ELately%20the%20updater%20service%20is%20throwing%20event%20ID%203277%3A%3C%2FP%3E%3CP%3E%22UpdateAgentAsync%20-%20DownloadMSIException%20Microsoft.RDInfra.RDAgent.Service.DownloadMSIException%3A%20RDAgent%20failed%20to%20download%20MSI%3A%20Unable%20to%20read%20data%20from%20the%20transport%20connection%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host.%20%3A%200x80131620%20---%26gt%3B%20System.IO.IOException%3A%20Unable%20to%20read%20data%20from%20the%20transport%20connection%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host.%20---%26gt%3B%20System.Net.Sockets.SocketException%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host%3CBR%20%2F%3Eat%20System.Net.Sockets.NetworkStream.Read(Byte%5B%5D%20buffer%2C%20Int32%20offset%2C%20Int32%20size)%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3Eat%20System.Net.Sockets.NetworkStream.Read(Byte%5B%5D%20buffer%2C%20Int32%20offset%2C%20Int32%20size)%3CBR%20%2F%3Eat%20System.Net.FixedSizeReader.ReadPacket(Byte%5B%5D%20buffer%2C%20Int32%20offset%2C%20Int32%20count)%3CBR%20%2F%3Eat%20System.Net.Security.SslState.StartReceiveBlob(Byte%5B%5D%20buffer%2C%20AsyncProtocolRequest%20asyncRequest)%3CBR%20%2F%3Eat%20System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken%20message%2C%20AsyncProtocolRequest%20asyncRequest)%3CBR%20%2F%3Eat%20System.Net.Security.SslState.ForceAuthentication(Boolean%20receiveFirst%2C%20Byte%5B%5D%20buffer%2C%20AsyncProtocolRequest%20asyncRequest)%3CBR%20%2F%3Eat%20System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult%20lazyResult)%3CBR%20%2F%3Eat%20System.Threading.ExecutionContext.RunInternal(ExecutionContext%20executionContext%2C%20ContextCallback%20callback%2C%20Object%20state%2C%20Boolean%20preserveSyncCtx)%3CBR%20%2F%3Eat%20System.Threading.ExecutionContext.Run(ExecutionContext%20executionContext%2C%20ContextCallback%20callback%2C%20Object%20state%2C%20Boolean%20preserveSyncCtx)%3CBR%20%2F%3Eat%20System.Threading.ExecutionContext.Run(ExecutionContext%20executionContext%2C%20ContextCallback%20callback%2C%20Object%20state)%3CBR%20%2F%3Eat%20System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult%20result)%3CBR%20%2F%3Eat%20System.Net.TlsStream.Write(Byte%5B%5D%20buffer%2C%20Int32%20offset%2C%20Int32%20size)%3CBR%20%2F%3Eat%20System.Net.PooledStream.Write(Byte%5B%5D%20buffer%2C%20Int32%20offset%2C%20Int32%20size)%3CBR%20%2F%3Eat%20System.Net.ConnectStream.WriteHeaders(Boolean%20async)%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.DownloaderHelper.DownloadMSI(String%20downloadLocation%2C%20String%20msiFileName%2C%20String%20errorMessagePreamble%2C%20IAgentUpdateState%20agentUpdateState%2C%20ILogger%20logger)%20in%20C%3A%5Cagent%5C_work%5C35%5Cs%5Csrc%5CRDAgent%5Csrc%5CService%5CAgentUpdateClasses%5CAgentUpdateCommon.cs%3Aline%20160%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.AgentDownloadHdlrImpl.DownloadAgentMSI(String%20downloadLocation)%20in%20C%3A%5Cagent%5C_work%5C35%5Cs%5Csrc%5CRDAgent%5Csrc%5CService%5CAgentUpdateClasses%5CAgentDownloadHdlrImpl.cs%3Aline%2042%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.RDAgentUpdateHandler.UpdateAgentAsync(JObject%20json)%20in%20C%3A%5Cagent%5C_work%5C35%5Cs%5Csrc%5CRDAgent%5Csrc%5CService%5CAgentUpdateClasses%5CRDAgentUpdateHandler.cs%3Aline%20232%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAgentVersion%20%3A%201.0.1006.2000%3CBR%20%2F%3EOsVersion%20%3A%2010.0.18362%3CBR%20%2F%3ESxSStackVersion%20%3A%20rdp-sxs190614002%3CBR%20%2F%3EStatus%20%3A%20UpgradeFailed%3CBR%20%2F%3EUpdateState%20%3A%20Failed%3CBR%20%2F%3ELastUpdateTime%20%3A%2014.08.2019%2009%3A29%3A58%3CBR%20%2F%3EUpdateErrorMessage%20%3A%20RDAgent%20failed%20to%20download%20MSI%3A%20Unable%20to%20read%20data%20from%20the%20transport%20connection%3A%20An%20existing%3CBR%20%2F%3Econnection%20was%20forcibly%20closed%20by%20the%20remote%20host.%20%3A%200x80131620%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAnyone%20else%20is%20having%20this%20issue%20or%20does%20know%20how%20to%20fix%20it%3F%20Manual%20download%20is%20no%20problem%20at%20all.%3CBR%20%2F%3EIs%20this%20a%20known%20bug%20in%201.0.1006.2000%3F%20Never%20had%20this%20before.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1083865%22%20slang%3D%22en-US%22%3ERe%3A%20Upgrade%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083865%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380065%22%20target%3D%22_blank%22%3E%40A_priori_superior%3C%2FA%3E%26nbsp%3B%3A%20Apologies%20for%20the%20delay.%20Previously%2C%20we%20had%20seen%20some%20errors%20with%20updating.%20However%2C%20you%20should%20no%20longer%20see%20any%20issues%20with%20the%20agent%20today.%20Please%20let%20us%20know%20if%20you%20hit%20any%20more%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional 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

1 Reply
Highlighted

@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.