我有一个正在尝试通过azure的DevOps管道部署的应用程序。我之前已经成功地部署了应用程序,并且这个应用程序的第一个版本部署得很好。然而,所有后续的构建在部署步骤中都失败了。他们似乎特别在“部署Azure应用程序服务”这一步失败了,生成了一个ERROR_NOT_ENOUGH_DISK_SPACE错误代码。
部署终端输出显示以下错误:
Got connection details for Azure App Service:'MMOMarketTracker'
[command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\r1\a\_MMMarketTracker\build\build.zip' -dest:contentPath='MMOMarketTracker',ComputerName='https://mmomarkettracker.scm.azurewebsites.net:443/msdeploy.axd?site=MMOMarketTracker',UserName='$MMOMarketTracker',Password='***',AuthType='Basic' -enableRule:AppOffline -enableRule:DoNotDeleteRule -userAgent:VSTS_ba2ca09f-578d-4893-99ac-412c3f26fde5_release_1_9_9_1
2018-11-22T21:02:35.2302461Z Info: Using ID 'e7a243b1-97df-4ec2-b8d9-c679c2e35512' for connections to the remote server.
Info: Adding directory (MMOMarketTracker\s\.git\objects\15).
Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
at ChildProcess.<anonymous> (D:\a\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\3.4.16\node_modules\vsts-task-lib\toolrunner.js:568:30)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
[command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\r1\a\_MMMarketTracker\build\build.zip' -dest:contentPath='MMOMarketTracker',ComputerName='https://mmomarkettracker.scm.azurewebsites.net:443/msdeploy.axd?site=MMOMarketTracker',UserName='$MMOMarketTracker',Password='***',AuthType='Basic' -enableRule:AppOffline -enableRule:DoNotDeleteRule -userAgent:VSTS_ba2ca09f-578d-4893-99ac-412c3f26fde5_release_1_9_9_1
Info: Using ID '201db2e8-ee9f-4e39-9a29-2187cb7056bd' for connections to the remote server.
Info: Adding directory (MMOMarketTracker\s\.git\objects\15).
##[error]Failed to deploy web package to App Service.
##[error]Error Code: ERROR_NOT_ENOUGH_DISK_SPACE
More Information: Web Deploy detected insufficient space on disk. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_NOT_ENOUGH_DISK_SPACE.
Error: The error code was 0x80070070.
Error: There is not enough space on the disk.
at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
at Microsoft.Web.Deployment.DirectoryEx.CreateDirectory(String path)
at Microsoft.Web.Deployment.DirPathProviderBase.CreateDirectory(String fullPath, DeploymentObject source)
at Microsoft.Web.Deployment.DirPathProviderBase.Add(DeploymentObject source, Boolean whatIf)
Error count: 1.
##[error]Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295第一个错误似乎是由远程服务器添加git对象失败引起的。此错误通常会在每次部署时出现2-3次,并会导致显示“正在重试部署包”消息。
第二个错误将发生一次,并将结束部署。我已经访问了error推荐的链接,但是没有这种类型的错误的帮助部分。我下载了构建文件,它只有49.3MB大小,而Microsoft服务器有10 MB的大小用于部署。我在托管生成代理上运行,而不是私有代理。
我在网上发现的其他类似的问题大多没有得到回答。一些后来进行了更新,说部署开始工作似乎没有任何原因。
任何帮助都将不胜感激。
发布于 2018-11-23 06:22:58
对于其他遇到同样问题的人来说,我基本上有太多的其他应用程序占用了我的azure账户的空间。Brendan Green linked的文章解释了这一点。(https://blogs.msdn.microsoft.com/puneetgupta/2017/06/06/azure-app-service-what-is-taking-my-disk-space-for-my-azure-web-app/)
通过转到你的任何azure应用程序的配额页面(在azure门户中),你可以看到你还剩下多少空间。
发布于 2020-03-12 17:56:55
当您的定价层中没有试用期时,就会发生这种情况。因此,一个解决方案是升级您的定价层,以获得更多的分段时段。
转移插槽用于测试和部署,然后再将其交换到生产环境中,并且它与您的文件系统磁盘空间无关。
发布于 2021-02-15 04:56:36
您也许能够通过触发生成代理清理进程来回收磁盘空间。

https://stackoverflow.com/questions/53437843
复制相似问题