Unable to install AMA Linux Agent

SwathiDhanwada-MSFT 18,546 Reputation points
2024-07-16T04:09:02.6833333+00:00

Unable to install AMA Linux Agent due to [ExtensionOperationError] Non-zero exit code: 52, /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.2/./shim.sh -install [stdout] 2024/03/04 13Error: Install failed due to low disk space space [stderr]

 PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,991 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 14,371 Reputation points Microsoft Employee
    2024-07-16T04:13:33.9433333+00:00

    Hi @SwathiDhanwada-MSFT

    The installation of the AMA Linux agent fails due to insufficient disk space.  By default the agent requires 10Gb of disk space to run.

     

    To resolve the issue, follow these steps:

    1. Check Disk Space:
      • Use the df -Th command to check the disk space usage
      • df -hT /var
      • df -hT /opt
      • Df -hT /etc
      • /var requires 10GB of disk space whereas /opt , /etc directory requires minimum of 500 MB of space
    2. Free Up Space:
      • Identify and remove unnecessary files or applications to free up space in the /var, /opt and /etc partition.
      • Alternatively, increase the size of the partitions if possible.
    3. Reattempt Installation:
      • Once sufficient space is available, reattempt the installation of the AMA agent.

    sudo /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.2/./shim.sh -install

     

    Reference:

    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-manage?tabs=azure-portal

    0 comments No comments