Skip to main content

Troubleshoot Atera's Mac agent

If the Atera Agent won't install or is unstable on a Mac (macOS) device after you followed the instructions for agent installation, or if you are experiencing any problems with agent stability, alert consistency, agent unavailability, or remote connection instability, please verify the following:

 

Supported Versions

Please take a look at the main article to see which Mac versions are compatible with the Atera agent.

Additional requirement: For users of macOS devices with an M processor series, it is essential to have Rosetta, a dynamic binary translator developed by Apple, installed on your devices. In the majority of instances, macOS devices utilizing the M processor series come with Rosetta pre-installed. However, even if Rosetta is not present on your devices, during the agent installation process, Atera will make an attempt to install Rosetta if it detects the absence of the software application. To install Rosetta yourself, type sudo softwareupdate --install-rosetta in Terminal. For more info, see If you need to install Rosetta on your Mac and About the Rosetta translation environment

 

Server List and Ports

It is mandatory to configure your network settings to enable communication between your devices and our servers.

Whitelist the following servers on your network to ensure proper agent communication:

  • *.atera.com
  • a32dl55qcodech-ats.iot.eu-west-1.amazonaws.com
  • agent-api.atera.com
  • agent-api-v2.atera.com
  • agenthb.atera.com
  • app.atera.com
  • appcdn.atera.com
  • ps.atera.com
  • pubsub.atera.com
  • dotnetcli.azureedge.net
  • builds.dotnet.microsoft.com
  • download.visualstudio.microsoft.com
  • ps.pndsn.com
  • pubsub.pubnub.com
  • atera.pubnubapi.com
  • agentreportingstore.blob.core.windows.net
  • agentspoliciesprod.blob.core.windows.net
  • packagesstore.blob.core.windows.net
  • ticketingitemsstoreeu.blob.core.windows.net
  • atera-agent-heartbeat-cus.servicebus.windows.net
  • atera-agent-heartbeat.servicebus.windows.net
  • cacerts.thawte.com
  • automationtasks.blob.core.windows.net 
  • dot.net
  • ci.dot.net
  • *.amazontrust.com - required on ports 80 and 443
  • *.ods.opinsights.azure.com
  • *.in.applicationinsights.azure.com

Important Note: Whitelisting our servers is not achievable based on IP addresses; the whitelisting process must exclusively employ the server name.

 

Ports

Besides whitelisting the servers from above on your network, you will also need to:

  • Allow outbound traffic over ports 443 and 8883 (TCP/UDP) in the Antivirus, Firewall, and Proxy servers.

 

Verify server connection

To evaluate the connection between your device and our servers, run the provided bash script on your affected endpoint with administrative privileges. The script will generate a list indicating blocked and whitelisted servers on your network. Whitelisting a blocked server is essential for proper functionality.

#!/bin/bash

# Define the list of target servers and their corresponding ports (TCP and UDP)
targets=(
"pubsub.atera.com 443"
"pubsub.pubnub.com 443"
"app.atera.com 443"
"agenthb.atera.com 443"
"packagesstore.blob.core.windows.net 443"
"ps.pndsn.com 443"
"agent-api.atera.com 443"
"cacerts.thawte.com 443"
"agentreportingstore.blob.core.windows.net 443"
"atera-agent-heartbeat.servicebus.windows.net 443"
"ps.atera.com 443"
"atera.pubnubapi.com 443"
"appcdn.atera.com 443"
"atera-agent-heartbeat-cus.servicebus.windows.net 443"
"ticketingitemsstoreeu.blob.core.windows.net 443"
"download.visualstudio.microsoft.com 443"
"a32dl55qcodech-ats.iot.eu-west-1.amazonaws.com 443 8883"
)

# Function to resolve all IP addresses for a given server
function get_all_ip_addresses {
server=$1
ip_addresses=($(dig +short $server))

for ip in "${ip_addresses[@]}"; do
echo "$ip"
done
}

# Function to test TCP connection to a specific port
function test_tcp_connection {
server=$1
port=$2

resolved_ips=($(get_all_ip_addresses $server))

if [ ${#resolved_ips[@]} -gt 0 ]; then
for resolved_ip in "${resolved_ips[@]}"; do
(echo > /dev/tcp/$resolved_ip/$port) &>/dev/null
if [ $? -eq 0 ]; then
echo -e "\e[32mTCP Connection to $server ($resolved_ip) on port $port is successful.\e[0m"
else
echo -e "\e[31mTCP Connection to $server ($resolved_ip) on port $port failed.\e[0m"
fi
done
else
echo -e "\e[31mUnable to resolve IP addresses for $server.\e[0m"
fi
}

# Loop through the targets and test both TCP and UDP connections
for target in "${targets[@]}"; do
IFS=" " read -r server ports <<< "$target"
read -ra port_array <<< "$ports"

echo "Testing connections to $server..."

# Test TCP connections
for port in "${port_array[@]}"; do
test_tcp_connection $server $port
done

# Test UDP connections (you can add specific UDP tests if needed)
# for port in "${port_array[@]}"; do
# test_udp_connection $server $port
# done

echo "" # Add an empty line after testing each server
done

Below you will find the steps for running a bash script in Terminal, locally:

  1. Open the Terminal and type the command nano atera_test.sh and press Return. The Terminal will change into a basic text editor.
  2. Copy the bash script provided above under the Verify server connection section.
  3. Click into the Terminal window and press Command (⌘) + V to paste the code.
  4. To save the file, press Control + O (the letter O, not a zero) on your keyboard, then press Return to confirm.
  5. Press Control + X to exit the text editor.
  6. Type the command chmod +x atera_test.sh and press Return. Note: You will not see a confirmation message; the Terminal will simply give you a new line.
  7. Type the command sudo ./atera_test.sh and press Return.
  8. The Terminal will ask for your Mac login password. Note: As a security feature, your Mac will not show any characters or stars as you type your password. Simply type it in and press Return.

 

Antivirus, Firewall, Proxy, and Other Software That Can Block the Agent

In accordance with your organization's settings, you may need to adjust settings for your Anti-Virus, Firewall, Proxy, or Geo-blocking. The following is a list of configurations that must be applied to all relevant applications.

 

Anti-Virus

Include the following paths in the Antivirus whitelist:

  • /Library/Application Support/com.atera.ateraagent
  • /Library/LaunchDaemons/com.atera.agent.plist
  • /Library/LaunchDaemons/com.atera.ateraagent.plist
  • /Library/LaunchDaemons/com.atera.agent.uninstall.plist
  • /Applications/AteraAgent.app
  • /tmp/com.atera.agent.upgrade/
  • /private/tmp/PKInstallSandbox*/Scripts/com.atera.agent*/

 

Firewall

In certain network environments where HTTPS traffic is restricted, ensure the addition of a rule permitting HTTPS traffic from LAN to WAN, specifically for the Atera address:

  • agent-api.atera.com

Additionally, HTTPS inspection (Deep Packet Inspection/SSL Inspection) may lead to blockages, it is crucial to either disable HTTPS scanning or include Atera and its servers in the inspection whitelist.

Important Note: The Great Firewall of China is currently blocking certain servers essential for AteraAgent to report device availability (online/offline status). Consequently, machines situated in this country may not be manageable from the console. While using a VPN connection may potentially bypass these restrictions, please be advised that we cannot offer specific instructions or support for configuring such setups.

 

Proxy

Proxy and web-filtering systems are frequently encountered and can impact the stable behavior of the agent.

Ensure that outbound traffic on ports 443 and 8883, as well as file extensions ZIP and EXE from our website (Atera address: agent-api.atera.com), are permitted.

Important Note: Please be aware that Atera does not provide support or guidance for proxy configuration.

 

Geo-blocking

As an example, SonicWall routers, renowned for their Geo-Blocking features, may require specific configurations.

Ensure the allowance of content traffic, in addition to permitting TCP traffic on ports 443 and 8883, for optimal functionality.

 

FileVault

If FileVault is enabled, the device status in the Atera Dashboard will appear as Offline as long as no user is logged in. Once a user logs into the device, Atera will reflect the device status as Online. Turning FileVault off will fix this behavior.

 

Previously installed agent

If an Atera agent was previously installed, and then removed, through a different account, it is necessary to do a full clean-up before installing the new agent.

To do a full clean-up, use these commands in the terminal. They unload and stop the Atera launch daemon, delete the com.atera files in /Library/Application Support and /Library/LaunchDaemons, delete /Applications/AteraAgent.app, and remove the com.atera.ateraagent and com.atera.agent package records.

sudo launchctl unload /Library/LaunchDaemons/com.atera.agent.plist 2>/dev/null
sudo launchctl stop com.atera.agent

sudo rm -rf /Library/Application\ Support/com.atera*
sudo rm -f /Library/LaunchDaemons/com.atera*
sudo rm -rf /Applications/AteraAgent.app

sudo pkgutil --forget com.atera.ateraagent
sudo pkgutil --forget com.atera.agent

 

Outdated Atera agent installers

Using an outdated installer may lead to issues during the Atera agent installation process. It is advised to utilize an up-to-date installer when installing the agent on a new device. To generate an up-to-date installer, simply follow the steps outlined in our main article.

 

Agent Logs

On a Mac, the Atera Agent log files are stored in the folder /Library/Application Support/com.atera.ateraagent/agent/logs.

 

Was this helpful?