Hi!
I've managed to get Elastic 7.6 running on Ubuntu 18.04 LTS in AWS, I have access to it via a REST client using port tunnelling in a SSH connection, and while it is accessible (returning the standard "status" message from curl -XGET 'localhost:8881/'
), there are errors, which — after discussing with someone more qualified than myself — appear related to Elastic struggling with nodes:
[2020-02-19T09:23:35,746][WARN ][o.e.c.c.ClusterFormationFailureHelper] [ip-172-31-14-190] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [52.2.0.8] to bootstrap a cluster: have discovered [{ip-172-31-14-190}{ECULpkNnST6lEdrAJfp5Yg}{n3DpWCldST6GxNn0sHUAHw}{localhost}{127.0.0.1:9300}{dilm}{ml.machine_memory=4086390784, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{ip-172-31-14-190}{ECULpkNnST6lEdrAJfp5Yg}{n3DpWCldST6GxNn0sHUAHw}{localhost}{127.0.0.1:9300}{dilm}{ml.machine_memory=4086390784, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
So, as advised, I edited: "elasticsearch.yml" and added:
discovery.type: single-node
… but get the following errors after running the command journalctl -xe
:
-- The result is RESULT.
Feb 19 09:50:13 ip-172-31-14-190 sudo[9133]: ubuntu : TTY=pts/0 ; PWD=/etc/elasticsearch ; USER=root ; COMMAND=/bin/nano elasticsearch.yml
Feb 19 09:50:13 ip-172-31-14-190 sudo[9133]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 19 09:50:16 ip-172-31-14-190 sshd[9135]: Received disconnect from [IP_ADDRESS] port 60385:11: [preauth]
Feb 19 09:50:16 ip-172-31-14-190 sshd[9135]: Disconnected from authenticating user root [IP_ADDRESS] port 60385 [preauth]
Feb 19 09:50:40 ip-172-31-14-190 sudo[9133]: pam_unix(sudo:session): session closed for user root
Feb 19 09:53:57 ip-172-31-14-190 sshd[9138]: Received disconnect from [IP_ADDRESS] port 52178:11: [preauth]
Feb 19 09:53:57 ip-172-31-14-190 sshd[9138]: Disconnected from authenticating user root [IP_ADDRESS] port 52178 [preauth]
Feb 19 09:55:02 ip-172-31-14-190 sudo[9140]: ubuntu : TTY=pts/0 ; PWD=/etc/elasticsearch ; USER=root ; COMMAND=/bin/nano elasticsearch.yml
Feb 19 09:55:02 ip-172-31-14-190 sudo[9140]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 19 09:55:04 ip-172-31-14-190 sshd[9142]: Received disconnect from [IP_ADDRESS] port 39241:11: Bye Bye [preauth]
Feb 19 09:55:04 ip-172-31-14-190 sshd[9142]: Disconnected from [IP_ADDRESS] port 39241 [preauth]
Feb 19 09:55:53 ip-172-31-14-190 sudo[9140]: pam_unix(sudo:session): session closed for user root
Feb 19 09:55:58 ip-172-31-14-190 polkitd(authority=local)[866]: Registered Authentication Agent for unix-process:9145:6837580 (system bus name :1.73 [/usr/bin/pkttyagent --notify-fd 5 --fallback], obj
Feb 19 09:56:02 ip-172-31-14-190 polkitd(authority=local)[866]: Unregistered Authentication Agent for unix-process:9145:6837580 (system bus name :1.73, object path /org/freedesktop/PolicyKit1/Authenti
Feb 19 09:56:02 ip-172-31-14-190 polkitd(authority=local)[866]: Operator of unix-process:9145:6837580 FAILED to authenticate to gain authorization for action org.freedesktop.systemd1.manage-units for
Feb 19 09:56:05 ip-172-31-14-190 sudo[9153]: ubuntu : TTY=pts/0 ; PWD=/etc/elasticsearch ; USER=root ; COMMAND=/bin/systemctl restart elasticsearch.service
Feb 19 09:56:05 ip-172-31-14-190 sudo[9153]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 19 09:56:05 ip-172-31-14-190 systemd[1]: Starting Elasticsearch...
-- Subject: Unit elasticsearch.service has begun start-up
-- Defined-By: systemd
-- Support: Enterprise open source support | Ubuntu-- Unit elasticsearch.service has begun starting up.
Feb 19 09:56:06 ip-172-31-14-190 elasticsearch[9156]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Feb 19 09:56:15 ip-172-31-14-190 systemd-timesyncd[538]: Network configuration changed, trying to establish connection.
Feb 19 09:56:15 ip-172-31-14-190 systemd-timesyncd[538]: Synchronized to time server [IP_ADDRESS] (ntp.ubuntu.com).
Feb 19 09:56:24 ip-172-31-14-190 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Feb 19 09:56:24 ip-172-31-14-190 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Feb 19 09:56:24 ip-172-31-14-190 systemd[1]: Failed to start Elasticsearch.
-- Subject: Unit elasticsearch.service has failed
-- Defined-By: systemd
-- Support: Enterprise open source support | Ubuntu-- Unit elasticsearch.service has failed.
-- The result is RESULT.
Feb 19 09:56:24 ip-172-31-14-190 sudo[9153]: pam_unix(sudo:session): session closed for user root
Feb 19 09:56:39 ip-172-31-14-190 sudo[9299]: ubuntu : TTY=pts/0 ; PWD=/etc/elasticsearch ; USER=root ; COMMAND=/bin/nano elasticsearch.yml
Feb 19 09:56:39 ip-172-31-14-190 sudo[9299]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 19 09:57:19 ip-172-31-14-190 sudo[9299]: pam_unix(sudo:session): session closed for user root
I don't remember having these problems with Elastic 6.x in production, or installing 7.x on the development Mac, so I'm at a loss here.
At this point, it's not as important to me what the problem is as it is getting Elastic up, running, and stable.