-
Notifications
You must be signed in to change notification settings - Fork 20
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
Export fails on 410 response caused by tombstone #172
Comments
It does appear that we don't expect to encounter resources that are 410 Gone. Fedora doesn't generate links to tombstones so I am assuming you have a manually added predicate pointing to this resource? |
Possibly? If so, I am not able to remove it, and there may be others that I haven't encountered yet. I just need the export job not to fail when it hits one. Is there some "ignore errors" option I can pass to it? |
No, as we figured you would want to ensure the export is complete. I'm remembering that this tool only follows the |
I am not passing in a --resourcesFile at all. Here is my generated .yml file:
My command looks like this:
A complete export would be great, of course, but I'd rather have an export that was 99.9999% complete than nothing at all. And it seems strange that no one has ever tried to export a repository containing tombstones before me. Aren't they a fairly common occurrence? |
They are somewhat common depending on how much you delete resources. The concern I have is Fedora resources do not show a So if I have
But if I delete What version of Fedora are you running this export against? |
I just did a simple test of a parent resource with a child that was deleted, like above, using your command line args and it did not try to retrieve it the tombstone and the export completed successfully. I ran that with version 1.1.0 of the fcrepo-import-export tool, but as there is now a 1.2.0 version maybe try that one just to see if there is any difference. https://github.com/fcrepo-exts/fcrepo-import-export/releases/tag/fcrepo-import-export-1.2.0 Also I noticed that you had set |
First, thanks for taking your time to help. I do appreciate it. I've tried this export job twice now, once with --repositoryRoot set and once without. Both were using version 1.1.0 of the fcrepo-import-export tool, and the repository is version 4.7.5 of Fedora. The first run quit after 792 minutes with the error in my original post, and the second quit with the same error but referencing a different object, after 251 minutes. I will try again tomorrow with version 1.2.0 but I have to say, I don't see anything in the diff there that would handle a 410 response differently than in version 1.1.0. Is there some way to tell the tool to continue through 410 errors, or to tell my repository to handle tombstones with a different response code? |
No worries @gdelisle. Are you running an export of a repository that is undergoing writes? |
Yes. This is a production system and new data is getting written. Could that be the issue? |
I have created a PR (linked above) with some work to allow you to continue over a 410 error. Even if you don't enable it, it should still print the URI that is giving the 410 at least. That might help figure out how this tombstone is appearing at all. Give it a try and let me know if it works for you. |
@gdelisle yes, if the repository is experiencing changes as the export is running then the chance that the parent resource points to a child, but that child is deleted before the export is complete would explain why this is happening. |
I am attempting to export a fcrepo repository and the job fails with
The resource it points to is a tombstone for a deleted item, which is a normal thing to encounter, and fcrepo gives a HTTP 410 Gone response, which is appropriate. However, the export utility quits at that point and provides no output. How can I get the export to not consider a 410 response as a fatal error and fail to export the repo?
The text was updated successfully, but these errors were encountered: