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
- Copy the files from BITBUCKET_INSTALL/elasticsearch/config-template folder to BITBUCKET_HOME/shared/search
- Restart Elasticsearch
Form Name |
---|
Hi joachim.bollen1, Thanks for raising that support ticket and attaching that logfile. The specific problem in this issue doesn't seem to be happening in your case. I see in your installation.log:
which indicates to me that the installation of BITBUCKET_INSTALL/elasticsearch/config-template seemed to work perfectly. I think something else must have happened to your client's instance for it to come up with the wrong configuration. This might have to be followed up separately (perhaps on the support ticket you raised).