question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kubernetes helm install with xpack security enabled won't start - security index is unavailable

See original GitHub issue

Chart version: 7.3.0 Kubernetes version: 1.14 Kubernetes provider: E.g. GKE (Google Kubernetes Engine) IBM Cloud

Helm Version:

helm get release output

e.g. helm get elasticsearch (replace elasticsearch with the name of your helm release)

Describe the bug: Master nodes won’t start: seeing this error in the logs: {“type”: “server”, “timestamp”: “2019-09-06T18:50:44,128+0000”, “level”: “ERROR”, “component”: “o.e.x.s.a.e.NativeUsersStore”, “cluster.name”: “elasticsearch”, “node.name”: “elasticsearch-master-0”, “cluster.uuid”: “SAahFVjPToKipK4KvR6zLQ”, “node.id”: “7-93zAjkSOKaGkNktJSbRw”, “message”: “security index is unavailable. short circuiting retrieval of user [redacted]” } Steps to reproduce:

  1. added the following to values: esConfig: elasticsearch.yml: | xpack.security.enabled: true

roles: master: “true” ingest: “false” data: “false” 3. extraEnvs:

  • name: ELASTIC_PASSWORD valueFrom: secretKeyRef: name: elastic-credentials key: password
  • name: ELASTIC_USERNAME valueFrom: secretKeyRef: name: elastic-credentials key: username

Expected behavior: 3 master nodes created with basic auth enabled.

Provide logs and/or server output (if relevant):

Any additional context:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
dunefrocommented, Aug 9, 2020

@BlackDark Yes, that worked for me too, I made the user with a different name and i got the same issue. I switched back to the name elastic and it worked for me.

1reaction
BlackDarkcommented, Aug 5, 2020

Run into similar problems. ELASTIC_USERNAME env was without effect for me. Was always elastic so i kept it for solving the readiness check in k8s. After that the node started up and i was able to connect kibana and log in with elastic user.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Security index is unavailable. short circuiting retrieval of user ...
Hi, i have a kubernetes cluster and im trying to configure elasticsearch with xpack.security.enabled through the helm template.
Read more >
How to disable xpack.security.enabled from helm char in ...
Try to edit the elasticsearch.yml file from the root user. (sudo vi YOUR_ES_PATH_CONF/elasticsearch.yml). Change the xpack.security.enabled ...
Read more >
Troubleshoot Bitnami Helm chart issues
Bitnami Helm charts provide an easy way to install and manage applications on Kubernetes, while following best practices in terms of security, ...
Read more >
Elastic Stack on Kubernetes 1.15 using Helm v3 - ITNEXT
Seamless upgrades to new versions of the Elastic Stack; Simple scaling that allows you to grow with your use cases; Default security on...
Read more >
Operator for Kubernetes — Jaeger documentation
If you want to install the Jaeger operator in a different namespace, you must edit the deployment files to change observability to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found