<input type="hidden" id="_wpnonce" name="_wpnonce" value="0f153c9372" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/4059" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="0f153c9372" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/4059" />{"id":4059,"date":"2015-12-17T16:36:20","date_gmt":"2015-12-17T05:36:20","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=4059"},"modified":"2019-11-03T18:13:56","modified_gmt":"2019-11-03T07:13:56","slug":"how-to-fix-upstream-timed-out-110-connection-timed-out-error-in-vestacp-nginx","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2015\/12\/17\/how-to-fix-upstream-timed-out-110-connection-timed-out-error-in-vestacp-nginx\/","title":{"rendered":"HOW TO FIX UPSTREAM TIMED OUT (110: CONNECTION TIMED OUT) ERROR IN VESTACP NGINX"},"content":{"rendered":"<!--CusAds0--><p>This was the most annoying issue I&#8217;ve ever experienced. I had to import large XML files into a SQL database using a WordPress plugin and kept getting the 500 Internal Server Error message. When I checked the error log I noticed this:<\/p>\n<p>*<em>19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: x.x.x.x, server: example.com, request:<\/em><\/p>\n<p>The VPS hosting for this domain has 4GB of memory so I knew that memory was not the issue. I even updated the php.ini file to increase the maximum timeout but this also didn&#8217;t fix the issue. The only way to solve this issue was to increase the nginx proxy timeout value in \/etc\/nginx\/nginx.conf from 90 to 300<\/p><!--CusAds0-->\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4062\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1.png?strip=all\" alt=\"HOW TO FIX UPSTREAM TIMED OUT 110 CONNECTION TIMED OUT ERROR IN VESTACP NGINX\" width=\"830\" height=\"276\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1.png?strip=all 830w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1-300x100.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1-178x59.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1.png?strip=all&amp;w=498 498w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2015\/12\/HOW-TO-FIX-UPSTREAM-TIMED-OUT-110-CONNECTION-TIMED-OUT-ERROR-IN-VESTACP-NGINX1.png?strip=all&amp;w=664 664w\" sizes=\"(max-width: 830px) 100vw, 830px\" \/><\/a><\/p>\n<p>I also ended up changing the proxy_send_timeout and proxy_read_timeout values to 300. After restarting the VPS (can always use the command <em>service nginx restart<\/em>) and running the import, it worked!<\/p>\n<p>&nbsp;<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>This was the most annoying issue I&#8217;ve ever experienced. I had to import large XML files into a SQL database using a WordPress plugin and kept getting the 500 Internal Server Error message. When I checked the error log I noticed this: *19 upstream timed out (110: Connection timed out) while reading response header from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4064,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[830],"tags":[12,1624,1990,1989,1991,1992,1968,303],"class_list":["post-4059","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-technology","tag-connection","tag-fix","tag-hosting","tag-nginx","tag-timeout","tag-upstream","tag-vestacp","tag-vps"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/4059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=4059"}],"version-history":[{"count":4,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/4059\/revisions"}],"predecessor-version":[{"id":27677,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/4059\/revisions\/27677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/4064"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=4059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=4059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=4059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}