[Dspace-tech] Problem with bitstream upload

70 views
Skip to first unread message

Stefanie Behnke

unread,
Aug 26, 2015, 1:04:10 PM8/26/15
to dspac...@lists.sourceforge.net, dspace-te...@lists.sourceforge.net
Dear all,

I am using Dspace 3.1 with jspui and want to upload a bitstream (zip file) to an existing item. That results in an Internal System Error.

Can anyone give me a hint, what went wrong?

thanking you in advance
Stefanie


Anja Le Blanc

unread,
Aug 26, 2015, 1:04:12 PM8/26/15
to dspac...@lists.sourceforge.net
Hi Stefanie,

That is really not a lot of information about your problem. Can you
check for error messages in your DSpace and or Tomcat logs?

Regards,

Anja
> ------------------------------------------------------------------------------
> _______________________________________________
> DSpace-tech mailing list
> DSpac...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>

Stefanie Behnke

unread,
Aug 26, 2015, 1:04:15 PM8/26/15
to Anja Le Blanc, dspac...@lists.sourceforge.net
Dear Anja,

error message on the screen:
Internal System Error

The system has experienced an internal error. Please try to do what you were
doing again, and if the problem persists, please contact us so we can fix
the problem.

------
from the dspace log:

2014-03-31 14:41:52,827 INFO org.dspace.authenticate.LDAPAuthentication @
anonymous:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=129.27.218.38:
auth:attempting trivial auth of user=eg-su...@eg.org
2014-03-31 14:41:52,953 WARN org.dspace.authenticate.LDAPAuthentication @
anonymous:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=129.27.218.38:
ldap_authentication:type=failed_auth
javax.naming.AuthenticationException\colon; [LDAP\colon; error code 49 -
Invalid Credentials]
2014-03-31 14:41:52,953 INFO org.dspace.authenticate.PasswordAuthentication
@
anonymous:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=129.27.218.38:
authenticate:attempting password auth of user=eg-su...@eg.org
2014-03-31 14:41:52,973 INFO org.dspace.authenticate.PasswordAuthentication
@
eg-su...@eg.org:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=129.27
.218.38:authenticate:type=PasswordAuthentication
2014-03-31 14:41:52,976 INFO org.dspace.app.webui.servlet.PasswordServlet @
eg-su...@eg.org:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=129.27
.218.38:login:type=explicit
2014-03-31 14:41:53,003 INFO org.dspace.app.webui.servlet.MyDSpaceServlet @
eg-su...@eg.org:session_id=03F65560962C60325F4784644FF62FD5:ip_addr=129.27
.218.38:view_mydspace:
2014-03-31 14:42:22,390 INFO org.dspace.content.Bitstream @
eg-su...@eg.org:session_id=03F65560962C60325F4784644FF62FD5:ip_addr=129.27
.218.38:update_bitstream:bitstream_id=6477
2014-03-31 14:42:22,390 INFO org.dspace.content.Bundle @
eg-su...@eg.org:session_id=03F65560962C60325F4784644FF62FD5:ip_addr=129.27
.218.38:update_bundle:bundle_id=4273
2014-03-31 14:42:22,393 INFO org.dspace.content.Item @
eg-su...@eg.org:session_id=03F65560962C60325F4784644FF62FD5:ip_addr=129.27
.218.38:update_item:item_id=4282
2014-03-31 14:42:31,039 WARN
org.dspace.app.webui.servlet.InternalErrorServlet @
:session_id=03F65560962C60325F4784644FF62FD5:internal_error:-- URL Was:
http://129.27.218.243:8080/jspui/tools/edit-item
-- Method: POST
-- Parameters were:

java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:947)
at
edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
at
org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageMa
nager.java:300)
at org.dspace.content.Bitstream.create(Bitstream.java:205)
at org.dspace.content.Bundle.createBitstream(Bundle.java:384)
at
org.dspace.app.webui.servlet.admin.EditItemServlet.processUploadBitstream(Ed
itItemServlet.java:857)
at
org.dspace.app.webui.servlet.admin.EditItemServlet.doDSPost(EditItemServlet.
java:160)
at
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java
:115)
at
org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)
at
org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilt
er.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)
at
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServ
letFilter.java:78)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
ssor.java:1001)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
tProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
312)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
45)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
15)
at java.lang.Thread.run(Thread.java:722)
2014-03-31 14:42:31,056 WARN org.dspace.app.webui.util.UIUtil @ Unable to
send email alert
javax.mail.internet.AddressException: Illegal address in string ``''
at
javax.mail.internet.InternetAddress.<init>(InternetAddress.java:94)
at org.dspace.core.Email.send(Email.java:302)
at org.dspace.app.webui.util.UIUtil.sendAlert(UIUtil.java:419)
at
org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet
.java:54)
at
org.dspace.app.webui.servlet.InternalErrorServlet.doPost(InternalErrorServle
t.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:690)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:479)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:402)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:329)
at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:453
)
at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:
399)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:191
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
ssor.java:1001)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
tProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
312)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
45)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
15)
at java.lang.Thread.run(Thread.java:722)
---------



-----Ursprüngliche Nachricht-----
Von: Anja Le Blanc [mailto:anja.l...@manchester.ac.uk]
Gesendet: Montag, 31. März 2014 12:35
An: dspac...@lists.sourceforge.net
Betreff: Re: [Dspace-tech] Problem with bitstream upload
----------------------------------------------------------------------------

Anja Le Blanc

unread,
Aug 26, 2015, 1:04:17 PM8/26/15
to Stefanie Behnke, dspac...@lists.sourceforge.net
Hi Stefanie,

Well, the error simply said that it can't create a file.
At that point the code tries to create a file in the current assetstore.
Could you check in your dspace.cfg
a) whether "assetstore.incoming" is set
b) the location of assetstore.dir or asetstore.dir.[the number from a)]

Check the permission of that directory tree -- the tomcat user must be
able to access that.

You could also switch to log4j to debug mode for package
org.dspace.storage.bitstore -- this would produce a line in dspace.log
with the info of where it tries do create the file:
log.debug("Local filename for " + sInternalId + " is
"+bufFilename.toString());

That is all I could think of for that.

Regards,
Anja

Stefanie Behnke

unread,
Aug 26, 2015, 1:04:18 PM8/26/15
to Anja Le Blanc, dspac...@lists.sourceforge.net
Dear Anja,

thanks for your interest.

a) assetstore.incoming is not set, so I think it is 0 (zero) and corresponds
to the 'assetstore.dir' above:
# Asset (bitstream) store number 0 (zero)
assetstore.dir = ${dspace.dir}/assetstore

b) the owner of that directory is "tomcat7"

> You could also switch to log4j to debug mode for package
org.dspace.storage.bitstore
How can I do this?

Thanks again for your help.

Best regards
Stefanie



-----Ursprüngliche Nachricht-----
Von: Anja Le Blanc [mailto:anja.l...@manchester.ac.uk]
Gesendet: Montag, 31. März 2014 15:44
An: Stefanie Behnke; dspac...@lists.sourceforge.net
Betreff: Re: AW: [Dspace-tech] Problem with bitstream upload

Hi Stefanie,

Anja Le Blanc

unread,
Aug 26, 2015, 1:04:19 PM8/26/15
to Stefanie Behnke, dspac...@lists.sourceforge.net
Hi Stefanie,

In the log4j.properties file add a line
log4j.logger.org.dspace.storage.bitstore=DEBUG, A1

That should change the log level for that java package only (after a
restart of tomcat).

You said the owner of the directory is tomcat7. Have you also checked
that tomcat7 can read and write to all subdirectories of assetstore?

Best regards,
Anja

Stefanie Behnke

unread,
Aug 26, 2015, 1:04:23 PM8/26/15
to Anja Le Blanc, dspac...@lists.sourceforge.net
Dear Anja,

after checking all subdirecteries and changing the access rights to
"tomcat7" instead of "root" the uploading works.

Thank you very much, I would not have found it out myself!

Best regards
Stefanie

-----Ursprüngliche Nachricht-----
Von: Anja Le Blanc [mailto:anja.l...@manchester.ac.uk]
Gesendet: Montag, 31. März 2014 16:34
An: Stefanie Behnke; dspac...@lists.sourceforge.net
Betreff: Re: AW: AW: [Dspace-tech] Problem with bitstream upload

Hilton Gibson

unread,
Aug 26, 2015, 1:04:24 PM8/26/15
to Stefanie Behnke, dspace-tech

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa



------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages