You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
When trying to install the OMSAgentForLinux for Ubuntu 21.04 distributions, getting the following errors
Error: Code="VMExtensionHandlerNonTransientError"
Message="The handler for VM extension type 'Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux' has reported terminal failure for VM extension 'Bastion_OMSExtension' with error message: '[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/omsagent_shim.sh -install
[stdout]
2022/04/05 12:56:36 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9] Install,failed,51,Unsupported operating system: ubuntu 21.04
[stderr]
y:283: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
if exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:309: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
if exit_code is 1 and operation == 'Install':
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:314: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 127 and operation == 'Install':
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:325: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
elif exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:649: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
if exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1002: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
if exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1164: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
if cert_exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1199: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
if exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1203: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 1:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1220: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
if exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1224: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 1:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1275: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
if exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1279: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
if exit_code is 17:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1300: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 19:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1313: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 33:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1320: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 5:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1327: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
elif exit_code is 8:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgen'.\r\r
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionOMSAgentLinuxTroubleshoot'"
Appreciate how we can overcome this and install the extensions as expected.
Thank you for your submission. As previously announced, the Log Analytics agent has been deprecated and has no support as of August 31, 2024. If you use the Log Analytics agent to ingest data to Azure Monitor, migrate now to the new Azure Monitor agent. As part of repo archival, open issues and pull requests will be closed.
Hi Team
When trying to install the OMSAgentForLinux for Ubuntu 21.04 distributions, getting the following errors
Appreciate how we can overcome this and install the extensions as expected.
Related Issue
The text was updated successfully, but these errors were encountered: