Azure / Azure/azure-linux-extensions

AzureMonitorAgent not working on CentOS 8.4 (8.x?)

Open
#1,463 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

Deploying the agent V14.5 on CentOS the following error is encountered:

```
The handler for VM extension type 'Microsoft.Azure.Monitor.AzureMonitorLinuxAgent' has reported terminal failure for VM extension 'AzureMonitorAgent' with error message: '[ExtensionOperationError] Non-zero exit code: 5, /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.14.5/./shim.sh -enable\n[stdout]\n2021/11/17 09:24:29 Unit azuremonitoragent.service could not be found.\n\n\n[stderr]\nFailed to start azuremonitoragent.service: Unit azuremonitoragent.service not found.Unit azuremonitoragent.service could not be found.'.\r\n \r\n'Enable handler for the extension failed. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'"
```

it seems that the agent.py is unable to properly create the service.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.