rails: Active Storage: FileNotFoundError on AnalyzeJob and resulting/being cause of missing image
I’m currently having an issue when trying to upload and subsequently retrieve an image linked to a record. I’m manually assigning the image to the entity as in @entity.main_image = params[:main_image]
being main_image
the value of a file field. Later even after the browser successfully redirected me to the success page I get the following error in the console
[ActiveJob] [ActiveStorage::AnalyzeJob] [dd84c5a8-7a93-4f08-9198-b5236bf2ae66] Error performing ActiveStorage::AnalyzeJob (Job ID: dd84c5a8-7a93-4f08-9198-b5236bf2ae66) from Async(default) in 5.39ms: ActiveStorage::FileNotFoundError (ActiveStorage::FileNotFoundError):
As a testing stance I created a dummy app and used the same set up and gem versions but everything ran smoothly then.
Steps to reproduce
- Integrate Activerecord normally
- Upload an image
- Assign image manually
Expected behavior
- AnalyzeJob should finish correctly and Image should be retrievable
Actual behavior
- AnnalyzeJob fails with FileNotFoundError and Image is not retrievable
System configuration
Rails version: 6.0.22
Ruby version: 2.6.5
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (8 by maintainers)
Sorry 😅. I created the GCP account but ended completely forgetting about this due to other things. I’ll add it back to my list, since there’s discussion about moving our app from AWS to GCP.