when I tried to upload an image it gives 502 Bad gateway error. My website failed to load for 5 minutes. When I tried to upload the same image here, I got following message
Sorry, the image you are trying to upload is too large (maximum dimension is 40-megapixels), please resize it and try again.
Why I am getting a bad gateway error. My server is an aws ec2 instance with 1 GB ram. I use cloudflare cdn as well.
Here is error log:
The last warning in the log keep reappear since first install.