Search code examples
dspace

DSpace 4.1: Files cannot be uploaded


I'm trying to upload files into my DSpace 4.1 repository. However, an error occurres when I press the Upload button. It throws me: java.io.ioException: No existe el archivo o el directorio which in English is: java.io.ioException: No such file or directory

What I did before was installing DSpace, creating the communities and collections, creating and deploying my own theme and translating some parts to Spanish (since DSpace didn't auto-translated some parts of the repository).

I'm using a user named dspace, which is the one I used to installed Tomcat and it's the owner of the [dspace] directory.

I'm using DSpace 4.1 in Ubuntu 14.04.

NOTE: Both assetstore and upload directories do exist, are owned by the dspace user, who also has read & write permissions to them; but still, I can't upload files to my repository. Could it be something about the configuration of the collection? Or something about Catalina and Tomcat?


Solution

  • I don't know if you still need an answer for this but you should try changing the owner of [dspace]/assetstore to tomcat (just for a quick test) and then try uploading a file. I had the exact same error and this fixed it, meaning that the problem was that tomcat wasn't installed as the dspace user. From here, you can take the appropriate measures to change permissions to solve the issue for the production environment.