在Azure DevOps中执行Deploy Azure App Service时,我得到以下提示。
2019-02-27T18:51:57.5018577Z ##[section]Starting: Deploy Azure App Service
2019-02-27T18:51:57.5028370Z ==============================================================================
2019-02-27T18:51:57.5028503Z Task : Azure App Service Deploy
2019-02-27T18:51:57.5029162Z Description : Update Azure App Services on Windows, Web App on Linux with built-in images or Docker containers, ASP.NET, .NET Core, PHP, Python or Node.js based Web applications, Function Apps, Mobile Apps, API applications, Web Jobs using Web Deploy / Kudu REST APIs
2019-02-27T18:51:57.5029281Z Version : 3.4.21
2019-02-27T18:51:57.5029357Z Author : Microsoft Corporation
2019-02-27T18:51:57.5029433Z Help : [More information](https://aka.ms/azurermwebdeployreadme)
2019-02-27T18:51:57.5029534Z ==============================================================================
2019-02-27T18:51:58.2314716Z Got connection details for Azure App Service:'myproject'
2019-02-27T18:52:01.5712562Z Updating App Service Application settings. Data: {"MSDEPLOY_RENAME_LOCKED_FILES":"1"}
2019-02-27T18:52:20.6292666Z Updated App Service Application settings and Kudu Application settings.
2019-02-27T18:52:20.6292953Z Rename locked files enabled for App Service.
2019-02-27T18:52:20.6811253Z ##[error]RangeError: Invalid typed array length
2019-02-27T18:52:23.2141473Z Successfully updated deployment History at https://myproject.scm.azurewebsites.net/api/deployments/31551293542097
2019-02-27T18:52:23.2230607Z ##[section]Finishing: Deploy Azure App Service
我不知道什么脚本/配置控制着这个,所以我不知道这个错误指的是什么数组。
我的构建管道成功完成。
答案 0 :(得分:0)
好吧,很酷的事情是Azure App Deploy脚本是open source。我不确定范围误差从何而来;但是如果我不得不猜测,我会说这是在脚本根据您的部署选项执行某些文件IO操作时发生的(下图)。
要查看的一件事是您的Web应用程序上的文件,看看是否有任何东西看起来像可疑的东西,就像旧文件没有被更新过。由于您的部署成功并且您的应用运行良好,因此可能与内容相关。