blank page when users clisk on bitstreams

47 views
Skip to first unread message

Compte Messagerie

unread,
Mar 14, 2022, 10:18:11 AM3/14/22
to DSpace Technical Support
hello,
i have dspace 6.3 installed with apache-ant-1.10.10,  apache-tomcat-9.0.45, apache-maven-3.6.3, java8.

it functions normaly until recently, when users click on bitstreams (pdf or docx files) to download , it shows blank pagewithout any error message and without downloading the file of course, 

when i look to the logs, when the bitstream is clicked, it shows me this:

2022-03-14 15:50:04,194 INFO  org.dspace.app.webui.servlet.HandleServlet @ ii...@gmail.com:session_id=B6729E2E124B8305EC7E75C5E8EC96A3:ip_addr=172.20.0.193:view_item:handle=123456789/2388
2022-03-14 15:50:04,204 INFO  org.dspace.usage.LoggerUsageEventListener @ i...@gmail.com:session_id=B6729E2E124B8305EC7E75C5E8EC96A3:ip_addr=172.20.0.193:view_item:handle=123456789/2388
2022-03-14 15:50:09,026 INFO  org.dspace.app.webui.servlet.BitstreamServlet @ i...@gmail.com:session_id=B6729E2E124B8305EC7E75C5E8EC96A3:ip_addr=172.20.0.193:view_bitstream:bitstream_id=2281d047-cf69-4507-acf0-9b9ac20235b1
2022-03-14 15:50:09,026 INFO  org.dspace.usage.LoggerUsageEventListener @ ii...@gmail.com:session_id=B6729E2E124B8305EC7E75C5E8EC96A3:ip_addr=172.20.0.193:view_bitstream:bitstream_id=2281d047-cf69-4507-acf0-9b9ac20235b1
2022-03-14 15:50:09,027 ERROR org.dspace.storage.bitstore.DSBitStoreService @ get(157061081078946674319142175541180994295)
java.io.FileNotFoundException: /usr/local/dspace/assetstore/15/70/61/157061081078946674319142175541180994295 (No such file or directory)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.dspace.storage.bitstore.DSBitStoreService.get(DSBitStoreService.java:91)
        at org.dspace.storage.bitstore.BitstreamStorageServiceImpl.retrieve(BitstreamStorageServiceImpl.java:216)
        at org.dspace.content.BitstreamServiceImpl.retrieve(BitstreamServiceImpl.java:309)
        at org.dspace.app.webui.servlet.BitstreamServlet.doDSGet(BitstreamServlet.java:217)
        at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:126)
        at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:73)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
2022-03-14 15:50:09,028 WARN  org.dspace.app.webui.servlet.DSpaceServlet @ ii...@gmail.com:session_id=B6729E2E124B8305EC7E75C5E8EC96A3:ip_addr=172.20.0.193:io_error:java.io.IOException\colon; java.io.FileNotFoundException\colon; /usr/local/dspace/assetstore/15/70/61/157061081078946674319142175541180994295 (No such file or directory)

any help please,

Compte Messagerie

unread,
Mar 15, 2022, 4:55:34 AM3/15/22
to DSpace Technical Support
this occurs with just one collection, all other collections are fine
any help please

Tim Donohue

unread,
Mar 17, 2022, 10:36:23 AM3/17/22
to DSpace Technical Support
Hi,

That error is saying that the file you clicked on is missing from your filesystem.  It's giving you the location where DSpace expects that file to be found.  It thinks it should be located at "/usr/local/dspace/assetstore/15/70/61/157061081078946674319142175541180994295".  That location is based on the configuration of "assetstore.dir" in your local.cfg.

While that looks like an obscure filename, DSpace removes the file extension.  So, the file should be stored as-is in that location.  If it was a PDF, then you should be able to open it in a PDF reader.  If it was a Word doc, it should be possible to open in Word, etc.

Unfortunately, it's hard to say what might have happened here. It's possible these files were lost during a recent upgrade.  It's possible you have a very active virus scanner which has decided these few files were dangerous and has put them into a quarantine space.  Or it's possible these files were accidentally deleted in some other manner.  You'd have to investigate why only some files are missing, while it sounds like others are working fine.

To get rid of this error, you'd need to find some way to restore (restore them into that assetstore location) or replace the files (delete the old ones that are throwing errors & re-upload).  If you have a recent backup of your DSpace filesystem, hopefully you can simply restore them from that backup.

Tim

Reply all
Reply to author
Forward
0 new messages