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.

walinuxagent 2.2.20 handler is keeping download the omsagent 1.4.58.7 but failed to disable older omsagent extension 1.4.56.5

See original GitHub issue

Error message logs repeat in waagent.log looks like below.

From guest os perspective, I could see lots of traffic was generated by waagent handler and from the waagent logs, I could see the handler is trying download/install the omsagentforlinux 1.4.58.7 but failed to disable omsagentforlinux 1.4.58.5. The operation kept failed repeatly and the omsagentfor linux extension states as “Transitioning”

2018/01/06 23:07:46.731983 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Target handler state: enabled
2018/01/06 23:07:46.743489 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] [Enable] current handler state is: notinstalled
2018/01/06 23:07:51.094812 INFO Event: name=Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux, op=Download, message=Download succeeded, duration=0
2018/01/06 23:07:51.107818 WARNING Too many files under: /var/lib/waagent/events, removing oldest
2018/01/06 23:07:51.121596 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Initialize extension directory
2018/01/06 23:07:51.142064 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Update settings file: 0.settings
2018/01/06 23:07:51.159026 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.56.5] Disable extension [omsagent.py -disable]
2018/01/06 23:07:51 OmsAgentForLinux started to handle.
2018/01/06 23:07:51 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.56.5] cwd is /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.56.5
2018/01/06 23:07:51 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.56.5] Change log file to /var/log/azure/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux/1.4.56.5/extension.log
2018/01/06 23:07:52.174867 ERROR Event: name=Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux, op=Download, message=[ExtensionError] Non-zero exit code: 1, omsagent.py -disable, duration=0
2018/01/06 23:07:52.191380 WARNING Too many files under: /var/lib/waagent/events, removing oldest
2018/01/06 23:07:52.291125 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Remove extension handler directory: /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7
2018/01/06 23:07:55.373756 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Target handler state: enabled
2018/01/06 23:07:55.384748 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] [Enable] current handler state is: notinstalled
2018/01/06 23:08:00.278801 INFO Event: name=Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux, op=Download, message=Download succeeded, duration=0
2018/01/06 23:08:00.291616 WARNING Too many files under: /var/lib/waagent/events, removing oldest
2018/01/06 23:08:00.299439 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Initialize extension directory
2018/01/06 23:08:00.313816 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.58.7] Update settings file: 0.settings
2018/01/06 23:08:00.328295 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.4.56.5] Disable extension [omsagent.py -disable]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
flyinprogrammercommented, Jul 19, 2019

ok i was running v2.2.40 on bionic today, from the proposed repo, and it wouldn’t stop flapping until i cleared out all the old downloads of OmsAgent. https://github.com/Azure/WALinuxAgent/issues/1393 was also an issue until i used your advice.

0reactions
vrdmrcommented, Jul 19, 2019

@flyinprogrammer - We are working on the fix for the extension issues. And the re-download issue has already been fixed.

ref. @larohra

Read more comments on GitHub >

github_iconTop Results From Across the Web

walinuxagent 2.2.20 handler is keeping download ... - GitHub
walinuxagent 2.2.20 handler is keeping download the omsagent 1.4.58.7 but failed to disable older omsagent extension 1.4.56.5 #630.
Read more >
Troubleshoot the Azure Linux Agent - Virtual Machines
Check the service status of the Azure Linux Agent to make sure it's running. The service name might be walinuxagent or waagent.
Read more >
OMS Agent for Linux Update - v1.4.3-174 - MrChiyo.com
Version 1.4.3-174 of the OMS agent for Linux is now generally available. This updates includes a couple of bug fixes, and new features....
Read more >
How To Re-Install Oms Agent For Linux On Azure - TekNeed
Learn how to uninstall Oms Agent, start and enable Waagent. ... VM to fail, follow the step by step process to re-install the...
Read more >
Install and Configure the OMS Linux Agent
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_GA_v1.4.1-45/omsagent-1.4.1-45.universal.x64.sh.
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