突然开始在所有使用Deployment Slots
的Azure App Services
上一致地发生。
Error Message: "Failed swapping site. Error: Cannot swap slots for site because the worker process in slot aborted the warmup request. This may happen if site has IP Restriction or URL rewrite rules that block HTTP requests."
找不到关于此问题的任何参考资料,不确定是否还有其他人遇到此问题。我尝试了这篇文章中所有建议的解决方案,但没有解决我的问题。
在Azure全局配置范围内没有做任何事情,当然也不可能是任何单个项目引起的问题,因为这是在使用Deployment Slots
部署到Azure App Service
的所有项目中发生的。Error Resonse:
{
"caller": "SlotSwapJobProcessor",
"channels": "Operation",
"claims": {
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/spn": "SlotSwapJobProcessor"
},
"correlationId": "xxx",
"description": "Failed swapping site. Error: Cannot swap slots for site 'xxx' because the worker process in 'staging' slot aborted the warmup request. This may happen if site has IP Restriction or URL rewrite rules that block HTTP requests.",
"eventDataId": "xxx",
"eventName": {
"value": "SwapWebSiteTrace",
"localizedValue": "SwapWebSiteTrace"
},
"category": {
"value": "Administrative",
"localizedValue": "Administrative"
},
"eventTimestamp": "2021-04-01T19:44:55.0130397Z",
"id": "/subscriptions/xxx/resourcegroups/xxx/providers/microsoft.web/sites/xxx/slots/staging/events/xxx/ticks/xxx",
"level": "Error",
"operationId": "xxx",
"operationName": {
"value": "Microsoft.Web/sites/slots/SlotSwap/action",
"localizedValue": "Microsoft.Web/sites/slots/SlotSwap/action"
},
"resourceGroupName": "defaul",
"resourceProviderName": {
"value": "Microsoft.Web",
"localizedValue": "Azure Web Sites"
},
"resourceType": {
"value": "microsoft.web/sites/slots",
"localizedValue": "microsoft.web/sites/slots"
},
"resourceId": "/subscriptions/xxx/resourcegroups/xxx/providers/microsoft.web/sites/xxx/slots/staging",
"status": {
"value": "Failed",
"localizedValue": "Failed"
},
"subStatus": {
"value": "",
"localizedValue": ""
},
"submissionTimestamp": "2021-04-01T19:45:04.7469589Z",
"subscriptionId": "xxx",
"tenantId": "",
"properties": {
"Message": "Failed swapping site. Error: Cannot swap slots for site 'xxx' because the worker process in 'staging' slot aborted the warmup request. This may happen if site has IP Restriction or URL rewrite rules that block HTTP requests."
},
"relatedEvents": []
}
4条答案
按热度按时间yrdbyhpb1#
已修复此问题。解决方案是简单地关闭
Auto-Swap
,然后再打开。我关闭了
Auto-Swap
,因为它失败了,在部署过程中造成了更多的不便。在提交问题票证时,
Azure Ticketing System
需要从受影响的APP Service
提交有关失败的Auto-Swap
部署的日志记录数据,以便分析此问题。我回到
Auto-Swap
上制作了一个Auto-Swap deployment
,Auto-Swap
工作正常,部署没有问题。我试了很多次,都成功了。Azure Support Team
没有回应到底是什么原因导致了这一点。但随着这个问题的上升,这可能不是一个独立的事件,我的订阅单独。我们的团队认为一个可能的原因可能是
Azure
更新了Auto-Swap
,但这些更改未能反映在某些客户端的服务器上。此外,要打开和关闭
Auto-Swap
,只需转到App Service
=>Deployment Center
=>Slot
=>Configuration
希望这也能解决其他受影响的订阅和应用服务的问题。
ioekq8ef2#
Microsoft发布了一个新的应用程序设置,您应该在生产插槽(或交换插槽,如果您在两个子插槽之间交换)上设置该设置,称为WEBSITE_OVERRIDE_STICKY_DIAGNOSTICS_SETTINGS,并将其设置为0(零)。也就是说,
这个问题显然是在您的存储帐户有网络限制时引起的。阅读更多here .
zzwlnbp83#
可能有更简单的解决方案-暂存插槽没有部署任何函数,在这种情况下,Azure抛出相同的错误消息。(只是花了几个小时来弄清楚,希望它能保存别人的时间。(D)
lyr7nygr4#
我没有答案(但Stack Overflow不让我评论:()),但一个佐证-我们最近也开始看到这一点,在多个应用服务中,以前自动交换非常愉快。
我一直在与Azure支持联系,但他们尚未提供令人满意的答复。