I am trying to install dotcms in a kops cluster. I have the DB and elasticsearch cluster running in AWS as an RDS instance and an ES cluster in the same namespace. I have followed the documentation but the startup procedure does not appear to be trying to connect to the ES cluster.
Here are the ENV Vars that are getting set:
Resetting 'ES_ENDPOINTS'
ES_AUTH_TYPE=BASIC
ES_AUTH_BASIC_USER=dotcms-system
ES_AUTH_BASIC_PASSWORD=<secure-password>
PROVIDER_ELASTICSEARCH_DNSNAMES=elasticsearch-es-http
dotCMS environment ....
Tomcat config ....
Database config ....
Hazelcast Config ....
Elasticsearch Config ....
PROVIDER_ELASTICSEARCH_DNSNAMES=elasticsearch-es-http
PROVIDER_ELASTICSEARCH_CLUSTER_NAME=dotCMSContentIndex
PROVIDER_ELASTICSEARCH_ADDR_TRANSPORT=
PROVIDER_ELASTICSEARCH_ADDR_TRANSPORT=elasticsearch-es-http
PROVIDER_ELASTICSEARCH_PORT_TRANSPORT=9300
PROVIDER_ELASTICSEARCH_ADDR_HTTP=elasticsearch-es-http
PROVIDER_ELASTICSEARCH_PORT_HTTP=9200
PROVIDER_ELASTICSEARCH_ENABLE_HTTP=true
PROVIDER_ELASTICSEARCH_AUTH_TYPE=BASIC
PROVIDER_ELASTICSEARCH_AUTH_BASIC_USER=dotcms-system
PROVIDER_ELASTICSEARCH_AUTH_BASIC_PASSWORD=<secure password>
Here is the output of the error I get:
20:27:17.318 WARN business.ESContentFactoryImpl - ----------------------------------------------
20:27:17.318 WARN business.ESContentFactoryImpl - Elasticsearch error in index 'cluster_ebdf7909e4.working_20210706224230'
20:27:17.319 WARN business.ESContentFactoryImpl - ES Query: {"size":10000,"timeout":"15000ms","query":{"query_string":{"query":"+contenttype:host +working:true +host.hostname:localhost -basetype:6 -basetype:3","fields":[],"type":"best_fields","default_operator":"or","max_determinized_states":10000,"enable_position_increments":true,"fuzziness":"AUTO","fuzzy_prefix_length":0,"fuzzy_max_expansions":50,"phrase_slop":0,"escape":false,"auto_generate_synonyms_phrase_query":true,"fuzzy_transpositions":true,"boost":1.0}},"_source":{"includes":["inode","identifier"],"excludes":[]},"sort":[{"moddate":{"order":"desc"}}],"track_total_hits":10000000}
20:27:17.319 WARN business.ESContentFactoryImpl - Class org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]
Docker file is pretty straight forward:
FROM dotcms/dotcms:21.05.1
USER root
RUN [[ -d /data ]] || mkdir /data
RUN [[ -d /data/shared ]] || mkdir /data/shared
RUN [[ -d /data/shared/assets ]] || mkdir /data/shared/assets
ENTRYPOINT ["/sbin/ti
Thanks for any assistance.