• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

unknown hostname -- causing updater to fail

S

screamv

Guest
Hello, I am trying to use the updater to upgrade to 8.1. The auto installer craps out because:

Hostname check failed. Autoinstaller will try to continue installation without hostname checking.

When I run a hostname -f, it returns:

hostname: Unknown host

I made certain that I have a hostname in my Plesk server preferances.

Any ideas on how I can get the hostname in there?

Thanks!
 
find out what the reverse dns for your ip is (dnsstuff.com)

make sure your /etc/hosts file looks similar to this (fill in 2nd line with your own info):

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
a.b.c.d myserver.somedomain.com myserver


If that DOES NOT work:

Not sure if this was necessary (and there might be a better way to do this) but I wound up putting the hostname statement in my startup script (/etc/rc.local) with command "hostname myserver.somedomain.com"
 
Back
Top