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