Been trying to upgrade to ES 6.1.1 and SG6
Was working fine on SG5 and ES5, upgraded to 6, cluster is fine and shows as green (at one point at least), before i deleted the searchguard index to try and start fresh my old users would login in kibana but no sgadmin…
- Search Guard and Elasticsearch version
ES 6.1.1
SG6 6.1.1-20.1
- Installed and used enterprise modules, if any
none
- JVM version and operating system version
Ubuntu 16.04
openjdk version “1.8.0_151”
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
- Search Guard configuration files
tried with blank (the initial files) and my old ones, error is the same
- Other installed Elasticsearch or Kibana plugins, if any
none
sudo ./sgadmin.sh -cd …/sgconfig/original/ -ks sgadmin.jks -kspass password -ksalias client -ts truststore.jks -tspass password -icl -nhnv -h 10.10.x.x
WARNING: JAVA_HOME not set, will use /usr/bin/java
Search Guard Admin v6
Will connect to 10.10.x.x:9300 … done
Connected as ---------------------------------------------------------
Contacting elasticsearch cluster ‘elasticsearch’ and wait for YELLOW clusterstate …
Cannot retrieve cluster state due to: No user found for cluster:monitor/health. This is not an error, will keep on trying …
Root cause: ElasticsearchSecurityException[No user found for cluster:monitor/health] (org.elasticsearch.ElasticsearchSecurityException/org.elasticsearch.ElasticsearchSecurityException)
-
Try running sgadmin.sh with -icl (but no -cl) and -nhnv (If that works you need to check your clustername as well as hostnames in your TLS certificates)
-
Make sure that your keystore or PEM certificate is a client certificate (not a node certificate) and configured properly in elasticsearch.yml
-
If this is not working, try running sgadmin.sh with --diagnose and see diagnose trace log file)
-
Add --accept-red-cluster to allow sgadmin to operate on a red cluster.