Closed andrewjbtw closed 1 year ago
Re-opening because this occurred again today and I'm pretty sure the linked PR has been deployed, which should have prevented it.
Can you provide the druid for the object that occurred again for troubleshooting?
Yes - it's https://argo.stanford.edu/view/druid:zb779kk9308 I may end up remediating it if I hear from the depositor but I'm leaving it alone for now.
I looked at the metadata folder /dor/workspace/zb/779/kk/9308/zb779kk9308/metadata
on dor-services-app-prod and do not see any of those .nfs
files there. I have a feeling rerunning the step will work, though I cannot figure out what caused it to error the first time since I don't see any specific error messages anywhere (unless you have a lead). Maybe the file got cleaned up in the meantime? Though it shouldn't have mattered, unless the code is still buggy. I could try and add one again manually and then verify the code I wrote ignores it.
The problem is that the file gets included in the bag in the /dor/export folder, which means that the system expects it to be sent to preservation. When the file gets deleted, it means the bag can't be valid and accessioning will always fail until the bag is regenerated.
Ok, I see it here, must still be a problem then.
/dor/export/zb779kk9308/data/metadata
I see the problem, my regex filtering these files out was too restrictive and did not account for the fact that letters can be present in the filenames (and not just numbers). I am adjusting the regex and test and will have a PR fix up shortly. The currently busted druid will probably need to be remediated (i.e. destroy the current bag in /dor/export
) and then let it be recreated. Since the .nfs
is no longer in the source metadata folder, you don't even need to wait for this fix to do that.
Thanks! I sent this object back through bag generation and it's now accessioned.
We have been running into issues where files with names like '.nfs00000000097b892a00000325' are treated as if they are files that should be deposited into preservation. This means that the files are placed in the bag created at `/dor/export/{druid}' and included in bagit manifests:
This appears to be causing the
transfer-bag
step to fail, though the error message says onlyBased on which items this affects - Goobi deposits - I think what is happening is this:
transfer-object
sends the bag to preservation.nfsXXX
file finally gets deletedtransfer-object
fails because a file has disappearedBased on prior Slack discussion, we think the simplest approach to solving this at this point is to exclude the
.nfsXXX
file from the bag and thus from the export to preservation: https://stanfordlib.slack.com/archives/C04D8DJDRJ9/p1677862646686569It's not clear how to prevent the '.nfsXXX' files from being created. Potentially that would be solved by changing how Goobi sends data to SDR so that it doesn't create a stubContentMetadata.xml file in the first place.