[英]Azure Slot Swap Job Processor failed: Cannot swap slots for site because the worker process in slot aborted the warmup request
突然開始在所有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 全局配置 scope 上沒有做任何事情,當然不可能是由任何單個項目引起的問題,因為這發生在使用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": []
}
可能有更簡單的解決方案 - 暫存槽沒有部署任何 function,在這種情況下 Azure 會拋出相同的錯誤消息。 (只是花了幾個小時才弄明白,希望它能節省別人的時間。:D)
我沒有答案(但 Stack Overflow 不會讓我發表評論:( ),但有一個確證 - 我們最近也開始看到這一點,跨越多個以前非常愉快地自動交換的應用程序服務。
我一直在聯系 Azure Support 關於這個問題,但他們還沒有提供令人滿意的答復。
這已得到修復。 解決方案是簡單地關閉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
,只需 go 到App Service
=> Deployment Center
=> Slot
=> Configuration
希望這也能解決其他受影響的訂閱和應用服務的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.