[Dspace-tech] Problem with item import

2 views
Skip to first unread message

Aakash Chauhan

unread,
Aug 24, 2015, 12:38:24 PM8/24/15
to dspac...@lists.sourceforge.net
Hello,
We are trying to import few items to dspace, it works fine for some of
the files and for some files it throws following error. Also one thing
we observed is that this error is not item specific means say its
throwing following error for item 5 initially but later when we
restart import again it will throw same error for item 7 and item 5
will go just fine. Also there is enough disk space and so we are not
sure why it throws following error. Any ideas?

Thank you,
Aakash

java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:828)
at org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:205)
at org.dspace.content.Bitstream.create(Bitstream.java:185)
at org.dspace.content.Bundle.createBitstream(Bundle.java:369)
at org.dspace.app.itemimport.ItemImport.processContentFileEntry(ItemImport.java:742)
at org.dspace.app.itemimport.ItemImport.processContentsFile(ItemImport.java:690)
at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:456)
at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:334)
at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:282)
java.io.IOException: No such file or directory

--
Aakash Chauhan
585.530.7127
aakash.chauhan (at) gmail.com
http://www.rit.edu/~adc0467

Stuve, David H

unread,
Aug 24, 2015, 12:38:26 PM8/24/15
to Aakash Chauhan, dspac...@lists.sourceforge.net
This sounds like an old permissions problem - try logging in as root and
then typing "chown -R user assetstore" where user is the name of the
DSpace user (the user running Tomcat) and assetstore is your assetstore
directory. If this fixes the problem, then the cause is accidentally
running DSpace/Tomcat as root, adding a few items, and the assetstore
directories that get created only have root permissions. For reasons I
understand but disagree with Java gives a weird and confusing 'no such
file or directory' when you run DSpace/Tomcat later as a user other than
root and don't have permission to modify those directories.

Dave
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld
Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply all
Reply to author
Forward
0 new messages