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

Installer does not copy Elasticsearch configuration into BITBUCKET_HOME/shared/search

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 4.8.6, 4.9.1
    • 4.8.0, 4.9.0
    • None
    • None

    Description

      Summary

      The installer for Linux does not copy the contents of BITBUCKET_INSTALL/elasticsearch/config-template into BITBUCKET_HOME/shared/search which results in Elasticsearch running but listening on port 9200 and not 7992 that we expect.

      Environment

      • Linux using the bin installer

      Steps to Reproduce

      Install Bitbucket Server as root on a Linux machine without the atlbitbucket user account, and select Install as a service: Yes.

      Expected Results

      BITBUCKET_HOME/shared/search contains the following files:

      ├── buckler
      │   └── buckler.yml
      ├── elasticsearch.yml
      └── logging.yml
      

      Actual Results

      BITBUCKET_HOME/shared/search does not contain the required yml files.

      The <Bitbucket Installation directory>/.install4j/installation.log contains a message of the form:

      [ERROR] com.install4j.runtime.installer.helper.launching.LaunchHelper: return value is 1
      [INFO] com.install4j.runtime.installer.helper.launching.LaunchHelper: stdout output was empty
             
      stderr output:
      ---BEGIN---
      su: user atlbitbucket does not exist
      ---END---
      

      The instance launches normally, but all code and repository search functionality doesn't work. On the Administration >> Server settings page the Search settings show a blank username and password.

      Workaround

      1. Copy the files from BITBUCKET_INSTALL/elasticsearch/config-template folder to BITBUCKET_HOME/shared/search 
      2. Restart Elasticsearch

      Attachments

        Issue Links

          Activity

            People

              cszmajda Cristan Szmajda (Inactive)
              jethomas Jeff Thomas
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: