Skip to main content

Mac Agent | Mac Agent Auto-Update Issues

Updated over 3 weeks ago

Overview πŸ’₯

Liongard has identified an issue affecting macOS Agents running version 4.2.4 where the built-in auto-update mechanism fails to upgrade the agent to newer versions.

This issue has been fully resolved in later agent releases (4.2.5 and newer). However, any agent currently stuck on 4.2.4 must be manually repaired or upgraded once to restore normal auto-update behavior going forward.

Liongard provides multiple supported recovery paths, depending on scale and severity.


Why This Happen πŸ€”

Mac Agents on version 4.2.4 contain a defect in the auto-update workflow that prevents:

  • Successful update checks

  • Downloading the newer installer

  • Executing the updater correctly

As a result:

  • The agent may continue checking in

  • Auto-update may show as Enabled

  • The agent never advances beyond 4.2.4

This condition does not self-correct and requires manual intervention.

‼️ Impact

Affected agents may experience:

  • Being permanently stuck on version 4.2.4

  • Missing important stability and security fixes

  • Inconsistent inspection behavior over time

  • Auto-update enabled but ineffective

Once repaired, future auto-updates work as expected.


Recommended Resolution (Primary Fix) πŸ§‘β€πŸ«

Use the Official Liongard Mac Agent Updater Script

This is the recommended and supported first-line fix, especially for bulk remediation.

Steps:

  1. Deploy the Script

    • Manual execution via Terminal

    • MDM / RMM (Jamf, Addigy, Kandji, Intune, etc.)

βœ… Option A: Manual Execution (Terminal)

  1. Copy the script contents into a file named:

    LiongardAgentUpdate.sh
  2. Make the script executable:

    chmod 755 LiongardAgentUpdate.sh
  3. Run the script with elevated privileges:

    sudo sh LiongardAgentUpdate.sh

πŸ“Œ The script must be run as root / with sudo.

βœ… Option B: MDM / RMM Deployment

  • Paste the script contents directly into your MDM’s script module

  • Ensure the script runs:

    • As root

    • Without user interaction

  • No parameters or environment variables are required

(Example shown below using Addigy)

What the Script Does:

Behind the scenes, the updater script will:

  • Download the appropriate Liongard macOS agent package

  • Repair existing agent components in place

  • Install the updated agent over the existing installation

  • Restart Liongard services automatically

No agent re-registration is required.

Verification Steps:

After the script completes successfully:

  1. Log in to the Liongard Portal

  2. Navigate to:

    Admin β†’ Agents
  3. Locate the affected macOS agent

  4. Confirm:

    • Agent version is newer than 4.2.4 (for example 4.2.6 or later)

    • Last Heartbeat is current

    • Auto-Update Status is enabled

Example verification shown below:


Additional Troubleshooting & Alternate Recovery Options πŸ‘¨β€πŸ’»

If the updater script cannot be used, or if further troubleshooting is required, use one of the supported options below.

1 – Manually Trigger the Built-In Updater

(Recommended for testing or a small number of devices)

On the affected Mac, run:

sudo /Library/Liongard/LiongardAgentUpdater

This command immediately:

  • Checks Liongard for the latest macOS agent

  • Downloads and validates the installer (if available)

  • Installs the update in place

  • Restarts Liongard services as needed

Verification:

After completion:

  • Log into Liongard

  • Navigate to Admin β†’ Agents

  • Confirm the agent version has updated and the heartbeat is current

2 – Uninstall and Reinstall the Latest macOS Agent

(Use when auto-update or updater repair paths fail)

This approach fully bypasses the auto-update mechanism and guarantees the device is on the current version.

Recommended when:

  • The agent is stuck on an older version

  • Auto-update attempts fail repeatedly

  • The device is on a known problematic build

Steps:

  1. Download the latest macOS agent installer:

    Admin β†’ Agents β†’ Install Agent
  2. Uninstall the existing Liongard macOS agent from the device

  3. Install the latest .pkg using:

    • Manual install, or

    • RMM / MDM deployment (Jamf, Intune, Kandji, etc.)

  4. Confirm the agent reappears in Liongard and checks in normally

πŸ“Œ Reinstallation automatically restores a clean, supported state.


Important Notes & Best Practices πŸ™Œ

  • πŸ” This is a one-time fix per affected machine

  • βœ… Once upgraded, future auto-updates function normally

  • πŸ›  The updater script is safe to run on existing installs

  • ❌ Simply waiting will not resolve agents stuck on 4.2.4


When to Contact Support 🀩

Please contact Liongard Support if:

  • The updater script fails

  • The manual updater does not advance the version

  • The agent does not check in after reinstall

Collect:

  • Script output

  • Logs from
    1. /Library/Liongard/logs/
    2. /tmp/liongard-agent-installer.log

  • macOS version and architecture


Related Documentation 🀩

Did this answer your question?