edit-icon download-icon

The host name does not exist.

Last Updated: Mar 08, 2018

 Possible causes

A possible cause to this issue is that, the host name or host IP address cannot be retrieved correctly. To verify this assumption, run this command: hostname.

  • If the host name cannot be output normally, the assumption is correct.
  • Otherwise, this issue may have been caused by other reasons. Please open a ticket for technical support.

Suggested solution

Follow these steps:

  1. View the host name by running the following command on the machine that returned the error:

    1. [root@iZ231wxgt6mZ ~]# hostname
    2. iZ231wxgt6mZ

    If the command returns an error, check if an alias has been defined for the hostname, for example alias xxx=’hostname’ in .bash_profile or .bashrc. It is also possible that the command path is not under $PATH.

  2. Ping the host:

    1. [root@iZ231wxgt6mZ ~]# ping iZ231wxgt6mZ

    If the host name is not pingable, bind the local IP address to the /etc/hosts file. Each ECS machine has a binding relationship between the local IP address and the host name by default, and do not remove it manually.

  3. Confirm system configuration

    Check if the hostname in /etc/sysconfig/network is consistent with the host name bound in /etc/hosts. If inconsistent, please modify it. After modifying the content in /etc/sysconfig/network, restart the machine for the modification to take effect. You’re not encouranged to modify configurations in a system file, because it may cause other exceptions.

After taking these three steps, the UnknownHostException exception will not be returned when the client starts.

Thank you! We've received your feedback.