java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory in EPP 5

Solution Unverified - Updated -

Issue

  • I get the Exception during EPP cluster startup sequence. The node doesn't display my custom portal. Instead, it displays default portal login page.
2016-04-25 10:10:02,508 ERROR [exo.jcr.component.core.RepositoryServiceImpl] (main) Error start repository service
org.exoplatform.services.jcr.config.RepositoryConfigurationException: Repository container repository was not started.
        at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:171)
        at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.init(RepositoryServiceImpl.java:326)
        at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.start(RepositoryServiceImpl.java:281)
        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:597)
        at org.exoplatform.container.LifecycleVisitor.traverse(LifecycleVisitor.java:100)
        at org.exoplatform.container.LifecycleVisitor.start(LifecycleVisitor.java:170)
        at org.exoplatform.container.ConcurrentPicoContainer.start(ConcurrentPicoContainer.java:554)
        at org.exoplatform.container.ExoContainer.start(ExoContainer.java:266)
        at org.exoplatform.container.PortalContainer.start(PortalContainer.java:667)
        at org.exoplatform.container.ExoContainer.start(ExoContainer.java:254)
        at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:399)
        at org.exoplatform.container.RootContainer.createPortalContainers(RootContainer.java:287)
        at org.exoplatform.container.web.PortalContainerCreator$2.run(PortalContainerCreator.java:74)
        at org.exoplatform.container.web.PortalContainerCreator$2.run(PortalContainerCreator.java:71)
        at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedAction(SecurityHelper.java:290)
        at org.exoplatform.container.web.PortalContainerCreator.contextInitialized(PortalContainerCreator.java:70)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
...
Caused by: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/xxx/xxx/lucene/portal-system_xxxx/_1f83 lockFactory=org.apache.lucene.store.NativeFSLockFactory@62543ce7: files: .nfs0000000000032d09000008cc
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:634)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:517)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:306)
        at org.apache.lucene.index.SegmentInfos.readCurrentVersion(SegmentInfos.java:408)
        at org.apache.lucene.index.DirectoryReader.isCurrent(DirectoryReader.java:800)
        at org.apache.lucene.index.FilterIndexReader.isCurrent(FilterIndexReader.java:241)
        at org.exoplatform.services.jcr.impl.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:251)
        at org.exoplatform.services.jcr.impl.core.query.lucene.AbstractIndex.getReadOnlyIndexReader(AbstractIndex.java:280)
        at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex$6.run(MultiIndex.java:1366)
        at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex$6.run(MultiIndex.java:1326)
        at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedExceptionAction(SecurityHelper.java:310)
        at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedIOExceptionAction(SecurityHelper.java:57)
        at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:1325)
        at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:1309)
        at org.exoplatform.services.jcr.impl.core.query.lucene.IndexingQueue.initialize(IndexingQueue.java:85)
        at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex.<init>(MultiIndex.java:365)
        at org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex.doInit(SearchIndex.java:670)
        at org.exoplatform.services.jcr.impl.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:113)
        at org.exoplatform.services.jcr.impl.core.query.jbosscache.JBossCacheIndexChangesFilter.<init>(JBossCacheIndexChangesFilter.java:187)
        ... 113 more
...
2016-04-25 10:10:02,639 ERROR [exo.kernel.container.RootContainer] (main) Cannot create the portal container 'xxxx' . ServletContext: org.apache.catalina.core.ApplicationContextFacade@74475312
org.picocontainer.PicoIntrospectionException: Failed when calling start on org.exoplatform.portal.mop.navigation.NavigationServiceWrapper@462c1472
...

Environment

  • Red Hat JBoss Portal
    • 5.2.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content