I am using Dragonfly with Nginx, unicorn and mini_magick. I am using mem_cache_store in production.
Image upload and display works fine in development environment. But on production it fails with internal server error 500. I cannot see any logs on my production log, but it fails on production.
I get error for URLs of following type. http://cdn.mydomain.com/media/BAhbB1sHOgZmSSIoMTAvcHJvZHVjdHMvMjUvR3JvdW5kJTIwbnV0XzQwOS5qcGcGOgZFVFsIOgZwOgp0aHVtYkkiCjUweDUwBjsGVA.jpg
Error code is 500
I ve been searching all the documentation which comes along with the gem. I can see the following middleware on top of the middleware stack in production as well:
use Rack::Cache
use Dragonfly::CookieMonster
use Dragonfly::Middleware
I could not get much help from forums - though there is a similar bug posted 2 years ago and is supposed to be fixed. And fixes there also did not help.
Please help to fix this. Any direction as to how I can debug this would also help.