Closed IanMenzies closed 3 years ago
502 means bad gateway. likely this means that php crashes and then nginx returns the 502.
this is not supposed to happen, but no idea why it happens on your system. do you get any logs from php that might explain what happens?
Uploading images greater than 5MB is fine, however when displaying them, even after warming the cache and applying filters as stated below, I'm getting a 502 gateway error for approx 5 minutes till the image are processed.
Should be noted that the image urls are generated in the backend and the urls are passed to the frontend via an API. To generate the urls I'm using the below code: $venueImage = $this->filterService->getUrlOfFilteredImage($imageUrl, $filter)
Preconditions
Steps to reproduce
PHP upload.ini file:
My Nginx conf:
Configuration settings:
The above configuration works fine until images are greater than 5MB. I've added a cache warmer as shown below in an attempt to improve performance:
Expected result
Actual result
Any idea on what might be going on here? And is this expected behavior? If I can't resolve this issue is there an alternative solution that wont cause 502 errors.
Example image causing problem