我对 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/