Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Job failed to load: undefined class/module DelayedPaperclip #212

Open
A9u opened this issue Dec 12, 2017 · 0 comments
Open

Job failed to load: undefined class/module DelayedPaperclip #212

A9u opened this issue Dec 12, 2017 · 0 comments

Comments

@A9u
Copy link

A9u commented Dec 12, 2017

We have bulk image upload to S3 using delayed_job. For a single image, it is working correctly.

However, in case of multiple, only the first image gets uploaded to s3 and for the remaining images, I get the following error -
Job failed to load: undefined class/module DelayedPaperclip::. Handler: \"--- !ruby/struct:DelayedPaperclip::Jobs::DelayedJob\\ninstance_klass: Photo\\ninstance_id: 133298\\nattachment_name: :image\\n

We have one dedicated server for delayed_job and one for application server. So there are 2 issues here-

  1. If an image is uploaded to the app server, then how would the delayed_job server upload the file to S3? But then why is it working for a single image and 1st file in case of multiple image upload?
  2. Considering that delayed_job server doesn't get the file, then the error should have been something like 'file not found', why is it "undefined class/module DelayedPaperclip".
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant