Dear @stephenb ,
I don't ask about magento, but ES, I heard a lot about and really would use in my projects, I want run ES properly on my laptop
ok, I found a link where someone talked about increasing memory in jvn.options (xms & xmx 1g) and ES starts finally
systemctl status elasticsearch.service
β elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2024-01-02 20:59:25 +01; 3min 21s ago
Docs: https://www.elastic.co
Main PID: 38708 (java)
Tasks: 82 (limit: 9301)
Memory: 1.5G
CGroup: /system.slice/elasticsearch.service
ββ38708 /usr/share/elasticsearch/jdk/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=/usr/share/elasticsearch/bin/elasticsearch -Dc>
ββ38782 /usr/share/elasticsearch/jdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Djava.security.manager=allow -XX:>
ββ38806 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller
janv. 02 20:58:15 hish-Lenovo-ideapad-310-15IKB systemd[1]: Starting Elasticsearch...
janv. 02 20:58:27 hish-Lenovo-ideapad-310-15IKB systemd-entrypoint[38708]: janv. 02, 2024 8:58:27 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
janv. 02 20:58:27 hish-Lenovo-ideapad-310-15IKB systemd-entrypoint[38708]: WARNING: COMPAT locale provider will be removed in a future release
janv. 02 20:59:25 hish-Lenovo-ideapad-310-15IKB systemd[1]: Started Elasticsearch.
Why isn't this mentioned in the official install documentation ?
Now I finally create the token
sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node
eyJ2ZXIiOiI4LjExLjMiLCJhZHIiOlsiMTkyLjE2OC44LjEwMDo5MjAwIl0sImZnciI6IjZjYmU5MmNiNDgxZjU2NWNmNzY0NmUzODUxNDRlNGIwYzMwZTc3ZjBiY2YxYWQ1ZjVlNTUwOGNiZWUxNzMxMTEiLCJrZXkiOiJ2M1BIeTR3QmxNLUNEZzNuSDlDRDpyTFRWNHNZb1FPMkt4RHk4SkhpdERRIn0=
But :
sudo /usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token
eyJ2ZXIiOiI4LjExLjMiLCJhZHIiOlsiMTkyLjE2OC44LjEwMDo5MjAwIl0sImZnciI6IjZjYmU5MmNiNDgxZjU2NWNmNzY0NmUzODUxNDRlNGIwYzMwZTc3ZjBiY2YxYWQ1ZjVlNTUwOGNiZWUxNzMxMTEiLCJrZXkiOiJ2M1BIeTR3QmxNLUNEZzNuSDlDRDpyTFRWNHNZb1FPMkt4RHk4SkhpdERRIn0=
ERROR: Skipping security auto configuration because it appears that the node is not starting
up for the first time. The node might already be part of a cluster and this auto setup utility is
designed to configure Security for new clusters only., with exit code 80
Any idea please ?
BTW :
curl -k -v -u elastic https://127.0.0.1:9200
Enter host password for user 'elastic':
* Uses proxy env variable no_proxy == 'localhost,127.0.0.0/8,::1'
* Trying 127.0.0.1:9200...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 9200 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=hish-Lenovo-ideapad-310-15IKB
* start date: Jan 2 14:28:38 2024 GMT
* expire date: Jan 1 14:28:38 2026 GMT
* issuer: CN=Elasticsearch security auto-configuration HTTP CA
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
* Server auth using Basic with user 'elastic'
> GET / HTTP/1.1
> Host: 127.0.0.1:9200
> Authorization: Basic ZWxhc3RpYzpEOEJVVURKXyphclR1UG5OY2gwdw==
> User-Agent: curl/7.68.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< X-elastic-product: Elasticsearch
< content-type: application/json
< content-length: 553
<
{
"name" : "hish-Lenovo-ideapad-310-15IKB",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Ih9nArXWRCW7PTpVF2cgqA",
"version" : {
"number" : "8.11.3",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "64cf052f3b56b1fd4449f5454cb88aca7e739d9a",
"build_date" : "2023-12-08T11:33:53.634979452Z",
"build_snapshot" : false,
"lucene_version" : "9.8.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
* Connection #0 to host 127.0.0.1 left intact
Thank you very much