Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, December 24, 2018 1:25 PM
Hi Team,
I am trying to install OMS extension on Linux VM using cli but getting below error. however I can run command on few other servers.
Can anyone help me to fix this road block.
Deployment failed. Correlation ID: 293f8984-0c47-4040-98a9-d4db3ca8fb17. Handler 'Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux' has reported failure for VM Extension 'OmsAgentForLinux' with terminal error code '1007' and error message: '[ExtensionError] Non-zero exit code: 22, omsagent.py -install'
**
EDIT
Script using by me : -
az vm extension set \
--resource-group 'cloud' \
--vm-name 'rhel75-goldenimagevm' \
--name OmsAgentForLinux \
--publisher Microsoft.EnterpriseCloud.Monitoring \
--version 1.4 --protected-settings '{"workspaceKey": "XXXXXXXXXXXXXXX+XXXXXXXXXXXXX=="}' \
--settings '{"workspaceId": "XXXXXXXXXXXXXXXXXXXXX"}'
All replies (7)
Friday, January 4, 2019 10:56 AM âś…Answered
Hi,
You can use the below commands to check.
I didn't verify it though.
# tocheck if the package is installed or not
rpm -qa | grep audit
#it will list the packages matching audit. Look for audit-<some version>
# Mostly that system wont have a audit package.
#to check if audit package is available for installation
yum search audit
#or
yum info audit#if the package is found, you can install using the below command.yum install audit
Wednesday, December 26, 2018 12:12 PM
Hi Gourav,
Please go through the steps here for troubleshooting.
Let me know the result and then we can debug further.
Thursday, December 27, 2018 8:04 PM
Any update? Did that help?
Karishma Tiwari - MSFT
Saturday, December 29, 2018 8:57 AM
Working on it!
EDIT
On checking waagent.logs I have found below error.
2018/12/25 03:33:54.325036 ERROR ExtHandler Event: name=Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux, op=Install, message=eJyXXXCXXXXqyi+KVfDLz9OtSi3KV
0ityCxRSM5PSbVXXXXXXXoVNDNzCsuSczJAQC3uBYQ, duration=0
On checking extensions log I have got this information.
2018/12/25 03:33:35 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] sequence number is 0
2018/12/25 03:33:35 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] setting file path is/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentFor
Linux-1.8.11/config/0.settings
2018/12/25 03:33:35 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] JSON config: {"runtimeSettings": [{"handlerSettings": {"protectedSettings": "XXXXXXXXXXXXXXXXXX", "publicSettings": {"workspaceId": "XXXXXXXXXXXXXXXXX-d2bc8688f01a"}, "protectedSettingsCertThumbprint": "C1583896B4
7XXXXXXXXXXXXXXXXXX7E069"}}]}
2018/12/25 03:33:35 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] Config decoded correctly.
2018/12/25 03:33:35 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] Running command "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLin
ux-1.8.11/packages/omsagent-1.8.1-256.universal.x64.sh --upgrade"
2018/12/25 03:33:53 ERROR:CalledProcessError. Error Code is 22
2018/12/25 03:33:53 ERROR:CalledProcessError. Command string was /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11/packages/omsagent-1.8.1-
256.universal.x64.sh --upgrade
2018/12/25 03:33:53 ERROR:CalledProcessError. Command result was Checking host architecture ...
2018/12/25 03:33:53 ERROR:Extracting...
2018/12/25 03:33:53 ERROR: Upgrading package: omi (omi-1.4.2-5.ulinux.x64)
2018/12/25 03:33:53 ERROR:Skipping package since existing version >= version available
2018/12/25 03:33:53 ERROR: Upgrading package: scx (scx-1.6.3-659.universal.x64)
2018/12/25 03:33:53 ERROR:Skipping package since existing version >= version available
2018/12/25 03:33:53 ERROR: Upgrading package: omsagent (omsagent-1.8.1-256.universal.x64)
2018/12/25 03:33:53 ERROR:Skipping package since existing version >= version available
2018/12/25 03:33:53 ERROR: Upgrading package: omsconfig (omsconfig-1.1.1-876.x64)
2018/12/25 03:33:53 ERROR:Skipping package since existing version >= version available
2018/12/25 03:33:53 ERROR: Updating bundled packages
2018/12/25 03:33:53 ERROR:Checking if Apache is installed ...
2018/12/25 03:33:53 ERROR: Apache not found, will not install
2018/12/25 03:33:53 ERROR:Checking if Docker is installed...
2018/12/25 03:33:53 ERROR: Docker not found. Docker agent will not be installed.
2018/12/25 03:33:53 ERROR:Checking if MySQL is installed ...
2018/12/25 03:33:53 ERROR: MySQL not found, will not install
2018/12/25 03:33:53 ERROR:Checking if required dependencies for auoms are installed...
2018/12/25 03:33:53 ERROR:Extracting...
2018/12/25 03:33:53 ERROR:Updating auoms ...
2018/12/25 03:33:53 ERROR: Updating package: auoms (auoms-1.3.0-3.universal.x64)
2018/12/25 03:33:53 ERROR:error: Failed dependencies:
2018/12/25 03:33:53 ERROR: audit is needed by auoms-1.3.0-3.x86_64
2018/12/25 03:33:53 ERROR:auoms package failed to upgrade and exited with status 1
2018/12/25 03:33:53 ERROR:Shell bundle exiting with code 22
2018/12/25 03:33:53 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] Output of command "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForL
inux-1.8.11/packages/omsagent-1.8.1-256.universal.x64.sh --upgrade":
2018/12/25 03:33:53 Checking host architecture ...
2018/12/25 03:33:53 Extracting...
2018/12/25 03:33:53 Upgrading package: omi (omi-1.4.2-5.ulinux.x64)
2018/12/25 03:33:53 Skipping package since existing version >= version available
2018/12/25 03:33:53 Upgrading package: scx (scx-1.6.3-659.universal.x64)
2018/12/25 03:33:53 Skipping package since existing version >= version available
2018/12/25 03:33:53 Upgrading package: omsagent (omsagent-1.8.1-256.universal.x64)
2018/12/25 03:33:53 Skipping package since existing version >= version available
2018/12/25 03:33:53 Upgrading package: omsconfig (omsconfig-1.1.1-876.x64)
2018/12/25 03:33:53 Skipping package since existing version >= version available
2018/12/25 03:33:53 Updating bundled packages
2018/12/25 03:33:53 Checking if Apache is installed ...
2018/12/25 03:33:53 Apache not found, will not install
2018/12/25 03:33:53 Checking if Docker is installed...
2018/12/25 03:33:53 Docker not found. Docker agent will not be installed.
2018/12/25 03:33:53 Checking if MySQL is installed ...
2018/12/25 03:33:53 MySQL not found, will not install
2018/12/25 03:33:53 Checking if required dependencies for auoms are installed...
2018/12/25 03:33:53 Extracting...
2018/12/25 03:33:53 Updating auoms ...
2018/12/25 03:33:53 Updating package: auoms (auoms-1.3.0-3.universal.x64)
2018/12/25 03:33:53 error: Failed dependencies:
2018/12/25 03:33:53 audit is needed by auoms-1.3.0-3.x86_64
2018/12/25 03:33:53 auoms package failed to upgrade and exited with status 1
2018/12/25 03:33:53 Shell bundle exiting with code 22
2018/12/25 03:33:53 ERROR:Install failed with exit code 22
2018/12/25 03:33:53 ERROR:[Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] Install failed with exit code 22
2018/12/25 03:33:53 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.8.11] Install,failed,22,Install failed with exit code 22
What is auoms-1.3.0-3.universal.x64 and how can i install this on Az VM (This is a Golden Image not an Az gallery VM). I guess this package is missing on VM and reasons of all culprit.
Cheers, Gourav Please remember to mark the replies as answers if it helped.
Wednesday, January 2, 2019 7:15 AM
Hi Gaurav,
I checked your logs.
auoms is dependent on audit package which is not there. So you need to install audit package.
When i ran the same upgrade command in my environment, i got the below message.
Checking if required dependencies for auoms are installed...
/sbin/auditd isn't installed
/sbin/audispd isn't installed
libauparse.so isn't installed
Because the necessary dependencies are not installed, the auoms auditd plugin will not be installed.
For Debian & Ubuntu, install the 'auditd' package.
For CentOS, RHEL & SLES, install the 'audit' package.
Shell bundle exiting with code 0
Install the audit package and try to install the extension.
Friday, January 4, 2019 10:50 AM
Hi There,
You want to me check these package on affected VM, am i right Sir?
As i have bit experience with linux so it would be great if you could shed steps.
Will be very thankful to you.
Cheers, Gourav Please remember to mark the replies as answers if it helped.
Wednesday, January 9, 2019 9:46 AM
Thanks for the help ,,,, I have installed missing package :)
Cheers, Gourav Please remember to mark the replies as answers if it helped.