Bamboo fails to start if Lucene index gets corrupted

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Bamboo fails to start and the logs show this:

      Caused by: com.atlassian.bonnie.LuceneException: Failed to create searcher for directory: org.apache.lucene.store.FSDirectory@/export/software/atlassian/data/bamboo/index
      	at com.atlassian.bonnie.LuceneConnection.createSearcher(LuceneConnection.java:487)
      	at com.atlassian.bonnie.LuceneConnection.<init>(LuceneConnection.java:93)
      	at com.atlassian.bonnie.LuceneConnection.<init>(LuceneConnection.java:98)
      	at com.atlassian.bonnie.LuceneConnection.<init>(LuceneConnection.java:113)
      	at com.atlassian.bonnie.ConcurrentLuceneConnection.<init>(ConcurrentLuceneConnection.java:21)
      	at com.atlassian.bamboo.index.LuceneConnectionImpl.<init>(LuceneConnectionImpl.java:22)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      
      ...
      
      Caused by: java.io.IOException: read past EOF
      	at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:146)
      	at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
      	at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:66)
      	at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:207)
      	at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68)
      	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
      ...
      

      In order to fix the issue, one needs to delete the BAMBOO_HOME/index directory and start Bamboo server again. After, go to Administration -> Indexing and do a full re-index when Bamboo is up and running again.

      How can we predict and eliminate this failure?

            Assignee:
            Unassigned
            Reporter:
            ArmenA
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: