Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-14872

Bamboo fails to recreate purged index directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.5.1, 5.6.0
    • Fix Version/s: 5.10.0
    • Component/s: None
    • Labels:

      Description

      In the old versions of Bamboo, the index directory does not have subfolders and the index files are just dumped. In the later versions of bamboo 5.5.x and above, the index are grouped in to subfolders. Now the issue is whenever the index folder is purged and Bamboo restarted, we will expect that it recreates the index and all subfolders. On the contrary, Bamboo tries to create the subfolders directly without checking the parent folder (index). This caused Bamboo to fail to startup and the following thrown in the logs:

      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.index.LuceneConnectionImpl]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/bamboo/home/index/results'
      Caused by: com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/bamboo/home/index/results'
      	at com.atlassian.bonnie.DirectoryUtil.getDirectory(DirectoryUtil.java:34)
      	at com.atlassian.bonnie.LuceneConnection.<init>(LuceneConnection.java:135)
      	at com.atlassian.bamboo.index.LuceneConnectionImpl.<init>(LuceneConnectionImpl.java:26)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Unknown Source)
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
      	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
      

      Workaround
      The workaround will be to create an empty index directory manually in Bamboo home and restart Bamboo

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgardias Marcin Gardias
              Reporter:
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: