Closed aw230012 closed 2 months ago
The troubleshooting guide for the OmsAgentForLinux extension is here: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/extensions-oms
In this case, you can see an exact error message by looking at the extension installation output in the file /var/log/azure/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux/1.4.45.2/extension.log
This output should include an error code that you can reference in the table in the above documentation link.
My first guess is that the parameters you used for workspaceId and workspaceKey did not resolve to their expected values. I would recommend constructing a dictionary like the above in Azure Powershell and seeing if those values can be read or not.
Are you still seeing this or it is been resolved for your deployment? Looking at your input , most likely the output of workspace id is not resolved to a workspace guid, same for primary key. Can you try outputting workspace id and primary key to some other file or parameters and then passing those instead of your original strings?
I have the same issue too.
info: Executing command group deployment operation list info: Getting deployoment operations data: Id: /subscriptions/c735f731-b2c0-43fe-96e0-8bbe8e7f71a8/resourceGroups/RgGoCDTestProsDv2/providers/Microsoft.Resources/deployments/RgGoCDTestProsDv2/operations/E12013C68C7BBD4D data: OperationId: E12013C68C7BBD4D data: Provisioning State: Failed data: Timestamp: 2018-06-18T19:00:02.397Z data: Status Code: Conflict data: Status Message: status=Failed, code=ResourceDeploymentFailure, message=The resource operation completed with terminal provisioning state 'Failed'., details=[code=VMExtensionProvisioningError, message=VM has reported a failure when processing extension 'Microsoft.EnterpriseCloud.Monitoring'. Error message: "Malformed status file [ExtensionError] Invalid status/status: failed".] data: Target Resource Id: /subscriptions/c735f731-b2c0-43fe-96e0-8bbe8e7f71a8/resourceGroups/RgGoCDTestProsDv2/providers/Microsoft.Compute/virtualMachines/VmGoCdTest02ProsDv2/extensions/Microsoft.EnterpriseCloud.Monitoring data: Target Resource Name: VmGoCdTest02ProsDv2/Microsoft.EnterpriseCloud.Monitoring data: Target Resource Type: Microsoft.Compute/virtualMachines/extensions data: --------------------- data: data: Id: /subscriptions/c735f731-b2c0-43fe-96e0-8bbe8e7f71a8/resourceGroups/RgGoCDTestProsDv2/providers/Microsoft.Resources/deployments/RgGoCDTestProsDv2/operations/A63C878EA22422C7 data: OperationId: A63C878EA22422C7 data: Provisioning State: Failed data: Timestamp: 2018-06-18T19:00:03.790Z data: Status Code: Conflict data: Status Message: status=Failed, code=ResourceDeploymentFailure, message=The resource operation completed with terminal provisioning state 'Failed'., details=[code=VMExtensionProvisioningError, message=VM has reported a failure when processing extension 'Microsoft.EnterpriseCloud.Monitoring'. Error message: "Malformed status file [ExtensionError] Invalid status/status: failed".] data: Target Resource Id: /subscriptions/c735f731-b2c0-43fe-96e0-8bbe8e7f71a8/resourceGroups/RgGoCDTestProsDv2/providers/Microsoft.Compute/virtualMachines/VmGoCdTest01ProsDv2/extensions/Microsoft.EnterpriseCloud.Monitoring data: Target Resource Name: VmGoCdTest01ProsDv2/Microsoft.EnterpriseCloud.Monitoring data: Target Resource Type: Microsoft.Compute/virtualMachines/extensions data: ---------------------
@NarineM @lagalbra ---- Below is the extension.log error message I see.
2018/06/18 19:27:53 ERROR:Enable failed with error: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128) 2018/06/18 19:27:53 ERROR:Stacktrace: Traceback (most recent call last): 2018/06/18 19:27:53 ERROR: File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 153, in main 2018/06/18 19:27:53 ERROR: exit_code = operations[operation]() 2018/06/18 19:27:53 ERROR: File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 310, in enable 2018/06/18 19:27:53 ERROR: check_workspace_id_and_key(workspaceId, workspaceKey) 2018/06/18 19:27:53 ERROR: File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 576, in check_workspace_id_and_key 2018/06/18 19:27:53 ERROR: encoded_key = base64.b64encode(base64.b64decode(workspace_key)) 2018/06/18 19:27:53 ERROR: File "/usr/lib/python2.7/base64.py", line 73, in b64decode 2018/06/18 19:27:53 ERROR: return binascii.a2b_base64(s) 2018/06/18 19:27:53 ERROR:UnicodeEncodeError: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128) 2018/06/18 19:27:53 ERROR: 2018/06/18 19:27:53 ERROR:[Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0] Enable failed with error: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128) 2018/06/18 19:27:53 ERROR:Stacktrace: Traceback (most recent call last): 2018/06/18 19:27:53 ERROR: File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 153, in main 2018/06/18 19:27:53 ERROR: exit_code = operations[operation]() 2018/06/18 19:27:53 ERROR: File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 310, in enable 2018/06/18 19:27:53 ERROR: check_workspace_id_and_key(workspaceId, workspaceKey) 2018/06/18 19:27:53 ERROR: File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 576, in check_workspace_id_and_key 2018/06/18 19:27:53 ERROR: encoded_key = base64.b64encode(base64.b64decode(workspace_key)) 2018/06/18 19:27:53 ERROR: File "/usr/lib/python2.7/base64.py", line 73, in b64decode 2018/06/18 19:27:53 ERROR: return binascii.a2b_base64(s) 2018/06/18 19:27:53 ERROR:UnicodeEncodeError: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128) 2018/06/18 19:27:53 ERROR: 2018/06/18 19:27:53 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0] Enable,failed,1,Enable failed with error: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128) 2018/06/18 19:27:53 Stacktrace: Traceback (most recent call last): 2018/06/18 19:27:53 File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 153, in main 2018/06/18 19:27:53 exit_code = operations[operation]() 2018/06/18 19:27:53 File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 310, in enable 2018/06/18 19:27:53 check_workspace_id_and_key(workspaceId, workspaceKey) 2018/06/18 19:27:53 File "/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.6.42.0/omsagent.py", line 576, in check_workspace_id_and_key 2018/06/18 19:27:53 encoded_key = base64.b64encode(base64.b64decode(workspace_key)) 2018/06/18 19:27:53 File "/usr/lib/python2.7/base64.py", line 73, in b64decode 2018/06/18 19:27:53 return binascii.a2b_base64(s) 2018/06/18 19:27:53 UnicodeEncodeError: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128) 2018/06/18 19:27:53
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.
Using ARM Templates, we are trying to install the Microsoft.EnterpriseCloud.Monitoring OmsAgentForLinux onto a Standard_DS13_v2 RedHat 7.2 image and we received the error "malformed status file." We do not see this error when deploying the extension to MicrosoftWindowsServer vms.
I could not find any information in the troubleshooting guide for this error. Does anyone know how we can fix this? I have confirmed we have all the required parameters sent with the resource definition.
Here is our resource definition:
Thanks!