Title: Internal Error: Gateway Timeout
Last modified: June 26, 2019

---

# Internal Error: Gateway Timeout

 *  Resolved [markdaviesonholiday](https://wordpress.org/support/users/markdaviesonholiday/)
 * (@markdaviesonholiday)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/)
 * Hi there,
 * I’m trying to run the bulk optimizer on an nginx / php5 server, and after one
   or two images are compressed successfully I start getting Gateway timeout errors,
   and then I think PHPFPM crashes. I have to restart the server again as it’s non-
   responsive to HTTP (although I can still SSH in).
 * In the nginx error logs I see:
    upstream timed out (110: Connection timed out)
   while reading response header from upstream
 * Any idea why this would happen or how I could start debugging? I’ve restarted
   the server 3 times now, so it’s a consistent issue for me.
 * Thanks very much,
    Mark

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Tinify](https://wordpress.org/support/users/tinify/)
 * (@tinify)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11677596)
 * Hi Mark,
 * We would be happy to help could you please send your php info output to [support@tinify.com](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/support@tinify.com?output_format=md)
 *  [archimedes144](https://wordpress.org/support/users/archimedes144/)
 * (@archimedes144)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11711869)
 * i am having the same problem – every time when i use the plugin i‘am getting 
   a 504 error for a while, ngix is recovering itself after a few minutes…
 * Thx for help, Alex
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11713531)
 * [@archimedes144](https://wordpress.org/support/users/archimedes144/)
 * Hi Alex,
 * Sorry to hear this.
 * Could you also contact us on [support@tinify.com](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/support@tinify.com?output_format=md)?
 * Also, your php info output would be helpful.
 * On a sidenote this could be related to a pending issue with slower performance
   during peak hours that could lead to these timeouts. We are currently investigating
   this.
 * Hope to hear from you soon!
 *  [mattce](https://wordpress.org/support/users/mattce/)
 * (@mattce)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11716170)
 * I’ve also got massive problems using this plugin for bulk optimization. When 
   the progress is running, my whole site becomes so slow, that it’s not possible
   to open any further pages on the frontend. And after a few optimiations I get“
   Empty reply from server” errors on the tinypng backend page.
 * My site is running on a very powerful root server, more than enough resources
   and high limits for php, so I cannot believe that it’s a serverside problem, 
   to be honest. PHP Version 7.2.0, Memory Limit 1024M.
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11717879)
 * [@mattce](https://wordpress.org/support/users/mattce/)
 * Hi,
 * We are currently investigating a problem with slower API performance during peak
   hours. This could be related to the errors that you are receiving. Could you 
   try increasing your PHP max_execution_tim to at least 120 seconds?
 * If you keep getting these errors, would it be possible for you to contact us 
   on [support@tinify.com](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/support@tinify.com?output_format=md)
   with as much information as possible so we can investigate further?
 * Hope to hear from you soon!
 *  [Mohsin Alam](https://wordpress.org/support/users/mohsinworld/)
 * (@mohsinworld)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11769030)
 * I face this same problem for almost one year! Please do something, I’m a free
   subscriber.
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11769761)
 * Hi [@mohsinworld](https://wordpress.org/support/users/mohsinworld/),
 * We have made some improvements to the services in the last 2 weeks which should
   have solved the majority of connectivity issues.
 * That said if you are still experiencing them could you please send us an email
   to [support@tinify.com](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/support@tinify.com?output_format=md)
   with all relevant information so that we can assist you further?
 * Thanks!
 *  [Mohsin Alam](https://wordpress.org/support/users/mohsinworld/)
 * (@mohsinworld)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11845934)
 * Facing the same issue!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Internal Error: Gateway Timeout’ is closed to new replies.

 * ![](https://ps.w.org/tiny-compress-images/assets/icon-256x256.png?rev=3448487)
 * [TinyPNG - JPEG, PNG & WebP image compression](https://wordpress.org/plugins/tiny-compress-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiny-compress-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiny-compress-images/)
 * [Active Topics](https://wordpress.org/support/plugin/tiny-compress-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiny-compress-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiny-compress-images/reviews/)

## Tags

 * [not responding](https://wordpress.org/support/topic-tag/not-responding/)
 * [site down](https://wordpress.org/support/topic-tag/site-down/)
 * [slow down](https://wordpress.org/support/topic-tag/slow-down/)

 * 8 replies
 * 6 participants
 * Last reply from: [Mohsin Alam](https://wordpress.org/support/users/mohsinworld/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/internal-error-gateway-timeout-2/#post-11845934)
 * Status: resolved