Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Imports are failing in production #793

Open
CraigJZ opened this issue Sep 11, 2021 · 2 comments
Open

Model Imports are failing in production #793

CraigJZ opened this issue Sep 11, 2021 · 2 comments

Comments

@CraigJZ
Copy link
Collaborator

CraigJZ commented Sep 11, 2021

The CSV Upload tool for Animals, Enclosures and Cohorts is working in development but failing in production with the following error:

Error performing ImportAnimalsJob (Job ID: 123456789) from DelayedJob(default) in 5.79ms: ActiveStorage::FileNotFoundError (ActiveStorage::FileNotFoundError)

We will need to determine what is happening in production to cause this failure and refactor the code to resolve.

This issue is also a good place to discuss the placement of these. Currently they reside on index of each item. This may be confusing from a user experience perspective since we also have the separate Uploads UI. Should these uploads happen through that interface? If a fix for this issue overlaps into a potential refactoring of the UI, we can create additional issues or update this one.

#269 also discusses potential import refacting

@adub65
Copy link
Contributor

adub65 commented Oct 14, 2021

@CraigJZ , I uploaded a few CSV in the staging environment and I dont get an error. However, the status says "Pending". Is there a certain time frame that the status should update? Or does the constant pending status mean something is wrong?

@CraigJZ
Copy link
Collaborator Author

CraigJZ commented Oct 15, 2021

@adub65 Yes, it stays stuck on a pending status but in the logs we see an error similar to:

Error performing ImportAnimalsJob (Job ID: 123456789) from DelayedJob(default) in 5.79ms: ActiveStorage::FileNotFoundError (ActiveStorage::FileNotFoundError)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants