RangeError:Azure DevOps中部署Azure应用服务期间的类型化数组长度错误无效

问题描述 投票:0回答:1

在Azure DevOps中执行部署Azure应用服务时,我得到以下内容。

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

我不知道什么脚本/配置控制这个,所以我不知道这个错误指的是什么数组。

我的构建管道成功完成。

azure-devops azure-web-sites
1个回答
0
投票

好吧,很酷的是Azure App Deploy脚本是open source。我不确定Range Error从哪里冒出来;但是,如果我不得不猜测,我会说当脚本根据您的部署选项执行某些文件IO操作时会发生这种情况(下图)。

要注意的一件事是你的网络应用程序上的文件,看看是否有任何东西看起来像一个尚未更新的旧文件。由于您的部署成功并且您的应用程序运行正常,因此可能与内容相关。

Azure App Deployment Options

© www.soinside.com 2019 - 2024. All rights reserved.