![](/img/trans.png)
[英]Failed to deploy web package to App Service "there is not enough space on the disk"
[英]Azure YAML Deployment failing with "Error: Failed to deploy web package to App Service. Conflict (CODE: 409)"
希望有人也看到了这一点。 我们最后一次成功的构建是在 2019 年 12 月 6 日。新的部署尝试在部署步骤中失败了(构建和发布管道中的相同问题)。
报错如下:
Got service connection details for Azure App Service:'OUR SITE'
Package deployment using ZIP Deploy initiated.
##[error]Failed to deploy web package to App Service.
##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
##[warning]Error: Failed to update deployment history. Error: Bad Request (CODE: 400)
App Service Application URL: OUR SITE
这是我们的部署YAML
,很抱歉这几天来了:(
# Node.js Express Web App to Linux on Azure
# Build a Node.js Express app and deploy it to Azure as a Linux web app.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
variables:
# Azure Resource Manager connection created during pipeline creation
azureSubscription: '[OUR SUB ID]'
# Web app name
webAppName: 'website-to-deploy'
# Environment name
environmentName: 'web-to-deploy'
# Agent VM image name
vmImageName: 'ubuntu-latest'
stages:
- stage: Build
displayName: Build stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build --if-present
npm run test --if-present
displayName: 'npm install, build and test'
- task: ArchiveFiles@2
displayName: 'Archive files'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
archiveType: zip
archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
replaceExistingArchive: true
- upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
artifact: drop
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'OUR SUBSCRIPTION'
appType: 'webAppLinux'
WebAppName: 'site-to-deploy'
packageForLinux: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
RuntimeStack: 'NODE|12-lts'
StartupCommand: 'npm start'
AppSettings: 'WE DO HAVE SOME SETTINGS'
请注意:我尝试将WEBSITE_WEBDEPLOY_USE_SCM = true
添加到配置中,但这没有帮助。
上述构建YAML
没有任何更改,它已成功运行并输入发布管道
谢谢你的帮助。
更新:使用 MS Dev-Ops 提出的票您可以在变量部分添加system.debug: true
以获得更详细的日志记录。
这让我看到AppService
返回了409
代码,因为它认为已经在进行部署。 如果并且当我得到解决方案时,我将编辑这篇文章。
这是调试信息:
##[debug]Encountered a retriable status code: 409. Message: 'Conflict'.
##[debug][POST]https://$web040-glndev-com:***@web040-glndev-com.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
##[debug]Could not parse response: {}
##[debug]Response: undefined
##[debug]Encountered a retriable status code: 409. Message: 'Conflict'.
##[debug][POST]https://$web040-glndev-com:***@web040-glndev-com.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
##[debug]Could not parse response: {}
##[debug]Response: undefined
##[debug]ZIP Deploy response: {"statusCode":409,"statusMessage":"Conflict","headers":{"transfer-encoding":"chunked","content-type":"text/plain; charset=utf-8","server":"Kestrel","date":"Wed, 15 Jan 2020 17:40:47 GMT","connection":"close"},"body":"There is a deployment currently in progress. Please try again when it completes."}
##[error]Failed to deploy web package to App Service.
##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to App Service.
##[debug]task result: Failed
##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
##[debug]Processed: ##vso[task.issue type=error;]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
##[debug]Processed: ##vso[task.complete result=Failed;]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
##[debug][POST]https://management.azure.com/subscriptions/7a7aad03-79b0-4118-8dd1-8ebd63716c6a/resourceGroups/appsvc_linux_centralus/providers/Microsoft.Web/sites/web040-glndev-com/config/appsettings/list?api-version=2016-08-01
##[debug]Correlation ID from ARM api call response : e4ebaf0f-7ccf-4b7b-ba4d-b70b8fd13bea
##[debug]Application Insights is not configured for the App Service. Skipping adding release annotation.
票在这里: 409 无法部署 web package
重新启动应用服务解决了我的问题。
我的应用服务计划已经是付费订阅,容量没有问题。 我刚刚重新启动了应用服务,一切正常。
所以经过与 MS 支持的大量讨论后, 这是票
事实证明,真正的问题是我的应用服务计划已满负荷运转。 在开发过程中,我们使用的是免费服务,但存在限制。 我们已经达到了这个限制,这个消息真的是一个红鲱鱼,根本不是真正的问题。
无论如何,我升级到第一层付费订阅,现在一切正常。
现在(2020 年 7 月/8 月),问题实际上是 Microsoft 更新了支持某些区域中的应用程序服务的 VM,如此 github 问题所述: https : //github.com/projectkudu/kudu/issues/3042
解决方法(在此回复中列出: https : //github.com/projectkudu/kudu/issues/3042#issuecomment-665997217 )似乎有所帮助。 任何一个
我有同样的错误,问题在于 webapp 的大小。 我尝试将超过 1 GB 的 web 应用程序部署到具有 1 GB 应用服务计划层的 Azure web 应用程序。
我犯的一个错误是从另一个功能应用程序复制了所有配置,包括 WEBSITE_ENABLE_SYNC_UPDATE_SITE 和 WEBSITE_RUN_FROM_PACKAGE。 删除它们并重新部署。
由于日志文件损坏(以及在 kudu/部署过程崩溃之后),我也遇到了这个问题。 如果您有一个 linux 实例,您可以将选项 AppService log 关闭(重新启动),然后再次打开它
从免费层切换到付费生产计划解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.