I have a slight problem. I can't seem to get the error to occur again. It
originally was random but fairly frequently random (if you know what I
mean).

However, all is not lost as I think I might have figured out the problem in
my case (famous last words). In looking at the assetstore directory to give
you the ls -l output, I noticed that some of the directories belonged to the
root user and group. I then remembered that I run a cron job every night
that runs the filter-media and index-all commands, and it runs as user root.
Thus any files that were created in the assetstore belonged to the root user
and group.

Now it seems that whenever a new file was created in the assetstore at the
root level by this cron job, if the next assetstore file to be created in a
normal submission by dspace, which runs as user dpsace, group dspace, then
it cannot create the other assetstore subdirectories for this new bitstream
because the root belongs to user root. When I was refreshing the page, what
it was doing was creating a new bitstream id with a new assetstore path,
that would at some point after a number of retries create a new root
assetstore path which it would have permission to create, and everything
would proceed as normal.

When I reset all the files below the assetstore root path
(/dspace/assetstore) to user dspace, group dspace, then I can't get the
error to happen. Can you check with the other person who was having the same
problem and see if maybe they have a cron job run by user root, which is
setting some of the assetstore files to be owned by user root.


John



On 2/13/07, John Preston <[EMAIL PROTECTED]> wrote:

On 2/13/07, Jim Downing <[EMAIL PROTECTED]> wrote:
>
> PS Just to rule out one potential source of confusion; are you running
> the Sun JDK?

Yes, I using jdk 1.6.

I'm not at that machine right now so I'll send you the other data later.

John

John Preston wrote:
> > <snip/>
> > 2007-02-12 17:33:19,427 DEBUG
> > org.dspace.storage.bitstore.BitstreamStorageManager @ Local filename
> for
> > 46571832589170837501358246915571874212 is
> >
> /data1/dspace/assetstore/46/57/18/46571832589170837501358246915571874212
> > 2007-02-12 17:33:19,430 WARN
> > org.ejamaica.app.webui.servlet.SubmitServlet @
> > [EMAIL PROTECTED]
> :session_id=2FED32ED8F48399F4CE0D094F9FE1FB8:ip_addr=
> > 192.168.0.171:upload_error:
> > java.io.IOException: No such file or directory
> >    at java.io.UnixFileSystem.createFileExclusively(Native Method)
> >    at java.io.File.createNewFile(File.java:883)
>
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to