Article ID: 116931, created on Aug 26, 2013, last review on May 7, 2014

  • Applies to:
  • Plesk Automation


Installation of Parallels Plesk Automation fails:

[INFO]: Selected Communication IP:
[INFO]: Checking hostname...
[ERROR]: Unexpected error: (-2, 'Name or service not known')
Traceback (most recent call last):
  File "./ppa_installer", line 897, in ?
  File "./ppa_installer", line 889, in run
  File "./ppa_installer", line 864, in checkEnv
    self._checkHostName(self.checkRes['opts'], hostIPs)
  File "./ppa_installer", line 621, in _checkHostName
    hostNameIp = network.getHostNameIP()
  File "/usr/lib/python2.4/site-packages/ppacommon/network/", line 103, in getHostNameIP
    return socket.gethostbyname(getHostName())
gaierror: (-2, 'Name or service not known')


Server hostname cannot be resolved to IP address.


  1. Get server's fully qualified hostname:

    [root@ppa-mn ~]# hostname -f
  2. Add pair "IP-hostname" into /etc/hosts using IP from error message and hostname obtained on step #1:

    [root@ppa-mn ~]# cat /etc/hosts       localhost localhost.localdomain        ppa-mn.domain.tld
  3. Re-run installation.

e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF