Azure.Diagnostics.LinuxDiagnostic "Failed to set up mdsd dependencies"
See original GitHub issuei`m getting an error from: TYPE Microsoft.Azure.Diagnostics.LinuxDiagnostic VERSION 3.0.117
OS: Ubuntu 16.04 (x86_64) | 16.04.201808140
Other extensions present related to this (successfully installed):
DependencyAgentLinux: VERSION 9.7.3.1475 OmsAgentForLinux: VERSION 1.8.9
Error message:
Failed to set up mdsd dependencies: omsagent setup failed 5 times. Last exit code=3, Output=setup_omsagent_for_lad(): fluentd out_mdsd plugin install failed. Output: /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- rubygems/safe_yaml (LoadError) from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
require’ from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems.rb:702:in load_yaml' from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/config_file.rb:340:in
load_file’ from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/config_file.rb:202:in initialize' from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/gem_runner.rb:75:in
new’ from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/gem_runner.rb:75:in do_configuration' from /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/rubygems/gem_runner.rb:40:in
run’ from /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.4.0/gems/fluentd-0.12.40/bin/fluent-gem:6:in <top (required)>' from /opt/microsoft/omsagent/ruby/bin/fluent-gem:23:in
load’ from /opt/microsoft/omsagent/ruby/bin/fluent-gem:23:in `<main>’
HANDLER STATUSReady
HANDLER STATUS LEVELInfo
i could find a similar issue but seems to be closed… https://github.com/Azure/azure-linux-extensions/issues/488#issuecomment-439878427
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (3 by maintainers)
This may happen if there is OMS agent already installed and then LAD is installed. As a workaround, please uninstall OMS agent --> install LAD --> install OMS agent if you need.
The fix is checked in here - https://github.com/Microsoft/OMS-Agent-for-Linux/commit/f962a8a33e5b9efda536ea0be4ab8ddf763646d7 and will be out with next release of OMS agent, thanks!
It’s almost September and I’m still getting this.