DynamiteAI/dynamite-nsm

Just install elasticsearch always failed in ubuntu 20

daoxuans opened this issue · 1 comments

I have a virtual machine, 16GB memory and 16 vCpus, OS(ubuntu 20)
Just install elasticsearch always failed, i found that it is related to the security certificate setting and password changing.

When I ignore this error and start directly, I find that I cannot log in with my account password (elastic/mypasswd)

root@earth:~# dynamite elasticsearch install
2020-08-07 17:40:28 DYNAMITE_CMD INFO | LOG LEVEL: 20
2020-08-07 17:40:28 DYNAMITE_CMD INFO | LOG FILE: /var/log/dynamite/dynamite-07-08-2020.log
[?] Enter the password for logging into ElasticSearch:
[?] Confirm Password:
2020-08-07 17:40:46 ELASTICSEARCH ERROR | Could not resolve ES_PATH_CONF environment variable. Is ElasticSearch installed?
2020-08-07 09:41:19 DOWNLOAD_MANAGER | 2.34 MB/s |###################################| (elasticsearch-7.2.0.tar.gz) Time: 0:02:24
2020-08-07 09:43:49 DOWNLOAD_MANAGER | 1.74 MB/s |###########################################| (java-11.0.2.tar.gz) Time: 0:01:48
useradd: user 'dynamite' already exists
2020-08-07 17:45:40 ELASTICSEARCH INFO | Creating ElasticSearch installation, configuration, and logging directories.
2020-08-07 17:45:41 ELASTICSEARCH INFO | Updating ElasticSearch default configuration path [/etc/dynamite/elasticsearch/]
2020-08-07 17:45:41 ELASTICSEARCH INFO | Updating ElasticSearch default home path [/opt/dynamite/elasticsearch/]
2020-08-07 17:45:41 ELASTICSEARCH INFO | Overwriting default configuration.
2020-08-07 17:45:41 ELASTICSEARCH INFO | Setting up JVM default heap settings [4GB]
2020-08-07 17:45:41 ELASTICSEARCH INFO | Setting up Max File Handles [65535] VM Max Map Count [262144]
2020-08-07 17:45:41 ELASTICSEARCH INFO | Creating certificate keystore.
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-08-07 17:45:49 ELASTICSEARCH INFO | [Attempt: 1] Starting ElasticSearch on PID [8357]
2020-08-07 17:45:54 ELASTICSEARCH INFO | [Attempt: 2] Starting ElasticSearch on PID [9176]
2020-08-07 17:45:54 ELASTICSEARCH INFO | Waiting for ElasticSearch API to become accessible.
2020-08-07 17:45:59 ELASTICSEARCH INFO | Waiting for ElasticSearch API to become accessible.
2020-08-07 17:46:04 ELASTICSEARCH INFO | ElasticSearch API is up.
2020-08-07 17:46:09 ELASTICSEARCH INFO | Bootstrapping passwords.
2020-08-07 17:46:12 ELASTICSEARCH ERROR | General exception while resetting Elasticsearch password.
2020-08-07 17:46:12 ELASTICSEARCH ERROR | Failed to bootstrap password.
2020-08-07 17:46:12 ELASTICSEARCH ERROR | General error occurred while attempting to bootstrap ElasticSearch passwords.
2020-08-07 17:46:12 DYNAMITE_CMD CRITICAL | Fatal error. Add --verbose flag for details. Exiting.

please add the --verbose flag and include output.