question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure.Diagnostics.LinuxDiagnostic "Failed to set up mdsd dependencies"

See original GitHub issue

i`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:open
  • Created 5 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
shpimpalcommented, Nov 30, 2018

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!

1reaction
knlpcommented, Aug 28, 2020

It’s almost September and I’m still getting this.

2020/08/28 11:26:32 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.129] RunCmd dpkg -i lad-mdsd-*.deb
2020/08/28 11:26:32 ERROR:CalledProcessError.  Error Code is 2
2020/08/28 11:26:32 ERROR:CalledProcessError.  Command string was dpkg -i lad-mdsd-*.deb
2020/08/28 11:26:32 ERROR:CalledProcessError.  Command result was dpkg: error: dpkg frontend is locked by another process
2020/08/28 11:26:32 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.129] Return 2:dpkg: error: dpkg frontend is locked by another process
2020/08/28 11:26:32
2020/08/28 11:26:32 ERROR:[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.129] Failed to set up mdsd dependencies: lad-mdsd pkg install failed. Exit code=2, Output=dpkg: error: dpkg frontend is locked by another process
2020/08/28 11:26:32 ERROR:
2020/08/28 11:26:32 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.129] Install,error,1,Failed to set up mdsd dependencies: lad-mdsd pkg install failed. Exit code=2, Output=dpkg: error: dpkg frontend is locked by another process
2020/08/28 11:26:32
2020/08/28 11:26:32 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.129] Install,error,-1,Install failed
Read more comments on GitHub >

github_iconTop Results From Across the Web

Linuxdiagextension fails with the below error message
When i try to enable diag settings on the Vm and save . I get the below error message . Microsoft.Azure.Diagnostics.LinuxDiagnostic. Version 3.0 ......
Read more >
Linux diagnostic extension 4.0 - Azure Virtual Machines
How to configure the Azure Linux diagnostic extension (LAD) 4.0 to collect metrics and log events from Linux VMs running in Azure.
Read more >
Azure Linux Diagnostic: MDSD documentation and source ...
Hi,. I am looking for some kind of documentation for MDSD protocols and it's source code. Is anything freely available online?
Read more >
Troubleshoot Azure Log Analytics Linux Agent - Microsoft Learn
If installation fails in any way, you can also install the tool ... This error indicates that the Linux diagnostic extension (LAD) is ......
Read more >
Microsoft.Azure.Extensions.FixLinuxDiagnostic ? - MSDN
Azure.Extensions. ... Also the LinuxDiagnostic agent (3.*) fails to ... Failed to set up mdsd dependencies: omsagent setup failed 5 times.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found