Microsoft.Azure.Diagnostics.PaaSDiagnostics 1.4.1.1 已退出,退出代码为:-108

Microsoft.Azure.Diagnostics.PaaSDiagnostics 1.4.1.1 has exited with Exit code: -108

用了运行Azure Diagnostics 2.5一段时间后,没有任何问题,就开始出现故障。

Here 是我的 wadcfgx。

Here 是来自应用程序唯一实例的 CommandExecution 日志。

Here 是我的 DiagnosticsPluginLauncher 日志。

Here 是 DiagnosticsPlugin 日志。

这里的问题在哪里? DiagnosticsPlugin 日志结尾为:

DiagnosticsPlugin.exe Error: 0 : [6/3/2015 12:02:41 PM] System.Xml.Schema.XmlSchemaValidationException: The element 'CounterSets' has incomplete content. List of possible elements expected: 'CounterSet'.
   at Microsoft.Azure.Plugins.Plugin.BaseMonitoringConfig.Validate(String configFile, String schemaFile)
   at Microsoft.Azure.Plugins.Plugin.WadParser.Translate(String baseMaResourcePath, Int32 actualDiskQuota, String& fullConfigFilePath)
DiagnosticsPlugin.exe Error: 0 : [6/3/2015 12:02:41 PM] Failed to convert WAD1.1 config to Monagent config format
DiagnosticsPlugin.exe Information: 0 : [6/3/2015 12:02:41 PM] DiagnosticPlugin.exe exit with code -108

我有一个小小的建议 - 性能计数器集是问题所在。我说的对吗?

这个建议是正确的 - 玩弄性能计数器(a.k.a。选择我自己的自定义列表)是会受到惩罚的。禁用它们可以缓解问题。我想有一个默认和允许的(a.k.a。可能)性能计数器列表。

Here 是一篇关于诊断的好文章,包含详尽的错误列表和非常好的字符串:

%SystemDrive%\ WindowsAzure\Logs\Plugins\Microsoft.Azure.Diagnostics.PaaSDiagnostics<DiagnosticsVersion>\CommandExecution.log

这让我发现了所有需要的日志。

为了解决类似问题:

  1. 在启用远程桌面的情况下将您的实例发布到暂存环境。
  2. 通过 VS 中的服务器资源管理器到实例的 RDP
  3. 使用上述文件夹并发现日志。
  4. 打开每个日志并使用它来发现带有错误代码的错误,并使用带有错误代码建议的文章。