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

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

      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

            [BSERV-9056] Installer does not copy Elasticsearch configuration into BITBUCKET_HOME/shared/search

            Apoorva made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 198459 ]
            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 1587805 ] New: JAC Bug Workflow v3 [ 3136973 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Rafael Donato made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 198792 ]
            Aaron Bromberg (Inactive) made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 268842 ]
            Jeff Thomas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 198459 ] New: This issue links to "Page (Atlassian Documentation)" [ 198459 ]
            ThiagoBomfim (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 198459 ] New: This issue links to "Page (Atlassian Documentation)" [ 198459 ]
            ThiagoBomfim (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 198459 ] New: This issue links to "Page (Atlassian Documentation)" [ 198459 ]
            ThiagoBomfim (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 198459 ] New: This issue links to "Page (Atlassian Documentation)" [ 198459 ]
            ThiagoBomfim (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 198459 ] New: This issue links to "Page (Atlassian Documentation)" [ 198459 ]

              cszmajda Cristan Szmajda (Inactive)
              jethomas Jeff Thomas
              Affected customers:
              1 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: