Error when changing Hostname – Your previous attempt to change the hostname is still running. Please wait until it completes
Sometimes inside WHM when clicking the “change hostname” link or by running /usr/local/cpanel/bin/set_hostname yourhostname.first2host.co.uk you may get presented with the following error message:
Hostname is still running
"Your previous attempt to change the hostname is still running. Please wait until it completes"
This happens when the server has attempted to change the hostname but the result has not completed correctly. This could be because the cPanel server rebooted or your servers Kernel might be outdated.
Check Kernel Version
You should first check your Kernel version and update the kernel to the latest version. Next, cPanel stored a “lock” file in the application-locks folder. Remove it with the below command:
rm -rf /var/cpanel/.application-locks/UpdateHostname
If you updated your Kernel now is the time to reboot your system but if you made no changes to the Kernel you can now try to set the hostname from WHM and by clicking the “change hostname” link or from an ssh console whilst logged in as the root user using the below command:
Remember, your hostname needs to be an FQDM which means it should have two “.” in it. for example, server.yoursite.com would be acceptable but just server would not be.
If you have changed your hostname you will need to get a new SSL certificate from the cPanel store. You can do this from an ssh console with the below command:
Assuming your hostname is an FQDM and your domain name resolves correctly to your server you will be granted an SSL certificate and any security warnings will disappear.
How was this article? – Error when changing Hostname Your previous attempt to change the hostname is still running. Please wait until it completes
You might also like
More from cPanel
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …
cPanel Backups Per Account or Entire MySQL Directory? The integrated cPanel backups system allows you to take a backup of each …