Discussion:
[Dspace-tech] Dspace: File Upload Problem
RENTON Scott
2010-01-27 11:20:55 UTC
Permalink
Hi folks, first post and new to DSpace, so apologies if this sounds foolish.

I've recently taken over a fresh install of DSpace, to try and get a new usable repository set up. We're not doing anything fancy, just using the standard input form/metadata schema for now.

On item submission, I get the following error:

2010-01-26 15:41:55,163 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.UploadStep':
java.io.IOException: No such file or directory

at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
at org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:332)
at org.dspace.content.Bitstream.create(Bitstream.java:194)
at org.dspace.content.Bundle.createBitstream(Bundle.java:390)
at org.dspace.content.Item.createSingleBitstream(Item.java:1262)
at org.dspace.submit.step.UploadStep.processUploadFile(UploadStep.java:504)
at org.dspace.submit.step.UploadStep.doProcessing(UploadStep.java:170)
at org.dspace.app.webui.submit.JSPStepManager.doStepEnd(JSPStepManager.java:429)
at org.dspace.app.webui.submit.JSPStepManager.processStep(JSPStepManager.java:284)
at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:408)
at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionController.java:344)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147)
at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)

I've checked that the relevant directory (dspace/upload) is writable by tomcat (I'd had a 'permission denied' error when setting this up at first, but fixed that), so I can't see what the problem is. Just wondering if this is a known problem when config hasn't been correctly done- I can give more information if someone can point me in the right direction!

Cheers
Scott

Scott Renton
MIMS Project Officer
Digital Library Development
University Of Edinburgh
2 Buccleuch Place
Edinburgh
EH8 9LW

0131 651 5219

***@ed.ac.uk
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
rentonsa
2010-01-27 12:08:15 UTC
Permalink
Fixed! There was an underlying permissions issue.

Cheers
Scott
Post by RENTON Scott
Hi folks, first post and new to DSpace, so apologies if this sounds foolish.
I've recently taken over a fresh install of DSpace, to try and get a new
usable repository set up. We're not doing anything fancy, just using the
standard input form/metadata schema for now.
2010-01-26 15:41:55,163 ERROR
java.io.IOException: No such file or directory
I've checked that the relevant directory (dspace/upload) is writable by
tomcat (I'd had a 'permission denied' error when setting this up at first,
but fixed that), so I can't see what the problem is. Just wondering if
this is a known problem when config hasn't been correctly done- I can give
more information if someone can point me in the right direction!
Cheers
Scott
Scott Renton
MIMS Project Officer
Digital Library Development
University Of Edinburgh
2 Buccleuch Place
Edinburgh
EH8 9LW
0131 651 5219
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
DSpace-tech mailing list
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
View this message in context: http://old.nabble.com/Dspace%3A-File-Upload-Problem-tp27337474p27337994.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.
mike0rtiz
2011-09-23 19:57:43 UTC
Permalink
0kay,

I've solved the issue,

The first you need to do is, take a look of the user that's running the
tomcat, at my LAMP the user is 'tomcat'

So the folders /dspace/upload and /dspace/assetstore need all the
permissions by writing at console with root attributes:


chown -R tomcat /dspace/upload

chown -R tomcat /dspace/assetstore

So far, so good. Doing a review through the documentation, the files're
stored at the folder assetstore, so you need to give the permision to the
tomcat user for write on both folders.

My Dspace version is 1.7.2


Best Regards
Mike

--
View this message in context: http://dspace.2283337.n4.nabble.com/Dspace-File-Upload-Problem-tp3286609p3837909.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

Loading...