Elasticsearch Server does not start via Gitlab
Dear Gitlab community,
I tried to install Elasticsearch Gitlab EE on GitLab Enterprise Edition 11.4.5-ee Self Hosted https://docs.gitlab.com/ee/integration/elasticsearch.html
At first some feedback on the documentation:
-
I had to install go on Ubuntu 16.04 Server based on the following guide to install gitlab-elasticsearch-indexer
https://golangcode.com/how-to-install-go-in-ubuntu-16-04/
Installing by apt-get go-lang was not working since a context package was missing. -
I could not use "sudo make install" for gitlab-elasticsearch-indexer since sudo did not know about go.
I mv the bin with sudo to the /bin folder installing it manually. -
The location of the elastic search option has changed from
Admin -> Settings
to
Admin --> Settings -> Integration
Now I have an problem:
After doing :
$ sudo gitlab-rake gitlab:elastic:create_empty_index
rake aborted!
Faraday::ConnectionFailed: Connection refused - Connection refused - connect(2) for "::1" port 9201 (localhost:9201)
/opt/gitlab/embedded/service/gitlab-rails/ee/lib/gitlab/elastic/helper.rb:26:in `create_empty_index'
/opt/gitlab/embedded/service/gitlab-rails/ee/lib/tasks/gitlab/elastic.rake:95:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>
In Gitlab I entered "http://localhost:9201" as the elastic search URL hoping It will be started with this port and pressed save. In the Admin dashboard elasticsearch is indicated as running. When I nmap localhost, the port 9201 is closed.