cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with lucene

savah
Champ in-the-making
Champ in-the-making
It seems we are having another error. Out of nothing Lucene is crashing. Search is not working at all and the following error comes up to Tomcat console. I guess some of the data of the repository have been corrupted.

Is there something we can do to fix it or should be proceed with restoring a backup of Alfresco DB and repository data?


Thanks for any help beforehand,

Regards,

Paris Kapsouros

2:55:14,921 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.ftsIndexerJobDetail threw an unhandled Exception: org.alfresco.service.cmr.repository.ContentIOException: Failed to open stream onto channel:    accessor: ContentAccessor[ contentUrl=store://2008/1/24/12/55/d78565e9-ca6a-11dc-bc4e-e30ccf4ad6b8.bin, mimetype=null, size=0, encoding=UTF-8, locale=el_GR]   at org.alfresco.repo.content.AbstractContentReader.getContentInputStream(AbstractContentReader.java:337)   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.indexProperty(ADMLuceneIndexerImpl.java:858)   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocuments(ADMLuceneIndexerImpl.java:542)   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.updateFullTextSearch(ADMLuceneIndexerImpl.java:1248)   at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:188)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   at java.lang.reflect.Method.invoke(Method.java:585)   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)   at $Proxy9.index(Unknown Source)   at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:52)   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)Caused by: java.lang.UnsupportedOperationException: The content never exists   at org.alfresco.repo.content.EmptyContentReader.getDirectReadableChannel(EmptyContentReader.java:59)   at org.alfresco.repo.content.AbstractContentReader.getReadableChannel(AbstractContentReader.java:226)   at org.alfresco.repo.content.AbstractContentReader.getContentInputStream(AbstractContentReader.java:330)   … 18 more12:55:14,937 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.ftsIndexerJobDetail threw an exception.org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.repository.ContentIOException: Failed to open stream onto channel:    accessor: ContentAccessor[ contentUrl=store://2008/1/24/12/55/d78565e9-ca6a-11dc-bc4e-e30ccf4ad6b8.bin, mimetype=null, size=0, encoding=UTF-8, locale=el_GR]]   at org.quartz.core.JobRunShell.run(JobRunShell.java:213)   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to open stream onto channel:    accessor: ContentAccessor[ contentUrl=store://2008/1/24/12/55/d78565e9-ca6a-11dc-bc4e-e30ccf4ad6b8.bin, mimetype=null, size=0, encoding=UTF-8, locale=el_GR]   at org.alfresco.repo.content.AbstractContentReader.getContentInputStream(AbstractContentReader.java:337)   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.indexProperty(ADMLuceneIndexerImpl.java:858)   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocuments(ADMLuceneIndexerImpl.java:542)   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.updateFullTextSearch(ADMLuceneIndexerImpl.java:1248)   at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:188)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   at java.lang.reflect.Method.invoke(Method.java:585)   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)   at $Proxy9.index(Unknown Source)   at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:52)   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)   … 1 moreCaused by: java.lang.UnsupportedOperationException: The content never exists   at org.alfresco.repo.content.EmptyContentReader.getDirectReadableChannel(EmptyContentReader.java:59)   at org.alfresco.repo.content.AbstractContentReader.getReadableChannel(AbstractContentReader.java:226)   at org.alfresco.repo.content.AbstractContentReader.getContentInputStream(AbstractContentReader.java:330)   … 18 more‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
1 REPLY 1

savah
Champ in-the-making
Champ in-the-making
I think we got our problem solved. After investigating Alfresco logs we pinpointed the exact time that the error started to come up. We searched for files uploaded or modified at that exact time or shortly before and the search produced several results. We deleted the files we found to have been uploaded shortly before the error came up and miraculously that solved the problem. Lucene is working once again flawlessly (well kinda since we still have the .msg in Greek issue).

Hope this will help some people who might have the same issue in the future.