I use Paperclip with ImageMagick to process several thousand images and upload them to S3. It goes through hundreds of images without problems, and then gives this error:
An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the define command. Please install ImageMagick> command. Please install ImageMagick>
I saw other questions referencing this error, but it seems strange to me that it can process perfectly for one second, and then the next one will not be able to find ImageMagick. I process Sidekiq with 25 parallel workers.
It is interesting to note that when sidekiq is turned off and restarted, it starts working again.
source share