Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start elasticsearh. Can`t create security index. #73

Closed
Pupkur opened this issue Jul 4, 2019 · 3 comments
Closed

Failed to start elasticsearh. Can`t create security index. #73

Pupkur opened this issue Jul 4, 2019 · 3 comments

Comments

@Pupkur
Copy link

Pupkur commented Jul 4, 2019

.opendistro_security index does not exists, attempt to create it ... ERR: An unexpected IllegalArgumentException occured: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [2670]/[1000] maximum shards open;
Trace:
java.lang.IllegalArgumentException: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [2670]/[1000] maximum shards open;

And when I`m trying:

curl -k -X PUT https://SERVER_IP:9200/_cluster/settings -H "Content-Type: application/json" -d '{ "persistent": { "cluster.max_shards_per_node": "3000" } }'

Got error:
Open Distro Security not initialized.

@aetter
Copy link
Contributor

aetter commented Jul 8, 2019

Hi @Pupkur, try adding the setting to elasticsearch.yml so that you can get the cluster up and running. Then you can adjust as necessary.

@Pupkur
Copy link
Author

Pupkur commented Jul 9, 2019

Already trying. Not working :( Please take a look at elastic/elasticsearch#40803

@aetter
Copy link
Contributor

aetter commented Jul 9, 2019

Gotcha, that's almost certainly an Elasticsearch bug---unfortunate to get hit by it while you're trying to troubleshoot this issue. If you can, try disabling the security plugin temporarily, setting up the cluster how you'd like, and then re-enabling it. There's a simple toggle in elasticsearch.yml, although you won't be able to use Kibana until you've re-enabled it. https://opendistro.github.io/for-elasticsearch-docs/docs/security-configuration/disable/

@aetter aetter closed this as completed Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants