使用 Azure App Services
突然开始在所有 Deployment Slots
中一致发生。
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."
找不到有关此问题的任何参考资料,不确定是否还有其他人遇到此问题。已经尝试了这篇文章 https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/ 中所有建议的解决方案,但没有解决我的问题。
在 Azure 全局配置范围内没有做任何事情,当然不可能是由任何单个项目引起的问题,因为这发生在使用 Azure App Service
部署到 Deployment Slots
的所有项目中。
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": []
}
答案 0 :(得分:1)
我没有答案(但 Stack Overflow 不会让我发表评论 :( ),但有一个佐证 - 我们最近也开始在多个应用程序服务中看到这一点,这些应用程序服务以前非常高兴地自动交换.
我已就此问题与 Azure 支持人员联系,但他们尚未提供令人满意的答复。
答案 1 :(得分:0)
这已得到修复。解决方案只是关闭Auto-Swap
,然后再打开。
我关闭了 Auto-Swap
,因为它在部署过程中失败并造成更多不便。
在提交问题票证时,Azure Ticketing System
需要提交有关来自受影响的 Auto-Swap
的失败 APP Service
部署的日志数据,以便分析此问题。
我重新打开 Auto-Swap
以使 Auto-Swap deployment
、Auto-Swap
工作并且部署没有问题。我测试了多次,都成功了。
Azure Support Team
没有就具体原因做出回应。但随着问题的投票,这可能不是我订阅的独立事件。
我们团队认为可能是 Azure
更新 Auto-Swap
的一个可能原因,但这些更改未能反映在某些客户的服务器上。
此外,要打开和关闭 Auto-Swap
,只需转到 App Service
=> Deployment Center
=> Slot
=> Configuration
希望这也能解决其他受影响的订阅和应用服务的问题。