question

PeterSmit-6133 avatar image
0 Votes"
PeterSmit-6133 asked AnuragSingh-MSFT commented

Azure Monitor Agent unable to communicate with Log Analytics Workspace; During Install Unable to find the arc token directory; errorcode 2148795139

Clean installation of the Arc Agent, afterwards via DCR a Azure Monitor Agent was deployed to the ubuntu box

LinuxAMA does not communicate since Refreshtoken cannot be found:

/var/opt/microsoft/azuremonitoragent/log/mdsd.err >> GetMSI token from Arc IMDS: Retryable Exeption - Unable to find the arc token directory. Errorcode:2148795139

any thoughts?

azure-monitorazure-arc
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnuragSingh-MSFT avatar image
0 Votes"
AnuragSingh-MSFT answered PeterSmit-6133 commented

Hi @PeterSmit-6133, apologies for the delayed response. Can you please check the following and ensure that these are in order?
- Please connect to this Ubuntu machine and run the command below:
sudo azcmagent show
- Ensure that the "Agent Status" field is "Connected" in the result from previous step. If this is not connected, you can run the azcmagent connect command to ensure that the arc agent is connected. (This might require to be run as sudo). The parameters for this command can be obtained from the onboarding script from Azure portal from "Azure Arc --> Servers\Add.." option.
- For the VM resource created in portal for this machine, please check the status of "AzureMonitorLinuxAgent" extension. For successful install, it should be "Succeeded".
- Ensure that the service "azuremonitoragent" on the machine is in running status (`service azuremonitoragent status`)

In case you are still facing this issue after ensuring that the above points are all OK, please share details about this machine:
- OS version (please refer here for supported OS for the agent)
- version of Azure Monitoring agent installed ( apt list --installed | grep azuremonitoragent )
- Are there other Linux/Ubuntu machines where this works?

· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PeterSmit-6133, I wanted to check if you had a chance to review my answer above. Please let me know if you have any queries or concerns.
Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·

apologies for my late response, I was on leave..

0 Votes 0 ·

sudo azcmagent show gives me an overview of an connected ARC agent with an agent status "Connected"
<redacted/>

details machine:
<redacted/>

Extension Details:
<redacted/>

I have another test linux machine which is connected with the Log Analytics Monitor Agent which communincates fine with Log Analytics.

0 Votes 0 ·

After removing and re-assigning the extension via DCR, the extension at first gives a status Enable succeeded.. after a while it will give the error as displayed in previous images.

0 Votes 0 ·

Thank you @PeterSmit-6133. To be sure, can you please confirm if the following steps were followed (if not, can you please perform them and share the result)

  1. Remove this source from the DCR (Please go to the DCR associated with this VM in Azure Monitor --> Resources --> "delete" this VM from here*. This step will not remove the agent or extension from the VM).

  2. Uninstall the AzureMonitorLinuxAgent extension from this VM through Azure portal (under "Extension" blade of the VM)

  3. Ensure that azuremonitoragent package is not available on the machine, after step 2 above completes.

  4. Retry agent installation by adding this VM to DCR as a source.

In case the steps above do not work, I would suggest opening a Support Ticket with Microsoft as this may require additional troubleshooting. Please let me know if you have any questions.

0 Votes 0 ·

i found some logging in /var/opt/microsoft/azuremonitoragent/log/mdsd.err and that log is full with the message

Failed to get MSI token from Arc IMDS: Retryable Exception - Unable to find the arc token directory. Errorcode:2148795139

0 Votes 0 ·
Show more comments
shseth avatar image
0 Votes"
shseth answered AnuragSingh-MSFT commented

@PeterSmit-6133, As now documented, AMA Linux 1.12.2.0 has a regression on Arc machines. Rollout of next version 1.14 is in progress, updating to this new or previous version should work on Arc.
https://docs.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-install?tabs=ARMAgentPowerShell%2CPowerShellWindows%2CPowerShellWindowsArc%2CCLIWindows%2CCLIWindowsArc#extension-versions

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PeterSmit-6133, I wanted to check if you had a chance to review the answers above. Please let us know if you have any queries or concerns.
Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·