In the past couple of weeks, we have started noticing extremely slow upload times on our site for attachements, and sometimes the upload even times out (see related logs below). My setup is digital ocean space for s3, and bunny.net for CDN. I also turned on the new
composer media optimization image enabled, but I think it was happening before this. It’s a bit hit and miss trying to repro this problem. Any ideas?
DistributedMutex("optimized_image_32792_50_33"): held for too long, expected max: 60 secs, took an extra 66 secs Message (122 copies reported) DistributedMutex("optimized_image_32792_50_33"): held for too long, expected max: 60 secs, took an extra 66 secs Backtrace /var/www/discourse/lib/distributed_mutex.rb:54:in `warn' /var/www/discourse/lib/distributed_mutex.rb:37:in `block in synchronize' /var/www/discourse/lib/distributed_mutex.rb:29:in `synchronize' /var/www/discourse/lib/distributed_mutex.rb:29:in `synchronize' /var/www/discourse/lib/distributed_mutex.rb:14:in `synchronize' /var/www/discourse/app/models/optimized_image.rb:18:in `lock' /var/www/discourse/app/models/optimized_image.rb:68:in `create_for' /var/www/discourse/app/models/topic_thumbnail.rb:21:in `find_or_create_for!' /var/www/discourse/app/models/topic.rb:104:in `block in generate_thumbnails!' /var/www/discourse/app/models/topic.rb:103:in `each'