61955: Acronis Backup 12.5: Agent registration fails with error "Could not resolve host: localhost; nodename nor servname provided, or not known" on macOS

Also read in:

use Google Translate

Applies to: 

Operating Systems: 

Symptoms

1) You are trying to install, update, uninstall, register or unregister Agent for Mac.

2) Agent registration on Management Server fails with the error message:

Could not resolve host: localhost; nodename nor servname provided, or not known

3) If you run ping localhost command in Terminal, you receive the following message:

ping: cannot resolve localhost: Unknown host

Cause

There is an issue with network configuration of the Mac with Agent: string for localhost resolution is missing in the hosts file. As a result, register agent tool fails to resolve localhost during registration.

Solution

1. Open Terminal

2. You need to update the /etc/hosts file. Run the following command:

sudo nano /etc/hosts/

Specify admin password, if prompted.

3. Add the following line in the hosts file:

 127.0.0.1 localhost 

4. Press Ctrl+O to save changes to the file. Press Ctrl+X to exit the editor.

5. Reattempt the installation/registration.

Tags: 

You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
5 + 13 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.