Acronis Backup: Agent registration fails with error "Could not resolve host: localhost; nodename nor servname provided, or not known" on macOS
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
HideEjemplo de registro de error completo: haga clic para expandirHide Example of full error log: click to expand
Error 0x2470001: HTTP transfer error
| line: 0xcbd08862963188d2
| file: /private/bs_hudson/workspace/ABA12.5U1/212/product/enterprise/common/http/curl_transport.cpp:285
| function: PerformRequest
| requestType: POST | uri: http://localhost/api/mms/registration
| port: 0xa8e2
| curlResult: 0x6
| $module: register_agent_macia64_10330 |
| error 0x2260006: Could not resolve host: localhost; nodename nor servname provided, or not known
| line: 0xcbd08862963188d1
| file: /private/bs_hudson/workspace/ABA12.5U1/212/product/enterprise/common/http/curl_transport.cpp:284
| function: PerformRequest | $module: register_agent_macia64_10330
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.