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

Bulkrax errors #450

Open
dolsysmith opened this issue Nov 9, 2023 · 0 comments
Open

Bulkrax errors #450

dolsysmith opened this issue Nov 9, 2023 · 0 comments
Labels

Comments

@dolsysmith
Copy link
Contributor

Maybe these will be fixed once we upgrade to the latest Bulkrax version, but I am recording them here for reference:

  1. Running the import job successful imports a batch of works, but at the end of the process, I see this warning in the Sidekiq logs:
2023-11-09T16:23:43.336Z pid=256 tid=cfmk WARN: {"context":"Job raised exception","job":{"retry":true,"queue":"import","class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"Bulkrax::CreateRelationshipsJob","args":[{"job_class":"Bulkrax::CreateRelationshipsJob","job_id":"5423b277-72cd-4f4a-9dfd-df47eb19429a","provider_job_id":null,"queue_name":"import","priority":null,"arguments":[{"entry_identifier":"0fbb598a_2023-09-21","parent_identifier":"3j3333134","child_identifier":null,"importer_run":{"_aj_globalid":"gid://scholarspace/Bulkrax::ImporterRun/1"},"_aj_symbol_keys":["entry_identifier","parent_identifier","child_identifier","importer_run"]}],"executions":0,"locale":"en"}],"jid":"92daf262892b7747f33d6101","created_at":1699546309.0892544,"enqueued_at":1699547023.3296897,"error_message":"Error while trying to deserialize arguments: Couldn't find Bulkrax::ImporterRun with 'id'=1","error_class":"ActiveJob::DeserializationError","failed_at":1699546999.232384,"retry_count":0}}

Perhaps it's because I ran the job once, realized I had made a mistake, deleted the uploaded works and deleted the importer, then re-did the process. This warning appeared on the second run, which otherwise appears successful (works created, added to the collection, derivatives created, etc.)

  1. It seems that if the CSV metadata has a value in the depositor field for an account that does not exist, Bulkrax uploads the works but fails to attach the files. Instead, this error appears in the logs:
2023-11-09T16:11:48.709Z pid=256 tid=ce1w WARN: NoMethodError: undefined method `user_key' for nil:NilClass
2023-11-09T16:11:51.450Z pid=256 tid=cg8k class=AttachFilesToWorkJob jid=edb0362f6a426f6a1da11bd4 ERROR: Error performing AttachFilesToWorkJob (Job ID: 55a4cd18-aefc-449f-9a33-0c38aba7c6a3) from Sidekiq(default) in 289.53ms: NoMethodError (undefined method `user_key' for nil:NilClass):

That's not very descriptive, and since this is the kind of mistake that might conceivably happen from time to time, a more useful error message, preferably reflected in the UI, would be useful.

@dolsysmith dolsysmith added the bug label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant