Hello Everyone, I'm also facing the same issue, while doing restoring the AIP file from one server to different server. Can anyone please help.
On Wednesday, December 28, 2022 at 5:50:13 PM UTC+5:30 Rupinder Singh wrote: > HI, > Did anyone get a clue of what the problem is? is there any bug in Dspace > 7.X? > Im also trying to migrate from Dspace 6.2 to Dspace 7.4. the packager > command is returning the following errors. (with and without the skip > parent option) > > jesse@library:/dspace/bin$ sudo ./dspace packager -r -a -f -t AIP -e > [email protected] -i 32116/1 -o createMetadataFields=true > /dspace/AIP/administration/administration.zip > > > WARNING -- You are running the packager in REPLACE mode. > > REPLACE mode may be potentially dangerous as it will automatically remove > and replace contents within DSpace. > We highly recommend backing up all your DSpace contents (files & database) > before continuing. > > Would you like to continue? [y/n]: y > Beginning replacement process... > > Replacing DSpace object(s) with package located at > /dspace/AIP/administration/administration.zip > Will replace existing DSpace COMMUNITY [ hdl=32116/1 ] > java.lang.UnsupportedOperationException: Could not find a parent > DSpaceObject referenced as '32116/180' in the METS Manifest for object > hdl:32116/181. A parent DSpaceObject must be specified from either the > 'packager' command or noted in the METS Manifest itself. > at > org.dspace.content.packager.AbstractMETSIngester.getParentObject(AbstractMETSIngester.java:1240) > at > org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:386) > at > org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1075) > at > org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:275) > at > org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:303) > at org.dspace.app.packager.Packager.replace(Packager.java:684) > at org.dspace.app.packager.Packager.main(Packager.java:361) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at > org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277) > at > org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133) > at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98) > java.lang.UnsupportedOperationException: Could not find a parent > DSpaceObject referenced as '32116/180' in the METS Manifest for object > hdl:32116/181. A parent DSpaceObject must be specified from either the > 'packager' command or noted in the METS Manifest itself. > > jesse@library:/dspace/bin$ sudo ./dspace packager -r -a -f -t AIP -e > [email protected] -i 32116/1 -o createMetadataFields=true -o > skipIfParentMissing=true -o ignoreHandle=true > /dspace/AIP/administration/administration.zip > > > WARNING -- You are running the packager in REPLACE mode. > > REPLACE mode may be potentially dangerous as it will automatically remove > and replace contents within DSpace. > We highly recommend backing up all your DSpace contents (files & database) > before continuing. > > Would you like to continue? [y/n]: y > Beginning replacement process... > > Replacing DSpace object(s) with package located at > /dspace/AIP/administration/administration.zip > Will replace existing DSpace COMMUNITY [ hdl=32116/1 ] > > REPLACED a total of 1 DSpace Objects. > > Would you like to view a list of all objects that were replaced? [y/n]: y > > > > REPLACED DSpace COMMUNITY [ hdl=32116/1 ] > > I'm also attaching the Dspace Log files for more details. > > Another thing i can do is to import individual collections using SAF from > GUI, but that has a different problem, It won't let me upload a collection, > which has any duplicate items. (I have some items which are part of > multiple collections, so the system lets the first import go through, but > gives a duplicate handle error upon importing another collection SAF which > has an already imported item.) > > The main motive is to migrate my repository by any means possible. please > help. > > Thanks in advance, > Rupinder Singh > Assistant Librarian > Central University of Punjab | Bathinda > > On Friday, March 25, 2022 at 6:30:52 PM UTC+5:30 [email protected] wrote: > >> Sorry I answered euler in private, i'm new to Google Groups. >> >> I ran what he suggested earlier and got the same result. >> Also I believe the problem is with the creation of the new handle/0, >> perhaps something with the mets.xml file? >> >> The children can't find their parents and cant recreate after because >> none was imported. >> >> It's just an idea. Btw, do you think I should also ask for help in Github >> or just here is fine? >> >> Thank you, >> Thiago Moreira >> >> On Friday, March 25, 2022 at 6:07:16 AM UTC-3 Michael Plate wrote: >> >>> Hi, >>> >>> Am 25.03.22 um 03:44 schrieb euler: >>> > Hi, >>> > >>> > Have you tried: >>> > dspace packager -r -a -f -t AIP -o createMetadataFields=true >>> […] >>> >>> AFAIK createMetadataFields does not work after DSpace 5.x . >>> >>> Michael >>> >>> -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/b04c4754-e72b-4eb8-ad8e-ff6ab87bdfa4n%40googlegroups.com.
