A user reported an issue with multiple image uploads failing due to a 20-second timeout error during PNG to JPG conversion Don. The issue was traced to slow processing on underpowered servers, particularly when handling ~6MB images. Sam investigated, confirming the commands take minimal time on a standard setup, and suggested a longer timeout setting might be considered. The user later resolved the issue after upgrading to a more powerful server with a Premium Intel CPU, indicating the problem was hardware-related Don. Sam confirmed the timeout is necessary to prevent server overload on low-resource instances.
Oh this is tricky, I want to debug locally. Can you upload one of the original images somewhere for me to download so I can test how long the various image magick commands take.
I can consider adding a “longer timeout” site setting, but I am somewhat concerned converting this simple image from png → jpg is taking upwards of 10 seconds.
Thank you Sam, to checked this. Yes standard docker install. Yesterday I upgraded the server because so much slow down the whole website also… And did a rebuild. With the server upgrade it works fine. Just tested now. Digital Ocean has a new plan about 2 month with Premium Intel CPU and the other which we had the Regular getting much weaker.
The old server
Basic - Shared CPU 2 vCPUs 4 GB 60 GB
The new server
Basic - Premium Intel Shared CPU 2 vCPUs 4 GB 60 GB
Sorry for this topic. 20 seconds is enough. And thank you again!
If we do not timeout there is high risk that these under powered instances could get dominated by users uploading images. 20 seconds is a huge amount of CPU to give people for resizing images.