I am trying to deploy Elastic Enterprise but when I add the secret key... I mean, I think this needs to be an array because this is what it says here, but I a get this error message:
root@localhost:~# docker-compose -f elasticsearch-docker-compose.yml up -d
ERROR: The Compose file './elasticsearch-docker-compose.yml' is invalid because:
services.enterprisesearch.environment contains {"secret_management.encryption_keys": ["4096ea199bb51beb77d815c5da18d1aebb6e4a167dcc9b1ebd8b27723950d294"]}, which is an invalid type, it should be a string
Found java executable in PATH
Java version detected: 1.8.0_252 (major version: 8)
Enterprise Search is starting...
Invalid config file (/usr/share/enterprise-search/config/enterprise-search.yml):
The setting '#/secret_management/encryption_keys' is not valid
No secret management encryption keys were provided.
Your secrets cannot be stored unencrypted.
You can use the following generated encryption key in your config file to store new encrypted secrets:
I am a little unclear where you are at in the process....
To Run Elasticsearch Enterprise Search you already need and Elasticsearch cluster up and running or are you trying do do this all in one docker compose file?
Perhaps If you share your docker compose we can help.
I just ran a docker compose with Kibana and ES and all running local and then just ran this seperate docker command to just check and it all came up (takes a little while) as shown here
The docker-compose.yml file you created didn't work as expected, so I made a combination of yours and mine.
The result? Now Enterprise Search looks to be up but for some reason when I hit the endpoint its endpoint (http://xx.xx.xxx.xxx:3002) it redirects me to http://localhost:3002/welcome
When I hit the endpoint, this its creae thie log
ent_search | [2021-02-11T13:55:39.150+00:00][1][2500][connectors][INFO]: [Worker 0c86a44b96c1] The system is in read-only mode, cannot claim job; retrying in 60 seconds
ent_search | [2021-02-11T13:55:52.013+00:00][1][2504][app-server][INFO]: [1d214313-ddd2-472c-9aa2-56b65bfbb8ca] Started GET "/" for 186.6.254.48 at 2021-02-11 13:55:52 +0000
ent_search | [2021-02-11T13:55:52.109+00:00][1][2504][action_controller][INFO]: [1d214313-ddd2-472c-9aa2-56b65bfbb8ca] Processing by SharedTogo::HomeController#index as HTML
ent_search | [2021-02-11T13:55:52.111+00:00][1][2504][action_controller][INFO]: [1d214313-ddd2-472c-9aa2-56b65bfbb8ca] Parameters: {"host"=>"localhost:3002", "protocol"=>"http"}
ent_search | [2021-02-11T13:55:52.173+00:00][1][2504][action_controller][INFO]: [1d214313-ddd2-472c-9aa2-56b65bfbb8ca] Redirected to http://localhost:3002/welcome
ent_search | [2021-02-11T13:55:52.233+00:00][1][2504][action_controller][INFO]: [1d214313-ddd2-472c-9aa2-56b65bfbb8ca] Completed 302 Found in 121ms
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.