Zip 部署失败,"Unhandled exception. System.IO.IOException: Disk quota exceeded"



使用zip部署到Azure部署Azure功能时出错。我在VSTS中看到的错误不是很详细,但它表明zip部署失败。

##[error]Failed to deploy web package to App Service.
##[error]To debug further please check Kudu stack trace URL : https://my-path/**/trace
##[error]Error: Error: Failed to deploy web package to App Service. Internal Server Error (CODE: 500)   

通过查看默认的docker错误转储,我看到了更多详细信息。显然存在磁盘配额问题,但我检查了我的存储帐户,发现它只使用了5000 GB中的3GB。

部署日志中的详细信息如下:

Starting OpenBSD Secure Shell server: sshd.
Unhandled exception. System.IO.IOException: Disk quota exceeded
at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry(Byte* entryBufferPtr, Int32 bufferLength)
at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
at System.IO.FileSystemWatcher.RunningInstance..ctor(FileSystemWatcher watcher, SafeFileHandle inotifyHandle, String directoryPath, Boolean includeSubdirectories, NotifyFilters notifyFilters, CancellationToken cancellationToken)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
at Microsoft.Extensions.Primitives.ChangeToken.ChangeTokenRegistration`1..ctor(Func`1 changeTokenProducer, Action`1 changeTokenConsumer, TState state)
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(FileConfigurationSource source)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Microsoft.Azure.WebJobs.Script.WebHost.Program.BuildWebHost(String[] args) in /src/azure-functions-host/src/WebJobs.Script.WebHost/Program.cs:line 35
at Microsoft.Azure.WebJobs.Script.WebHost.Program.Main(String[] args) in /src/azure-functions-host/src/WebJobs.Script.WebHost/Program.cs:line 25
/azure-functions-host/start.sh: line 28:    18 Aborted                 (core dumped) /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost

在部署AZ功能时,我们要遵守的磁盘配额是多少?我在应用服务计划或资源组中都看不到任何配额。正如我上面提到的,函数引用的存储帐户远远没有容量。

作为参考,我的应用程序的大小只有13MB。

在Azure门户中,我看到错误消息";System.Private.CoreLib:超过了磁盘配额"在概览窗格中的红色横幅中。

这个版本已经运行了好几个月了。这个问题在过去几天开始出现。我相信我们以前也看到过这种情况,但现在几乎每次都会发生。如果幸运的话,我们可能会有十分之一的部署需要完成。

该功能应用程序是高级(EP1(层中的常规Linux功能应用程序。

这似乎是Linux上的一个问题。将功能应用程序转换为Windows解决了此问题。

相关内容

最新更新