You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe these will be fixed once we upgrade to the latest Bulkrax version, but I am recording them here for reference:
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.)
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.
The text was updated successfully, but these errors were encountered:
Maybe these will be fixed once we upgrade to the latest Bulkrax version, but I am recording them here for reference:
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.)
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.
The text was updated successfully, but these errors were encountered: