On Thu, May 21, 2020 at 02:45:43PM -0700, Andres Mateo Gomez Gallego wrote:
> After restarting Tomcat, our DSpace stopped listing collections.
> 
> Also when browsing by date, the following error is shown:
> 
> http://repositorio.utp.edu.co/dspace/handle/11059/47/browse?type=dateissued
> 
> 
> Expected mime type application/octet-stream but got text/html. 
> <html><head><title>Apache Tomcat/7.0.67 - Informe de 
> Error</title><style><!--H1 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
>  
> H2 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
>  
> H3 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
>  
> BODY 
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
> P 
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
>  
> {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> 
> </head><body><h1>Estado HTTP 500 - {msg=SolrCore 'search' is not available 
> due to init failure: Error opening new 
> searcher,trace=org.apache.solr.common.SolrException: SolrCore 'search' is 
> not available due to init failure: Error opening new searcher at 

... much removed ...

> Caused by: java.io.EOFException: read past EOF: 
> MMapIndexInput(path=&quot;/dspace/dspace_i/solr/search/data/index/segments_ehh&quot;)
>  
> at 
> org.apache.lucene.store.ByteBufferIndexInput.readByte(ByteBufferIndexInput.java:81)
>  

I've never seen this happen, but it appears that the 'search' core's
file that holds the current list of index segments is corrupt.  The
simplest thing to do may be to delete all of the core's data files
(every file in solr/search/data/) and re-index with something like
'bin/dspace index-discovery -b -s'.  If you have a lot of items in
your repository, this could take a long time.

Further reading:

  https://lucene.apache.org/core/3_0_3/fileformats.html#Segments%20File
  
https://support.lucidworks.com/s/question/0D58000003KjCBMCA3/how-to-recover-if-the-solr-index-got-corrupted
  
https://lucidworks.com/post/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/

I don't think that recovery without re-indexing is possible without a
good segments_N file, but maybe someone with more Solr expertise could
comment?

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/20200522153733.GC17885%40IUPUI.Edu.

Attachment: signature.asc
Description: PGP signature

Reply via email to