HOW TO FIX UPSTREAM TIMED OUT (110: CONNECTION TIMED OUT) ERROR IN VESTACP NGINX

December 17, 2015   /   by Marco  / Categories :  Software
HOW TO FIX UPSTREAM TIMED OUT (110- CONNECTION TIMED OUT) ERROR IN VESTACP NGINX

This was the most annoying issue I’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 upstream, client: x.x.x.x, server: example.com, request:

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’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

HOW TO FIX UPSTREAM TIMED OUT 110 CONNECTION TIMED OUT ERROR IN VESTACP NGINX

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 service nginx restart) and running the import, it worked!

 

DO YOU LIKE WHAT YOU'VE READ?
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!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


HOW TO CHANGE THE SEND FROM NAME IN ZOHO MAIL

HOW TO CHANGE THE SEND FROM NAME IN ZOHO MAIL

So I spent hours trying to resolve this and finally managed to land on the correct instructions and decided to share it with my readers. I use ZOHO MAIL for email hosting on some of my domain names and when I tried sending an email from one of the accounts, the FROM name was not […]

read more

How To Create a Firefox Offline Mode Batch File

For those of you who don’t know, Firefox has an OFFLINE mode where you can use this to display cached content if the website is down. I’ve managed to create a little batch file that checks whether the website is down and then it loads the OFFLINE website (note you must have previously visited the […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

Social Wall Social Wall

site auditing tools