Fix the Elasticsearch install for x86_64 systems
What does this merge request do and why?
I was unable to install Elasticsearch on my Precision 5570 with a i7-12700H cpu on Linux, since the URL was returning a 404.
Turns out the URL should have x86_64
as the machine architecture, not amd64
.
How to set up and validate locally
- Have an x86_64 machine (I'm running Linux but not sure if that's relevant)
- Move the existing Elasticsearch dir if it already exists
mv elasticsearch elasticsearch.bak
- Run
gdk config set elasticsearch.enabled true
- Run
gdk reconfigure
- The install should fail on main, but pass on this branch
Before
$ gdk reconfigure
--------------------------------------------------------------------------------
Ensuring GDK managed configuration files are up-to-date
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Ensuring necessary databases are setup and seeded
--------------------------------------------------------------------------------
gitlabhq_development exists, nothing to do here.
gitlabhq_development_ci exists, nothing to do here.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
make: *** [support/makefiles/Makefile.elasticsearch.mk:12: elasticsearch/lib/elasticsearch-8.11.4.jar] Error 2
❌️ ERROR: Failed to reconfigure.
-------------------------------------------------------
You can try the following that may be of assistance:
- Run 'gdk doctor'.
- Visit the troubleshooting documentation:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/troubleshooting/index.md.
- Visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues to
see if there are known issues.
- Run 'gdk reset-data' if appropriate.
- Run 'gdk pristine' which will restore your GDK to a pristine state.
-------------------------------------------------------
After
$ gdk reconfigure
--------------------------------------------------------------------------------
Ensuring GDK managed configuration files are up-to-date
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Ensuring necessary databases are setup and seeded
--------------------------------------------------------------------------------
gitlabhq_development exists, nothing to do here.
gitlabhq_development_ci exists, nothing to do here.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 601M 100 601M 0 0 7485k 0 0:01:22 0:01:22 --:--:-- 7623k
--------------------------------------------------------------------------------
Performing npm steps for /home/keeyan/repos/gitlab-development-kit/gitlab-http-router
--------------------------------------------------------------------------------
up to date, audited 243 packages in 513ms
61 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
--------------------------------------------------------------------------------
Updating gitlab-org/gitlab-elasticsearch-indexer
--------------------------------------------------------------------------------
Successfully fetched and checked out 'v5.3.0' for 'gitlab-elasticsearch-indexer/'
--------------------------------------------------------------------------------
Installing asdf tools from /home/keeyan/repos/gitlab-development-kit/gitlab-elasticsearch-indexer/.tool-versions
--------------------------------------------------------------------------------
golang 1.23.1 is already installed
ruby 3.2.4 is already installed
--------------------------------------------------------------------------------
Building gitlab-org/gitlab-elasticsearch-indexer version v5.3.0
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Reconfigured successfully as of 2024-10-03 14:22:35
gitlab-http-router-setup: 2 sec(s)
Took 105 sec(s) total
--------------------------------------------------------------------------------
Impacted categories
The following categories relate to this merge request:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Merge request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctor
test added, if needed. -
Add the ~highlight
label if this MR should be included in theCHANGELOG.md
.