HOW TO FIX UPSTREAM TIMED OUT (110: CONNECTION TIMED OUT) ERROR IN VESTACP NGINXDecember 17, 2015 / by Marco / Categories : Software
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
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!
- Advertise Me Pty Ltd
Digital Signage Solutions
Limit to 5 sponsors.
OTHER ARTICLES YOU MAY LIKE
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
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