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

Elasticsearch service fails to start



    • Bug
    • Resolution: Fixed
    • Highest
    • 7.21.0
    • 6.9.1, 7.1.0, 7.2.2, 7.2.4, 7.13.0, 7.17.1, 7.17.2
    • Search


      Issue Summary

      After setting JRE_HOME in set-jre-home.sh, Elasticsearch service fails to start with start-bitbucket.sh, throws below exception

      could not find java in bundled jdk at {$INST_HOME}/atlassian-bitbucket-7.1.0/elasticsearch/jdk/bin/java
      There was a problem starting bundled Elasticsearch

      Steps to Reproduce

      1. Download Bitbucket server version 7.1.0 (tar.gz)
      2. Set JRE_HOME in set-jre-home.sh and start bitbucket with start-bitbucket.sh

      Expected Results

      Elasticsearch service is expected to start along with Bitbucket

      Actual Results

      Elasticsearch service could not start

      The below exception is thrown while starting Bitbucket with start-bitbucket.sh:

      Starting Atlassian Bitbucket as the current user
      Copying Elasticsearch configuration to {$BITBUCKET_HOME}/shared/search
      Setting Elasticsearch configuration to version 3
      Starting bundled Elasticsearch
      Hint: Run start-bitbucket.sh --no-search to skip starting Elasticsearch
      could not find java in bundled jdk at {$INST_HOME}/atlassian-bitbucket-7.1.0/elasticsearch/jdk/bin/java
      There was a problem starting bundled Elasticsearch
      Bitbucket is being run with a umask that contains potentially unsafe settings.
      The following issues were found with the mask "u=rwx,g=rx,o=rx" (0022):
       - Access is allowed to 'others'. It is recommended that 'others' be denied
         all access for security reasons.
      The recommended umask for Bitbucket is "u=,g=w,o=rwx" (0027) and can be
      configured in _start-webapp.sh
      The current open files limit is set to less than 4096
      Attempting to increase limit...
      Limit increased to 4096 open files
      Starting Bitbucket webapp at http://localhost:7990
      The Bitbucket webapp has been started.


      Manually set JAVA_HOME to start elasticsearch service
      export JAVA_HOME="$JRE_HOME"


        Issue Links



              74d6667aa35c Josh Aguilar
              tpothuraju@atlassian.com Tejaswini P
              19 Vote for this issue
              36 Start watching this issue



                Backbone Issue Sync