簡體   English   中英

Azure 應用程序內部問題的 Webjob 即使在禁用時也是如此

[英]Azure Webjob for Application insides issues even when disabled

我最近發現每 10 分鍾創建一次錯誤日志,內容如下。 我無法弄清楚為什么以及它們來自哪里。 AppInisghts 已為 webapp 停用...

New Log File(2022/04/17/17/918a59-5808.applicationLog.csv) has been created
date,level,applicationName,instanceId,eventTickCount,eventId,pid,tid,message,activityId
2022-04-17T17:08:35,Information,boxplanner,918a59,637858121159061901,0,5808,56,Automatically redeploying web job.,
2022-04-17T17:08:36,Information,boxplanner,918a59,637858121163988746,0,5808,56,Checking NuGet for latest agent.,
2022-04-17T17:08:36,Verbose,boxplanner,918a59,637858121167270466,0,5808,-1,"System.InvalidOperationException: An error occurred while loading packages from 'https://packages.nuget.org/api/v2': The underlying connection was closed: An unexpected error occurred on a send. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> 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.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   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.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.TlsStream.CallProcessAuthentication(Object state)
   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 System.Net.HttpWebRequest.GetResponse()
   at NuGet.RequestHelper.GetResponse()
   at NuGet.HttpClient.GetResponse()
   at NuGet.RedirectedHttpClient.GetResponseUri(HttpClient client)
   at NuGet.RedirectedHttpClient.EnsureClient()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at NuGet.MemoryCache.GetOrAdd[T](Object cacheKey, Func`1 factory, TimeSpan expiration, Boolean absoluteExpiration)
   at NuGet.RedirectedHttpClient.get_CachedClient()
   at NuGet.RedirectedHttpClient.get_Uri()
   at NuGet.DataServicePackageRepository.get_Context()
   at NuGet.DataServicePackageRepository.FindPackagesById(String packageId)
   --- End of inner exception stack trace ---
   at NuGet.DataServicePackageRepository.FindPackagesById(String packageId)
   at NuGet.PackageRepositoryExtensions.FindPackagesById(IPackageRepository repository, String packageId)
   at Microsoft.ApplicationInsights.ExtensionManager.Models.AgentModel.GetLatestAgentFromNuGet()
   at Microsoft.ApplicationInsights.ExtensionManager.Models.AgentModel.get_LatestNugetVersion()
   at Microsoft.ApplicationInsights.ExtensionManager.Models.AgentModel.DeployWebJob(String trigger, String nugetVersion)",

web 應用程序的 AppInsights 已停用。

Web App停用Application Insights后獲取遙測信息的可能性。

  • 也許在您的應用程序中,您可能會在Web APP硬編碼Application Insights 的配置
  • 如果您在應用程序中使用自定義遙測,請確保它必須包含 Application Insights 配置。

為避免從 web 應用獲取遙測信息,您可以嘗試刪除硬編碼的 Application Insights 配置

請參閱此處以多種方式刪除應用程序洞察

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM