Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12206

Bundled Elasticsearch throws node validation exception after Bitbucket upgrade

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.0.0, 6.10.2, 6.9.3, 6.7.5, 6.6.5
    • 6.10.1, 6.6.4, 6.7.4, 6.8.3, 6.9.2
    • Search
    • None

      Issue Summary

      After upgrading Bitbucket, the bundled Elasticsearch instance fails to start. In addition, the following error is found in the <BitbucketHome>/log/search/bitbucket_search.log file:

      [2020-02-24T06:15:46,142][ERROR][o.e.b.Bootstrap ] [bitbucket_bundled]node validation exception
       Cluster name [bitbucket_search] subdirectory exists in data paths [<BITBUCKET_HOME>/shared/search/data/bitbucket_search]. All data under these paths must be moved up one directory to paths [<BITBUCKET_HOME>/shared/search/data]

      Steps to Reproduce

      1. Install and start Bitbucket 3.x (or 5.4.x) with a bundled Elasticsearch version
      2. Upgrade Bitbucket to 6.10.1 and start the application

      Expected Results

      Bitbucket starts up with the bundled Elasticsearch.

      Actual Results

      The below exception is thrown in the bitbucket_search.log file:

      [2020-02-24T06:15:46,142][ERROR][o.e.b.Bootstrap ] [bitbucket_bundled]node validation exception Cluster name [bitbucket_search] subdirectory exists in data paths [<BITBUCKET_HOME>/shared/search/data/bitbucket_search]. All data under these paths must be moved up one directory to paths [<BITBUCKET_HOME>/shared/search/data]
      

      Workaround

      Follow the steps provided in this KB article

          Form Name

            [BSERV-12206] Bundled Elasticsearch throws node validation exception after Bitbucket upgrade

            I am also facing this problem after upgrade to 6.10.1

            [2020-02-29T06:53:19,274][ERROR][o.e.b.Bootstrap ] [bitbucket_bundled] node validation exception
            Cluster name [bitbucket_search] subdirectory exists in data paths [/bitbucket/shared/search/data/bitbucket_search]. All data under these paths must be moved up one directory to paths [/bitbucket/shared/search/data]
            [2020-02-29T06:53:19,278][INFO ][o.e.n.Node ] [bitbucket_bundled] stopping ...
            [2020-02-29T06:53:19,312][INFO ][o.e.n.Node ] [bitbucket_bundled] stopped
            [2020-02-29T06:53:19,312][INFO ][o.e.n.Node ] [bitbucket_bundled] closing ...
            [2020-02-29T06:53:19,329][INFO ][o.e.n.Node ] [bitbucket_bundled] closed

            Vinay Shekar S added a comment - I am also facing this problem after upgrade to 6.10.1 [2020-02-29T06:53:19,274] [ERROR] [o.e.b.Bootstrap ] [bitbucket_bundled] node validation exception Cluster name [bitbucket_search] subdirectory exists in data paths [/bitbucket/shared/search/data/bitbucket_search] . All data under these paths must be moved up one directory to paths [/bitbucket/shared/search/data] [2020-02-29T06:53:19,278] [INFO ] [o.e.n.Node ] [bitbucket_bundled] stopping ... [2020-02-29T06:53:19,312] [INFO ] [o.e.n.Node ] [bitbucket_bundled] stopped [2020-02-29T06:53:19,312] [INFO ] [o.e.n.Node ] [bitbucket_bundled] closing ... [2020-02-29T06:53:19,329] [INFO ] [o.e.n.Node ] [bitbucket_bundled] closed

              dreissenberger Dan (Inactive)
              dreissenberger Dan (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: