{"id":3048,"date":"2020-04-24T01:40:56","date_gmt":"2020-04-23T20:10:56","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=3048"},"modified":"2020-04-24T01:40:59","modified_gmt":"2020-04-23T20:10:59","slug":"error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/","title":{"rendered":"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes"},"content":{"rendered":"\n<p>Sometimes inside WHM when clicking the \u201cchange hostname\u201d link or by running <em>\/<\/em>usr<em>\/local\/<\/em>cpanel<em>\/bin\/set_hostname yourhostname.first2host.co.uk<\/em> you may get presented with the following error message:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"Your previous attempt to change the hostname is still running. Please wait until it completes\"<\/pre>\n\n\n\n<p>This happens when the server has attempted to change the hostname but the result has not completed correctly. This could be because the server rebooted or your servers Kernel might be outdated.<\/p>\n\n\n\n<p>You should first check your Kernel version and update to the latest version. Next, cPanel stored a \u201clock\u201d file in the application-locks folder. Remove it with the below command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rm -rf \/var\/cpanel\/.application-locks\/UpdateHostname<\/pre>\n\n\n\n<p>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 \u201cchange hostname\u201d link or from an ssh console whilst logged in as the root user using the below command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/local\/cpanel\/bin\/set_hostname yourhostname.first2host.co.uk<\/pre>\n\n\n\n<p>Remember, your hostname needs to be an FQDM which means it should have two \u201c.\u201d in it. for example, server.yoursite.com would be acceptable but just server would not be.<\/p>\n\n\n\n<p>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:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/local\/cpanel\/bin\/checkallsslcerts<\/pre>\n\n\n\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes inside WHM when clicking the \u201cchange hostname\u201d link or by running \/usr\/local\/cpanel\/bin\/set_hostname yourhostname.first2host.co.uk you may get presented with the following error message: &#8220;Your previous attempt to change the hostname is still running. Please wait until it completes&#8221; This happens when the server has attempted to change the hostname but the result has not completed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30,38,33],"tags":[],"class_list":["post-3048","post","type-post","status-publish","format-standard","hentry","category-centos","category-cloudlinux","category-cpanel"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes | 24x7serversupport Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"Sometimes inside WHM when clicking the \u201cchange hostname\u201d link or by running \/usr\/local\/cpanel\/bin\/set_hostname yourhostname.first2host.co.uk you may get presented with the following error message: &quot;Your previous attempt to change the hostname is still running. Please wait until it completes&quot; This happens when the server has attempted to change the hostname but the result has not completed [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-23T20:10:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-23T20:10:59+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/\",\"name\":\"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2020-04-23T20:10:56+00:00\",\"dateModified\":\"2020-04-23T20:10:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes | 24x7serversupport Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/","og_locale":"en_US","og_type":"article","og_title":"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes | 24x7serversupport Blog","og_description":"Sometimes inside WHM when clicking the \u201cchange hostname\u201d link or by running \/usr\/local\/cpanel\/bin\/set_hostname yourhostname.first2host.co.uk you may get presented with the following error message: \"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 [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/","og_site_name":"24x7serversupport Blog","article_published_time":"2020-04-23T20:10:56+00:00","article_modified_time":"2020-04-23T20:10:59+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/","url":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/","name":"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2020-04-23T20:10:56+00:00","dateModified":"2020-04-23T20:10:59+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/error-when-changing-hostname-your-previous-attempt-to-change-the-hostname-is-still-running-please-wait-until-it-completes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Error when changing Hostname \u2013 Your previous attempt to change the hostname is still running. Please wait until it completes"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=3048"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3048\/revisions"}],"predecessor-version":[{"id":3049,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3048\/revisions\/3049"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=3048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=3048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=3048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}