{"id":16648,"date":"2018-08-03T12:40:04","date_gmt":"2018-08-03T17:40:04","guid":{"rendered":"https:\/\/www.dotcom-tools.com\/blog\/?p=16648"},"modified":"2021-11-17T02:03:43","modified_gmt":"2021-11-17T08:03:43","slug":"504-errors-fix-it-fast","status":"publish","type":"post","link":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/","title":{"rendered":"504 Error &#8211; HTTP Bad Gateway Timeout &#8211; Fix It Fast!"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<h2><img loading=\"lazy\" class=\"aligncenter size-full wp-image-16651\" src=\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg\" alt=\"504 Errors -timeout - fix it\" width=\"900\" height=\"400\" srcset=\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg 900w, https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix-350x156.jpg 350w, https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix-768x341.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/h2>\n<h2><\/h2>\n<h2>504 Error \u2013 HTTP Bad Gateway Timeout<\/h2>\n<p>Technology. When it\u2019s good, it\u2019s great, but when it\u2019s bad, it\u2019s a pain in the you-know-what.<\/p>\n<p>There\u2019s nothing as frustrating and confusing as a fully functioning website one minute, followed by a completely inaccessible site the next. As you sit in disbelief trying to recount your previous front or backend adjustments, your mind can\u2019t help but wander to the land of despair.<\/p>\n<p>Few website errors elicit such deep-rooted feelings of anger and disbelief as a 504 Gateway Timeout error. This HTTP status code error basically means there\u2019s trouble in server paradise.<\/p>\n<p>The 504 Gateway Timeout Error is one of the more commonly seen HTTP status codes delivered by servers in response to a client\u2019s actions or requests. The 500 series status codes are similar to the 400 series codes in that they are true error codes, occurring when the server cannot fulfill a request due to an unexpected issue.<\/p>\n<p>In clearer terms, a 504 HTTP Bad Gateway Timeout error refers to a server-side connection issue. This situation occurs when one server failed to make a solid connection with another server within a specified amount of time while attempting to load a web page or execute an end-user browser request.<\/p>\n<p>Need an even simpler definition for the 504 HTTP Bad Gateway Timeout Error?\u00a0 Okay, here it is:<\/p>\n<p>504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond, creating an error status code. Essentially, this is a digital form of a friend ignoring your phone calls, even though you know they\u2019re home and available.<\/p>\n<p>So, what do you do when your browser screen delivers this unfortunate error message? As with many server-side issues, the first step in fixing the error is understanding the most <a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/server-issues-lower-wordpress-performance\/\" target=\"_blank\" rel=\"noopener noreferrer\">common causes<\/a> and then troubleshooting each one until the error is resolved.<\/p>\n<h2>The Cold Shoulder &#8211; An Overview of 504 Errors<\/h2>\n<p>While we may never fully understand why a friend gives you the cold shoulder, thankfully, computers are slightly more predictable. To uncover the culprit of this server-to-server silent treatment, let\u2019s take a deeper look at the underlying causes of 504 Errors.<\/p>\n<p>It\u2019s important to note 504 Bad Gateway Timeouts can be referenced in multiple ways. The most common include:<\/p>\n<ul>\n<li>504 Gateway Timeout<\/li>\n<li>HTTP 504<\/li>\n<li>Gateway Timeout (504)<\/li>\n<li>HTTP Error 504 &#8211; Gateway Timeout<\/li>\n<\/ul>\n<p>Regardless of how your browser displays the error, as long as it features the numerical sequence 504, it&#8217;s referring to the same underlying error. Unlike other server-side issues, 504 Gateway Timeout Errors occur on any Internet-connected device, powered by any operating system and rendered on literally any browser.<\/p>\n<p>Unlike other server-side errors, such as the dreaded <a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/502-bad-gateway-wordpress-fix-it-fast\/\" target=\"_blank\" rel=\"noopener noreferrer\">502 Bad Gateway Error<\/a>, 504 errors are caused by two separated servers working together to execute a task.<\/p>\n<p>For example, a configuration that commonly encounters this error is an <a href=\"https:\/\/www.nginx.com\/resources\/glossary\/nginx\/\" target=\"_blank\" rel=\"noopener noreferrer\">NginX front-end server<\/a>, which is an open-source platform used primarily as a proxy server, that must work with a back-end server, such as Apache. When an NginX server receives a request from your web browser, it doesn\u2019t process the request. Instead, NginX acts as the intermediary, or gateway, to the back-end Apache server.<\/p>\n<p>When the Apache server fails to respond in the approved timeframe, the NginX server delivers a 504 error message back to your web browser. There are a several reasons why this connection failed, which include:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/common-problems-with-dns\/\" target=\"_blank\" rel=\"noopener noreferrer\">DNS Errors<\/a><\/li>\n<li>Network Connection Issues (dropped connections)<\/li>\n<li>Web Server Performance Issues (slow <a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/types-of-web-hosting-plans-impact-site-speed\/\" target=\"_blank\" rel=\"noopener noreferrer\">web hosting server<\/a>)<\/li>\n<li>Firewall Configuration Compatibility Issues (blocked connection)<\/li>\n<\/ul>\n<h2>How to Fix 504 Gateway Timeout Error Fast!<\/h2>\n<p>While it may feel as if your site is destined to remain in the dark, fixing a 504 Gateway Timeout Error isn\u2019t as complicated or time-consuming as you may assume.<\/p>\n<ol>\n<li><strong>Refresh the Web Page &#8211;<\/strong> While this may seem too simple, many times the 504 error was a one-time error due to a blip in network connections. Always attempt to refresh the page before moving to the next step.<\/li>\n<li><strong>Restart Network Connections &#8211;<\/strong> Since the fundamental culprit of a 504 error is an improper connection, or a lack of connectivity, restarting your wireless router, modem, or even your computer&#8217;s Wi-Fi connection, often clears the 504 error. Remember, when restarting your wireless router or modem, completely unplug the device and wait up to 5 minutes before turning it back on. This performs a hard IP address reset.<\/li>\n<li><strong>Confirm Proxy Server Settings &#8211;<\/strong> Incorrect proxy settings often result in the common 504 error appearing. If you aren\u2019t sure what your proxy server settings should be, <a href=\"http:\/\/proxy.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">check out this official list<\/a> or contact your hosting provider.<\/li>\n<li><strong>Adjust DNS Server Settings &#8211;<\/strong> Sometimes DNS servers can be the cause of a 504 error. While this isn\u2019t exactly a rare cause, if other devices or websites load without delivering a 504 error, then this isn\u2019t the likely culprit.<\/li>\n<li><strong>Check Firewall Settings &#8211;<\/strong> The 504 Gateway Error could occur due to your general firewall settings.\u00a0 Make sure your firewall is properly configured to allow necessary server connections. Review the firewall blocks and confirm that your site, or the site you wish to visit, isn\u2019t accidentally being blocked as a security measure.<\/li>\n<li><strong>Timeout Configuration &#8211;<\/strong> If the 504 error occurs when a proxy and web server attempt to make a connection, verify the proxy timeout configuration offers ample time. In some cases, the timeout limit is too quick to allow a connection. Simply increase the duration and try to access the web page or execute the command again.<\/li>\n<\/ol>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_cta h2=&#8221;Free Website Speed Test&#8221; add_button=&#8221;right&#8221; btn_title=&#8221;Test Now&#8221; btn_color=&#8221;green&#8221; btn_link=&#8221;url:https%3A%2F%2Fwww.dotcom-tools.com%2Fwebsite-speed-test.aspx||target:%20_blank|&#8221; css=&#8221;.vc_custom_1557167055903{background-color: #e8cdc6 !important;}&#8221;]Test and analyze your website&#8217;s speed with Dotcom-Tools[\/vc_cta][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] 504 Error \u2013 HTTP Bad Gateway Timeout Technology. When it\u2019s good, it\u2019s great, but when it\u2019s bad, it\u2019s a pain in the you-know-what. There\u2019s nothing as frustrating and confusing as a fully functioning website one minute, followed by a completely inaccessible site the next. As you sit in disbelief trying to recount your previous&hellip;<\/p>\n","protected":false},"author":4,"featured_media":16651,"comment_status":"open","ping_status":"open","sticky":false,"template":"template-url.php","format":"standard","meta":[],"categories":[40],"tags":[42,69,47,65,79,62,77,70,71],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.6 (Yoast SEO v19.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>504 Errors - HTTP Bad Gateway Timeout - Fix It Fast! | Dotcom-Tools Blog<\/title>\r\n<meta name=\"description\" content=\"504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond. Like a friend ignoring your calls when they&#039;re available.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"504 Error - HTTP Bad Gateway Timeout - Fix It Fast!\" \/>\r\n<meta property=\"og:description\" content=\"504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond. Like a friend ignoring your calls when they&#039;re available.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dotcom-Monitor Tools Blog\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dotcommonitor\" \/>\r\n<meta property=\"article:published_time\" content=\"2018-08-03T17:40:04+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2021-11-17T08:03:43+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg\" \/>\r\n\t<meta property=\"og:image:width\" content=\"900\" \/>\r\n\t<meta property=\"og:image:height\" content=\"400\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\r\n<meta name=\"twitter:card\" content=\"summary\" \/>\r\n<meta name=\"twitter:creator\" content=\"@dotcom_monitor\" \/>\r\n<meta name=\"twitter:site\" content=\"@dotcom_monitor\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dotcom Tools\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#website\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/\",\"name\":\"Dotcom-Monitor Tools Blog\",\"description\":\"Let&#039;s Make the Web a Faster Place.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dotcom-tools.com\/web-performance\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#primaryimage\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg\",\"contentUrl\":\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg\",\"width\":900,\"height\":400,\"caption\":\"504 Errors -timeout - fix it\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#webpage\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/\",\"name\":\"504 Errors - HTTP Bad Gateway Timeout - Fix It Fast! | Dotcom-Tools Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#primaryimage\"},\"datePublished\":\"2018-08-03T17:40:04+00:00\",\"dateModified\":\"2021-11-17T08:03:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/fc3817a27d5f197cdce885b756f09c57\"},\"description\":\"504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond. Like a friend ignoring your calls when they're available.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dotcom-tools.com\/web-performance\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"504 Error &#8211; HTTP Bad Gateway Timeout &#8211; Fix It Fast!\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/fc3817a27d5f197cdce885b756f09c57\",\"name\":\"Dotcom Tools\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a878bd57f8e4ebfbb87da7f8df9f90ee?s=96&d=retro&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a878bd57f8e4ebfbb87da7f8df9f90ee?s=96&d=retro&r=pg\",\"caption\":\"Dotcom Tools\"},\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/author\/dotcom-tools\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"504 Errors - HTTP Bad Gateway Timeout - Fix It Fast! | Dotcom-Tools Blog","description":"504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond. Like a friend ignoring your calls when they're available.","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.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/","og_locale":"en_US","og_type":"article","og_title":"504 Error - HTTP Bad Gateway Timeout - Fix It Fast!","og_description":"504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond. Like a friend ignoring your calls when they're available.","og_url":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/","og_site_name":"Dotcom-Monitor Tools Blog","article_publisher":"https:\/\/www.facebook.com\/dotcommonitor","article_published_time":"2018-08-03T17:40:04+00:00","article_modified_time":"2021-11-17T08:03:43+00:00","og_image":[{"width":900,"height":400,"url":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg","type":"image\/jpeg"}],"twitter_card":"summary","twitter_creator":"@dotcom_monitor","twitter_site":"@dotcom_monitor","twitter_misc":{"Written by":"Dotcom Tools","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#website","url":"https:\/\/www.dotcom-tools.com\/web-performance\/","name":"Dotcom-Monitor Tools Blog","description":"Let&#039;s Make the Web a Faster Place.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dotcom-tools.com\/web-performance\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#primaryimage","url":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg","contentUrl":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2018\/08\/504-Error-timeout-fix.jpg","width":900,"height":400,"caption":"504 Errors -timeout - fix it"},{"@type":"WebPage","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#webpage","url":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/","name":"504 Errors - HTTP Bad Gateway Timeout - Fix It Fast! | Dotcom-Tools Blog","isPartOf":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#primaryimage"},"datePublished":"2018-08-03T17:40:04+00:00","dateModified":"2021-11-17T08:03:43+00:00","author":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/fc3817a27d5f197cdce885b756f09c57"},"description":"504 errors only occur when Server A sends a request to Server B, but Server B doesn\u2019t respond. Like a friend ignoring your calls when they're available.","breadcrumb":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/504-errors-fix-it-fast\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dotcom-tools.com\/web-performance\/"},{"@type":"ListItem","position":2,"name":"504 Error &#8211; HTTP Bad Gateway Timeout &#8211; Fix It Fast!"}]},{"@type":"Person","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/fc3817a27d5f197cdce885b756f09c57","name":"Dotcom Tools","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a878bd57f8e4ebfbb87da7f8df9f90ee?s=96&d=retro&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a878bd57f8e4ebfbb87da7f8df9f90ee?s=96&d=retro&r=pg","caption":"Dotcom Tools"},"url":"https:\/\/www.dotcom-tools.com\/web-performance\/author\/dotcom-tools\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts\/16648"}],"collection":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/comments?post=16648"}],"version-history":[{"count":11,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts\/16648\/revisions"}],"predecessor-version":[{"id":17738,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts\/16648\/revisions\/17738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/media\/16651"}],"wp:attachment":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/media?parent=16648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/categories?post=16648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/tags?post=16648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}