-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rollback (delete task) failing w/ "KeyError: 'field_track'" #692
Comments
@dmer do any of the media that would be deleted in this rollback have media track files? |
@mjordan no, these were all files pulled via https from an S3 bucket. I did manually add one thumbnail file to one of the records prior to attempting to run the rollback, but that's the only variation I can think of. |
After ingesting some nodes and accompanying media, I can't replicate this error. Rollback works fine. I'd like to see if anyone else can replicate it. Regardless, any time Python code throws a |
After some further testing (including deleting a node+media without a track, and a node+media+track), I've pushed an update to main that should prevent the |
I just pulled the latest Main and updated Python stuff and re-ran this rollback that failed and I got the same exception error. It happens when the rollback encounters a Video object - this object had an mp4 video file as Original File media, but there were no track files attached at all. When I deleted the media from that node manually and re-ran the job it picked up where it left off and continued deleting records and media. Pasting the error msg below in case that's helpful
|
Of course I tested only using an audio media. I'll restest with a video and let you know what I found. |
Same results. There must be a difference in our environments. If you visit |
@mjordan I do not see a "field_track" on that media bundle - should I add one? |
I think so but you should not do so based only on my advice. My understanding is that both the standard audio and video media bundles have this field. I think we should ask in slack if that is the case before you do anything, Do you want me to ask that? |
Note to @mjordan : https://github.com/mjordan/islandora_workbench/blob/main/workbench_utils.py#L3830 should not be hard coded to 'field_track', it should take into account the field name defined in the ^^ Done. |
@dmer mind if I close this? |
That's fine - thanks @mjordan |
I'm just running a very basic rollback - the rollback.yml:
and the rollback csv has a list of about 30 node id's
This is a test set that I'm deleting so I can re-ingest w/ some changes - the only thing I did w/ these objects in Islandora was manually add a thumbnail to one object.
when I run the job I get this output:
Edit: noting that WB was updated fairly recently - when I do git log the most recent commit is from Aug. 3rd
Originally posted by @dmer in #373 (comment)
The text was updated successfully, but these errors were encountered: