Search gives a 404 page now: go to, type “hello” -> “That page does not exist! Maybe you can find what you are looking for using the search page.”

Submitted by Lennart Kats on 19 March 2011 at 12:16

On 19 March 2011 at 12:58 Eelco Visser commented:

This is the exception. Apparently something has gone wrong with creating the search index; Sander?

exception occured while handling request URL:
exception message: Unable to reopen IndexReader Unable to reopen IndexReader
at webdsl.generated.domain.Publication.static_searchPublication(
at webdsl.generated.templates.searchPublicationStringInt_Template.initializeLocalVars(
at utils.TemplateServlet.tryInitializeTemplate(
at utils.TemplateServlet.render(
at webdsl.generated.templates.search_localBody0IntStringString_Template.renderInternal(
at utils.TemplateServlet.render(
at webdsl.generated.templates.localMenuPage_body0_Template.renderInternal(
at utils.TemplateServlet.render(
at webdsl.generated.templates.main_Template.renderInternal(
at utils.TemplateServlet.render(
at webdsl.generated.templates.localMenuPage_Template.renderInternal(
at utils.TemplateServlet.render(
at webdsl.generated.templates.search_Template.renderInternal(
at utils.TemplateServlet.render(
at webdsl.generated.templates.SearchPage.render(
at webdsl.generated.templates.SearchPage.serve(
at utils.DispatchServletHelper.handlePage(
at utils.DispatchServletHelper.doServe(
at utils.DispatchServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.jk.server.JkCoyoteHandler.invoke(
at org.apache.jk.common.HandlerRequest.invoke(
at org.apache.jk.common.ChannelSocket.invoke(
at org.apache.jk.common.ChannelSocket.processConnection(
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
at org.apache.tomcat.util.threads.ThreadPool$
Caused by: /var/indexes/researchr/webdsl.generated.domain.Publication/_3pz.cfs (No such file or directory)
at Method)
at org.apache.lucene.index.CompoundFileReader.(
at org.apache.lucene.index.SegmentReader$CoreReaders.(
at org.apache.lucene.index.SegmentReader.get(
at org.apache.lucene.index.SegmentReader.get(
at org.apache.lucene.index.DirectoryReader.(
at org.apache.lucene.index.ReadOnlyDirectoryReader.(
at org.apache.lucene.index.DirectoryReader.doReopen(
at org.apache.lucene.index.DirectoryReader.access$000(
at org.apache.lucene.index.DirectoryReader$2.doBody(
at org.apache.lucene.index.SegmentInfos$
at org.apache.lucene.index.DirectoryReader.doReopenNoWriter(
at org.apache.lucene.index.DirectoryReader.doReopen(
at org.apache.lucene.index.DirectoryReader.reopen(
… 40 more

On 19 March 2011 at 12:59 Eelco Visser tagged @sandervermolen

On 19 March 2011 at 13:02 Lennart Kats commented:

Also related: WebDSL/300: Don’t report Error 404 (Not Found) for server errors

On 19 March 2011 at 13:41 Danny Groenewegen commented:

I would first try restarting tomcat, and if that doesn’t help, shut down tomcat and delete the /var/indexes/researchr directory, then run the indexing again and start tomcat.

On 19 March 2011 at 17:53 Eelco Visser closed this issue.

On 19 March 2011 at 17:53 Eelco Visser commented:

Fixed; apparently I did not follow the correct protocol, which is:

  • remove /var/indexes/researchr
  • restart tomcat (which regenerates the directory)
  • then run the reindex script

On 19 March 2011 at 17:55 Eelco Visser commented:

(I’m running reindex now)

On 19 March 2011 at 17:55 Eelco Visser tagged 59

On 20 March 2011 at 09:37 Sander Vermolen commented:

I was also running reindexing yesterday (see I had fixed the original indexing problem with the duplicate keys. The above exception was probably caused by the reindexing still being in progress.

On 20 March 2011 at 14:25 Eelco Visser commented:

No, it was due to the fact that I did not observe the right protocol. After removing the index directory, tomcat should be restarted to initialize the directory. Only then should the reindex script be run. The index directory was corrupted.

Log in to post comments