Closed jaybloke closed 8 years ago
Are you sure that this is delayed_paperclip issue? It may be related to https://github.com/thoughtbot/paperclip/pull/1993/files When you disable background processing, is the original file stored?
I can confirm that when background processing is disabled and only_process: [:small, :small_webp] is present on the model, the original file is not stored... however, the two :small and :small_webp styles are created.
Then I would look into paperclip codebase and eventually open an issue there. I'm pretty sure it was introduced in https://github.com/thoughtbot/paperclip/pull/1993/files
Thanks @morgoth for the pointers. I will take a look at the code.
Cheers!
For some reason, the delayed_paperclip is not storing the original file... only the styles listed in the only_process array are created.
The delayed job subsequently fails for the other styles as it cannot find the original file...
Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/Home/Dev/app/public/system/images/project_photographs/images/000/000/400/d275126025f8f2ca44c7685dc36b4614058765f7.jpg
Looks like a bug using Paperclip 5.1.0 and Delayed Paperclip 3.0.1. Downgraded to Paperclip 5.0.0 and Delayed Paperclip 3.0.0 and all works fine.
Currently using:
Rails 4.2.7.1 Delayed Paperclip 3.0.1 Paperclip 5.1.0 Sidekiq 4.2.2
Model:
Controller action:
development.rb