**Elasticsearch version:6.4.3
**Server OS version:Centos8
**Kibana version (if relevant):6.4.3
Describe the issue:
Hello, i tried to initializate searchguard for elasticsearch using sgadmin. sh.
Index has been created, but files from /sgconfig doesn’t apply.
Steps to reproduce:
Run the command:
./sgadmin -h “IP_ADDRESS” -icl -nhnv -cd …/sgconfig/ -cacert /path/ -cert /path/ -key /path/
WARNING: JAVA_HOME not set, will use /usr/bin/java
Search Guard Admin v6
Will connect to IP:9300 … done
Elasticsearch Version: 6.4.3
Search Guard Version: 6.4.3-25.5
Connected as CN=—.—,OU=----,O=1—, Inc.,DC=—,DC=—
Contacting elasticsearch cluster ‘elasticsearch’ and wait for YELLOW clusterstate …
Clustername: test-app
Clusterstate: YELLOW
Number of nodes: 1
Number of data nodes: 1
searchguard index already exists, so we do not need to create one.
INFO: searchguard index state is YELLOW, it seems you miss some replicas
Populate config from /usr/share/elasticsearch/plugins/search-guard-6/sgconfig
Will update ‘sg/config’ with …/sgconfig/sg_config.yml
FAIL: Configuration for ‘config’ failed because of java.lang.IllegalArgumentException: Rejecting mapping update to [searchguard] as the final mapping would have more than 1 type: [sg, doc]
Will update ‘sg/roles’ with …/sgconfig/sg_roles.yml
FAIL: Configuration for ‘roles’ failed because of java.lang.IllegalArgumentException: Rejecting mapping update to [searchguard] as the final mapping would have more than 1 type: [sg, doc]
Will update ‘sg/rolesmapping’ with …/sgconfig/sg_roles_mapping.yml
FAIL: Configuration for ‘rolesmapping’ failed because of java.lang.IllegalArgumentException: Rejecting mapping update to [searchguard] as the final mapping would have more than 1 type: [sg, doc]
Will update ‘sg/internalusers’ with …/sgconfig/sg_internal_users.yml
FAIL: Configuration for ‘internalusers’ failed because of java.lang.IllegalArgumentException: Rejecting mapping update to [searchguard] as the final mapping would have more than 1 type: [sg, doc]
Will update ‘sg/actiongroups’ with …/sgconfig/sg_action_groups.yml
FAIL: Configuration for ‘actiongroups’ failed because of java.lang.IllegalArgumentException: Rejecting mapping update to [searchguard] as the final mapping would have more than 1 type: [sg, doc]
FAIL: 1 nodes reported failures. First failure is FailedNodeException[Failed node [5sJBCIw6TBmq6OAi4mzcrQ]]; nested: RemoteTransportException[[es.1cloud.ru][192.168.101.101:9300][cluster:admin/searchguard/config/update[n]]]; nested: ElasticsearchException[java.util.concurrent.TimeoutException: Timeout after 5SECONDS while retrieving configuration for config, roles, rolesmapping, internalusers, actiongroups]; nested: NotSerializableExceptionWrapper[timeout_exception: Timeout after 5SECONDS while retrieving configuration for config, roles, rolesmapping, internalusers, actiongroups];
FAIL: Expected 1 nodes to return response, but got 0
Done with failures
Additional data:
Im tried delete index “searchguard” and run it again, but it doesn’t work.
How i can fix this? Thank you.