Azure Functions : Querying endpoint throws error 500. 37 - ANCM 无法在启动时间限制内启动

标签 azure azure-functions azure-web-app-service azure-function-app

我对 Azure Functions 部署了一些更改,但我的端点似乎无法访问。有一段时间,我不断收到“函数主机未运行”错误。最近,错误变成了“HTTP 错误 500.37 - ANCM 无法在启动时间限制内启动”。我该如何解决这个问题?我重新启动了函数应用程序,但没有解决任何问题。

编辑:我查看了我的事件日志。我看到很多这样的错误:

Operation name 
SlotSwap 
Time stamp 
Fri Aug 14 2020 13:36:40 GMT-0500
(Central Daylight Time) 
Event initiated by 
SlotSwapJobProcessor

"Failed swapping site. Error: Cannot swap slots for site '...' because the warmup requests to application in '...' slot have timed out. Please check the application logs to determine what causes the timeouts."

还有这个:

Operation name
List Web Apps Functions Host Keys
Time stamp
Fri Aug 14 2020 17:27:49 GMT-0500 (Central Daylight Time)
Event initiated by
[email]
Error code
BadRequest
Message
Encountered an error (InternalServerError) from host runtime.

直到今天一切正常,我没有进行任何更改来导致此问题。

最佳答案

我今天也遇到了类似的问题。 (我通过搜索List Web Apps Functions Host Keys发现了这个问题)。重新启动函数应用程序似乎可以解决问题,但只能持续几分钟。那么函数应用程序仍然会产生无法调试函数主机未运行错误。我还在 Azure 门户的概述下看到了 OutOfMemoryException 错误消息。

经过一番挖掘,我意识到我已将 FUNCTIONS_EXTENSION_VERSION 配置为 beta(在 Azure 门户中的“设置”→“配置”下)。我按照 Azure Functions runtime versions overview 中的建议将其更改为 ~3 。更改函数应用运行时版本后,它再次开始工作。

关于Azure Functions : Querying endpoint throws error 500. 37 - ANCM 无法在启动时间限制内启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63420731/

相关文章:

azure - 从 Bicep 中的应用程序服务引用其他部署槽

Azure:BadRequest - 待处理的托管证书失败(域或证书请求触发了有风险的域检查)

azure - 通过 Microsoft Azure 中的函数检查执行器端点

azure - 是否可以将 Azure VM 从托管磁盘转换为非托管磁盘?

azure - Windows Azure WCF 安全

c# - 如何查找System.Private.CoreLib.ni.dll中发生 'System.Runtime.InteropServices.SEHException'的原因?

azure - 使用 IQueryable<T> 时表属性绑定(bind)不起作用

c# - 如何获取通过Azure函数事件中心触发器接收到的事件的messageId或eventId?

Azure 应用服务环境 - New-AzureRmWebApp 损坏?

c# - 未使用“Autofac.Core.Activators.Reflection.DefaultConstructorFinder”找到任何构造函数