• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 5.10.0
    • 5.5.1, 5.6.0
    • None

      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

          Form Name

            [BAM-14872] Bamboo fails to recreate purged index directory

            Still an issue with Bamboo 5.8

            Joseph Earl added a comment - Still an issue with Bamboo 5.8

              mgardias Marcin Gardias
              smaiyaki Sultan Maiyaki (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: