Issue with pre upgrade check tool: Unable to get hostname

Created:

2016-11-16 13:04:51 UTC

Modified:

2017-08-08 13:44:19 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Issue with pre upgrade check tool: Unable to get hostname

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Pre-upgrade check tool, but we facing an error:

[2016-09-20 11:21:52][INFO] STEP 2: Validate hostname...
[2016-09-20 11:21:52][FATAL_ERROR] Command: hostname -f returns:
Hostname is not defined and configured. Unable to get hostname. Server should have properly configured hostname and it should be resolved locally.

Cause

The hostname is not defined in /etc/hosts .

Resolution

Add the hostname:

# echo "203.0.113.2 server.example.com server" >> /etc/hosts

Note: replace IP address and DNS name with the actual ones.

Have more questions? Submit a request
Please sign in to leave a comment.