Hi Anton,

On 01/11/13 08:51, Anton Angelo wrote:
I create an archive using the itemexport function, edit the contents file (with echo filename >> contents), add the file to the archive  and then run

 

 

/ir/dspace/bin/dspace dsrun  org.dspace.app.itemupdate.ItemUpdate -A --eperson=valid@eperson --source=/usr/local/tomcat/1/testdata –verbose

 

In return I’m getting:

 

Add bitstreams

Actions to be performed:

    org.dspace.app.itemupdate.AddBitstreamsAction

ItemUpdate - initializing run on Thu Oct 31 14:36:26 NZDT 2013

 

Done processing.  Successful items: 0 of 0 items in source archive

 

End.

 

Any ideas why it isn’t adding the bitstream either to the archive or to the item in the repository?



I just used this sequence to add a file to an existing item using export/import (DSpace 1.8.2):
[dspace]/bin/dspace export -i [prefix]/3998 -t ITEM -d /data/tmp -n 0
echo handles-with-fulltext.xml  > /data/tmp/0/contents
cd /data/tmp && [dspace]/bin/dspace itemupdate -A --source . --verbose -e [email protected]

There is something odd going on with interpolating the "source" argument it seems.  /data/tmp is the parent of the "0" directory created by the export. Note I had to cd to that directory and use "." as the source. Using /data/tmp or /data/tmp/ as the source argument, I get "ERROR creating  Undo Archive directory".

Finally, I had to use ">", ie overwrite the contents file; otherwise it complained about existing bitstreams (including the license bitstream, which you're likely to have even when you think the item has no files).

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to