cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco does not start

sbeltrami
Champ in-the-making
Champ in-the-making
Hi,
we have alfresco that does not start.
In the log file there is this :

14:39:43,441 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
java.lang.RuntimeException: Error during run with lock.
at org.alfresco.repo.search.impl.lucene.index.IndexInfo.doWithFileLock(IndexInfo.java:2090)
at org.alfresco.repo.search.impl.lucene.index.IndexInfo.<init>(IndexInfo.java:481)
at org.alfresco.repo.search.impl.lucene.index.IndexInfo.getIndexInfo(IndexInfo.java:331)
at org.alfresco.repo.search.impl.lucene.AbstractLuceneBase.initialise(AbstractLuceneBase.java:105)
at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.getUpdateIndexer(ADMLuceneIndexerImpl.java:349)
at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerAndSearcherFactory.createIndexer(ADMLuceneIndexerAndSearcherFactory.java:99)
at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory.getThreadLocalIndexer(AbstractLuceneIndexerAndSearcherFactory.java:301)
at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory.getIndexer(AbstractLuceneIndexerAndSearcherFactory.java:285)
at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory.getIndexer(AbstractLuceneIndexerAndSearcherFactory.java:72)
at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)
at $Proxy6.getIndexer(Unknown Source)
at org.alfresco.repo.search.IndexerComponent.updateNode(IndexerComponent.java:59)
at org.alfresco.repo.node.index.FullIndexRecoveryComponent$1.execute(FullIndexRecoveryComponent.java:273)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:174)
at org.alfresco.repo.node.index.FullIndexRecoveryComponent.reindexTransaction(FullIndexRecoveryComponent.java:280)
at org.alfresco.repo.node.index.FullIndexRecoveryComponent.performFullRecovery(FullIndexRecoveryComponent.java:205)
at org.alfresco.repo.node.index.FullIndexRecoveryComponent.reindexImpl(FullIndexRecoveryComponent.java:164)
at org.alfresco.repo.node.index.AbstractReindexComponent$1.execute(AbstractReindexComponent.java:216)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
at org.alfresco.repo.node.index.AbstractReindexComponent.reindex(AbstractReindexComponent.java:220)
at org.alfresco.repo.node.index.IndexRecoveryBootstrapBean.onBootstrap(IndexRecoveryBootstrapBean.java:35)
at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.io.IOException: No sub-file with id _0.fnm found
at org.apache.lucene.index.CompoundFileReader.openInput(CompoundFileReader.java:123)
at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:56)
at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:159)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:140)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:126)
at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:155)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:579)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:147)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:137)
at org.alfresco.repo.search.impl.lucene.index.IndexInfo.buildReferenceCountingIndexReader(IndexInfo.java:1747)
at org.alfresco.repo.search.impl.lucene.index.IndexInfo.access$1200(IndexInfo.java:115)
at org.alfresco.repo.search.impl.lucene.index.IndexInfo$2.doWork(IndexInfo.java:544)
at org.alfresco.repo.search.impl.lucene.index.IndexInfo.doWithFileLock(IndexInfo.java:2077)
… 59 mor
2 REPLIES 2

samudaya
Champ on-the-rise
Champ on-the-rise
Hi sbeltrami,

Have you previously started Alfresco without any error or is this first time you are going to run your fresh Alfresco installation?

Best Regards
SAMU

sbeltrami
Champ in-the-making
Champ in-the-making
Yes,
I have started Alfresco without error.
Now I have deleted file into folder lucene.indexes and set, in <ALRESCO_HOME>/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties file, the parameter index.recovery.mode=FULL instead of VALIDATE

Is it correct?

Thanks