Found the problem! It is explained in the earlier thread " Restoring a 
deleted collection ". My dspace.cfg defines a temporary "upload" directory 
as "upload.temp.dir", but this folder was not created during my 
installation. I manually added this folder and gave it the same group:owner 
as the home dspace directory. These problem AIP commands now work. I 
suggest that this point gets included in the documentation.

On Friday, March 11, 2022 at 10:20:02 AM UTC-5 Chris Clawson wrote:

> I am attempting to create and restore AIP backups from the command line in 
> my DSpace 7.2 installation. I seem to be able to do this with my DS 6.3 
> installation, but am only able to export and import single items to 7.2. 
> Please show me where I am going wrong...
>
> The version 7.2 export session fails and produces a zipfile of size zero. 
> The session is pasted below and provides no clue of what file or directory 
> it can't see. I am trying to follow exactly what the documentation 
> instructs. It works with DSpace 6.3, but not in this install of 7.2. Any 
> suggestions? Thanks.
>
> root@melo4:/home/backup-h# /opt/dspace/bin/dspace packager -d -a -t AIP -e 
> xx...@xxxxxxxxx.org -i 123456789/32 aip32.zip
>
>
> Disseminating DSpace COMMUNITY [ hdl=123456789/32 ] to aip32.zip
>
>
> Also disseminating all child objects (recursive mode)..
>
> This may take a while, please check your logs for ongoing status while we 
> process each package.
>
> Exception: No such file or directory
>
> java.io.IOException: No such file or directory
>
> at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
>
> at java.base/java.io.File.createTempFile(File.java:2129)
>
> at 
> org.dspace.content.crosswalk.RoleCrosswalk.disseminateElement(RoleCrosswalk.java:189)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.crosswalkToMetsElement(AbstractMETSDisseminator.java:1264)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.makeMdSec(AbstractMETSDisseminator.java:606)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.addToAmdSec(AbstractMETSDisseminator.java:700)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.addAmdSec(AbstractMETSDisseminator.java:725)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.makeManifest(AbstractMETSDisseminator.java:814)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.writeZipPackage(AbstractMETSDisseminator.java:328)
>
> at 
> org.dspace.content.packager.AbstractMETSDisseminator.disseminate(AbstractMETSDisseminator.java:264)
>
> at 
> org.dspace.content.packager.DSpaceAIPDisseminator.disseminate(DSpaceAIPDisseminator.java:160)
>
> at 
> org.dspace.content.packager.AbstractPackageDisseminator.disseminateAll(AbstractPackageDisseminator.java:100)
>
> at org.dspace.app.packager.Packager.disseminate(Packager.java:604)
>
> at org.dspace.app.packager.Packager.main(Packager.java:439)
>
> 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)
>
> root@melo4:/home/backup-h#
>

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1d601a2b-8701-4407-9ccf-65c7e587bce3n%40googlegroups.com.

Reply via email to