Hi team, i have been trying a lot but unable to ov...
# troubleshoot
w
Hi team, i have been trying a lot but unable to overcome
Caused by: <http://javax.net|javax.net>.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
this exception for Elastic Search. I have also included all the keystore/trusttore values in helm config: Can someone please help me on this....I have been struggling on this for a week now!
Copy code
- name: ELASTICSEARCH_HOST
  value: "{{ .Values.global.elasticsearch.host }}"
- name: ELASTICSEARCH_PORT
  value: "{{ .Values.global.elasticsearch.port }}"
- name: SKIP_ELASTICSEARCH_CHECK
  value: "{{ .Values.global.elasticsearch.skipcheck }}"
{{- with .Values.global.elasticsearch.useSSL }}
- name: ELASTICSEARCH_USE_SSL
  value: {{ . | quote }}
{{- end }}
{{- with .Values.global.elasticsearch.auth }}
- name: ELASTICSEARCH_USERNAME
  value: {{ .username }}
- name: ELASTICSEARCH_PASSWORD
  {{- if .password.value }}
  value: {{ .password.value | quote }}
  {{- else }}
  valueFrom:
    secretKeyRef:
      name: "{{ .password.secretRef }}"
      key: "{{ .password.secretKey }}"
  {{- end }}
{{- end }}
- name: ELASTICSEARCH_SSL_PROTOCOL
  value: "{{ .Values.elastic.protocol }}"
- name: ELASTICSEARCH_SSL_TRUSTSTORE_FILE
  value: "{{ .Values.elastic.truststore }}"
- name: ELASTICSEARCH_SSL_TRUSTSTORE_TYPE
  value: "{{ .Values.elastic.trustType }}"
- name: ELASTICSEARCH_SSL_TRUSTSTORE_PASSWORD
  valueFrom:
    secretKeyRef:
      name: {{ .Values.elastic.secretEnv.secretRef }}
      key: {{ .Values.elastic.secretEnv.secretKey }}
- name: ELASTICSEARCH_SSL_KEYSTORE_FILE
  value: "{{ .Values.elastic.keystore }}"
- name: ELASTICSEARCH_SSL_KEYSTORE_TYPE
  value: "{{ .Values.elastic.trustType }}"
- name: ELASTICSEARCH_SSL_KEYSTORE_PASSWORD
  valueFrom:
    secretKeyRef:
      name: {{ .Values.elastic.secretEnv.secretRef }}
      key: {{ .Values.elastic.secretEnv.secretKey }}
d
@dazzling-judge-80093 Any ideas here? 🙂 In the meantime, have you checked out this thread? https://datahubspace.slack.com/archives/C029A3M079U/p1638571201168700?thread_ts=1638560041.147600&amp;cid=C029A3M079U
w
Hi @delightful-ram-75848, i looked into it but was not helpful! Do we need to configure the java env variables inside the pod with keystore/truststore certs or do we have to pass the these values as above via helm chart?
I am facing this issue in datahub-system-upgrade
a
you may need to make the same files available to the system upgrade container
b
@astonishing-answer-96712 @white-horse-97256 i am currently stuck at the same point. were you guys able to sort this out? any hints?
a
Could you provide a few more details? What’s your deployment method and what version are you on?
b
i’m deploying into an eks-cluster on aws. datahub is on v0.10.0 and elastic (v7.17.3) is deployed via the prerequisites-chart (v0.0.14) into the cluster. i’m creating a self-signed key/truststore via cert-manager, set the env-variables and mounted the files into system-upgrade, frontend, elasticsetup & backend/gms.
a
@dazzling-yak-93039 might be able to help here- I’d also see if adding the fingerprint arg to the recipe might help https://datahubproject.io/docs/generated/ingestion/sources/elasticsearch/#config-details