繁体   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