Service Node upgrade fails with the error: ERROR while trying to check the hostname

Created:

2016-11-16 12:43:12 UTC

Modified:

2017-02-20 23:28:47 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Service Node upgrade fails with the error: ERROR while trying to check the hostname

Symptoms

Service node upgrade fails with the error:

Trying to restart service httpd… httpd is stopped
Starting httpd: [ OK ]
done
Warning!
Unable to detect the fully qualified domain name of the host.
Please make sure that FQDN of the host is correctly specified in /etc/hosts and goes right after the host’s IP address
(depending on your OS, you might need to set the host name in /etc/HOSTNAME or /etc/hostname).

Setting it to localhost.localdomain
Trying to resolve hostname ‘localhost.localdomain’ and validate its IP address…
Unable to resolve host name.
Please specify the host name in the /etc/hosts file or specify DNS configuration in the /etc/resolv.conf on your system.

ERROR while trying to check the hostname
Check the error reason(see log file: /tmp/plesk_11.5.50_installation.log), fix and try again

***** problem report *****
ERROR while trying to check the hostname
Check the error reason(see log file: /tmp/plesk_11.5.50_installation.log), fix and try again

Resolution

Pay attention on the message marked with ERROR:

ERROR while trying to check the hostname

It is necessary to fix the problem with the hostname:

  1. Make a backup of the current /etc/hosts file

  2. Set the correct value for hostname in /etc/hosts . For instance:

    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    111.111.111.111 host host.domain.tld
Have more questions? Submit a request
Please sign in to leave a comment.