AIP Import error in Dspace 6.3

97 views
Skip to first unread message

Rupinder Singh

unread,
Oct 7, 2022, 5:08:13 AM10/7/22
to dspace-c...@googlegroups.com, dspac...@googlegroups.com
Hi, 
I have a production server where I'm running Dspace 6.3, that repository has handle number 32116, which is mentioned in the dspace.cfg file and also in the handle table of the databases. I was able to successfully export the entire site in AIP format. 
then i installed the same version of Dspace 6.3 but with latest dependencies, like latest PostgreSQL 14, latest java, and latest tomcat etc. it was installed successfully, the site is working, and i have created an administrator (l...@cup.edu.in) with the CLI as the initial configuration. rest other is blank. 
So when i try to import the entire site AIP backup, using the following command it gives an error.

jesse@Library:/dspace/bin$ sudo ./dspace packager -s -a -f -t AIP -e l...@cup.edu.in -p 32116/0 /home/jesse/Documents/KR@CUP/AIP/allsite/entiresite.zip
Destination parents:
Owner: 32116/0
Ingesting package located at /home/jesse/Documents/KR@CUP/AIP/allsite/entiresite.zip
Also ingesting all referenced packages (recursive mode)..
This may take a while, please check your logs for ongoing status while we process each package.
org.dspace.content.crosswalk.CrosswalkInternalException: org.dspace.content.packager.PackageException: Group Administrator already exists
at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:344)
at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:261)
at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1247)
at org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1150)
at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:468)
at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:243)
at org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:147)
at org.dspace.app.packager.Packager.ingest(Packager.java:517)
at org.dspace.app.packager.Packager.main(Packager.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
Caused by: org.dspace.content.packager.PackageException: Group Administrator already exists
at org.dspace.content.packager.RoleIngester.ingestDocument(RoleIngester.java:297)
at org.dspace.content.packager.RoleIngester.ingest(RoleIngester.java:501)
at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:340)
... 14 more
org.dspace.content.crosswalk.CrosswalkInternalException: org.dspace.content.packager.PackageException: Group Administrator already exists

upon checking the log i found that , it successfully read all the user information , and tried creating the e-people as well. but after that nothing appears, and this error shows on cli.. 
however i don't see any changes in the web UI (no groups, no e-people). I have also attached the copy of my mets.xml file from my allsite AIP zip folder. 


Where I'm doing wrong.  I need to migrate my dspace from one server to another. please help me. 

Regards, 
Rupinder Singh 
Assistant Librarian 
Central University of Punjab | Bathinda 
mets.xml

Job Diogenes Ribeiro Borges

unread,
Oct 13, 2024, 10:51:15 AM10/13/24
to DSpace Technical Support
Hi Rupinder,

From what I see, you are upgrade Dspace, where I make a site backup with AIP, 
I prefer, just do pg_dump, than psql -f ..., etc.
I guess that you make a export using ... dspace packager -a -d -t AIP -e ...  -i 32116/0  entiresite.zip
I guess again that you are restoring to a new instance os Dspace, not the production .
In this new instance,  you already create dspace database and crypto extension. 
Now, to restore to these new instace
you will  do dspace packager -r -k -t AIP -e l...@cup.edu.in -i 32116/o  entiresite.zip

Please not that -p  is about parent, when while -s  will insert using this reference as parent.

I hope that help you.
Reply all
Reply to author
Forward
0 new messages