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 time d 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 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
HOW TO FIX: LOW DISK SPACE ERROR MESSAGE AFTER WINDOWS 10 UPDATE

HOW TO FIX: LOW DISK SPACE ERROR MESSAGE AFTER WINDOWS 10 UPDATE

I recently had to perform a Windows 10 Update (had no choice). After the update I kept on getting this error message: Low Disk Space You are running out of disk space on Local Disk (D:). Click here to see if you can free space on this drive. This new drive didn’t exist before the […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

Social Wall Social Wall