Azure YAML部署失败,并显示“错误:无法将Web包部署到App Service。冲突(CODE:409)”

比伯蒂

希望有人也看到了这一点。我们上一次成功的构建是在2019年12月6日。新的部署尝试在部署步骤失败(在Build和Release管道中存在相同的问题)。

错误报告如下:

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软件包

比伯蒂

因此,经过与MS支持的大量讨论之后,这是票证

可以看出,真正的问题是我的应用服务计划已达到极限。在开发过程中,我们使用了免费服务,并且存在限制。我们已经达到了这个极限,这条信息确实是一条红色的鲱鱼,根本不是真正的问题。

无论如何,我升级到了付费订阅的第一层,现在一切正常。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

错误:部署失败:从Azure DevOps Services部署到App Service时,ERROR_DESTINATION_NOT_REACHABLE

来自分类Dev

将Springboot部署到Azure App Service

来自分类Dev

将.Net Core 3.0 Web API部署到Azure App Service时出错

来自分类Dev

通过Azure Devops将.Net Core 3.1 Web App部署到Azure Linux Web Service时出错

来自分类Dev

将Azure Pipeline部署到App Service失败:“资源不存在。资源应在部署之前存在”。但是App Service正在运行

来自分类Dev

“ /”应用程序中的服务器错误。无法找到该资源。(404)将WCF服务部署到Azure App Service时

来自分类Dev

从Azure管道将Spring Boot Gradle应用程序部署到Azure App Service

来自分类Dev

面向完整框架的ASP.NET Core 1.1无法部署到Azure App Service

来自分类Dev

尝试查看数据时,Azure Android CloudAppendBlob导致错误409(冲突)

来自分类Dev

将MVC应用程序部署到Azure App Service时的POSTS问题

来自分类Dev

将ASP.NET Core部署到Azure Web App服务错误

来自分类Dev

从 VS Code 将 NodeJS 应用程序部署到 Azure

来自分类Dev

尝试将 clickhouse 堆栈部署到 docker swarm 并收到错误:Service Builder 无法构建:复制失败

来自分类Dev

Azure Powershell脚本交换Azure App Service(网站)部署插槽

来自分类Dev

如何将基于浏览器历史记录的React应用程序部署到Azure App Service?

来自分类Dev

部署多个Azure App Service计划会导致错误“具有指定名称的Web空间已存在”

来自分类Dev

将角度应用程序部署到Azure Web应用程序-但显示默认的Azure页面

来自分类Dev

从GitHub错误部署到Azure

来自分类Dev

发布到Azure Web应用程序子应用程序失败并出现409错误

来自分类Dev

无法在免费订阅计划中创建 azure 功能。它显示部署失败错误

来自分类Dev

部署到Azure时出现错误“对下层服务的请求失败”

来自分类Dev

将Rabbitmq部署到Azure

来自分类Dev

将Web应用发布到Azure网站上的暂存部署槽因webjob失败

来自分类Dev

部署到Node App Azure App Service tsc未被识别为命令

来自分类Dev

辅助角色-EventProcessorHost CheckPoint似乎导致409冲突Azure存储

来自分类Dev

Azure Web App(MVC 6)连续部署失败

来自分类Dev

在Azure Service Fabric部署期间测试失败

来自分类Dev

在Azure Service Fabric部署期间测试失败

来自分类Dev

部署到Azure App Service后,Application Insights停止工作

Related 相关文章

  1. 1

    错误:部署失败:从Azure DevOps Services部署到App Service时,ERROR_DESTINATION_NOT_REACHABLE

  2. 2

    将Springboot部署到Azure App Service

  3. 3

    将.Net Core 3.0 Web API部署到Azure App Service时出错

  4. 4

    通过Azure Devops将.Net Core 3.1 Web App部署到Azure Linux Web Service时出错

  5. 5

    将Azure Pipeline部署到App Service失败:“资源不存在。资源应在部署之前存在”。但是App Service正在运行

  6. 6

    “ /”应用程序中的服务器错误。无法找到该资源。(404)将WCF服务部署到Azure App Service时

  7. 7

    从Azure管道将Spring Boot Gradle应用程序部署到Azure App Service

  8. 8

    面向完整框架的ASP.NET Core 1.1无法部署到Azure App Service

  9. 9

    尝试查看数据时,Azure Android CloudAppendBlob导致错误409(冲突)

  10. 10

    将MVC应用程序部署到Azure App Service时的POSTS问题

  11. 11

    将ASP.NET Core部署到Azure Web App服务错误

  12. 12

    从 VS Code 将 NodeJS 应用程序部署到 Azure

  13. 13

    尝试将 clickhouse 堆栈部署到 docker swarm 并收到错误:Service Builder 无法构建:复制失败

  14. 14

    Azure Powershell脚本交换Azure App Service(网站)部署插槽

  15. 15

    如何将基于浏览器历史记录的React应用程序部署到Azure App Service?

  16. 16

    部署多个Azure App Service计划会导致错误“具有指定名称的Web空间已存在”

  17. 17

    将角度应用程序部署到Azure Web应用程序-但显示默认的Azure页面

  18. 18

    从GitHub错误部署到Azure

  19. 19

    发布到Azure Web应用程序子应用程序失败并出现409错误

  20. 20

    无法在免费订阅计划中创建 azure 功能。它显示部署失败错误

  21. 21

    部署到Azure时出现错误“对下层服务的请求失败”

  22. 22

    将Rabbitmq部署到Azure

  23. 23

    将Web应用发布到Azure网站上的暂存部署槽因webjob失败

  24. 24

    部署到Node App Azure App Service tsc未被识别为命令

  25. 25

    辅助角色-EventProcessorHost CheckPoint似乎导致409冲突Azure存储

  26. 26

    Azure Web App(MVC 6)连续部署失败

  27. 27

    在Azure Service Fabric部署期间测试失败

  28. 28

    在Azure Service Fabric部署期间测试失败

  29. 29

    部署到Azure App Service后,Application Insights停止工作

热门标签

归档