ERROR: All shards failed for phase: [query]

Hello,

I'm using ElasticSearch and Kibana with X-Pack. When I try to start elasticsearch, I get these error messages.
And I have no logout button on Kibana.
I've created a kibana_user and a superuser, I Can log in with all of them but I can't log out or do something.

I'll work with Java Rest Client API High Level, but I can't log in or fix the settings in Kibana. I hope u can help me :slight_smile:
no%20log%20out

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with </> icon. Check the preview window.

Could you edit your post please?

Most likely you trial license expired?

[2018-02-03T12:27:01,232][INFO ][o.e.g.GatewayService     ] [my_first_node] recovered [28] indices into cluster_state
[2018-02-03T12:27:01,232][WARN ][o.e.l.LicenseService     ] [my_first_node]
**# License [will expire] on [Sunday, February 25, 2018]. If you have a new license, please update it.**
**# Otherwise, please reach out to your support contact.**
**# Commercial plugins operate with reduced functionality on license expiration:**
**# - security**
**#  - Cluster health, cluster stats and indices stats operations are blocked**
**#  - All data operations (read and write) continue to work**
**# - watcher**
**#  - PUT / GET watch APIs are disabled, DELETE watch API continues to work**
**#  - Watches execute and write to the history**
**#  - The actions of the watches don't execute**
**# - monitoring**
**#  - The agent will stop collecting cluster and indices metrics**
**#  - The agent will stop automatically cleaning indices older than [xpack.monitoring.history.duration]**
**# - graph**
**#  - Graph explore APIs are disabled**
**# - ml**
**#  - Machine learning APIs are disabled**
**# - logstash**
**#  - Logstash specific APIs are disabled. You can continue to manage and poll stored configurations**
**# - deprecation**
**#  - Deprecation APIs are disabled**
**# - upgrade**
**#  - Upgrade API is disabled**
[2018-02-03T12:27:03,094][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,094][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,125][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_kibana_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,125][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_logstash_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,125][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,125][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,125][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_kibana_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,125][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_logstash_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,125][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,125][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_kibana_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,172][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,172][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,172][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,172][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_version_mismatch], reason [all shards failed]
[2018-02-03T12:27:03,172][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_kibana_version_mismatch]
[2018-02-03T12:27:03,203][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_logstash_version_mismatch]
[2018-02-03T12:27:03,203][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_version_mismatch]
[2018-02-03T12:27:03,219][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,219][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,219][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_xpack_license_expiration], reason [all shards failed]
[2018-02-03T12:27:03,219][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_cluster_status], reason [all shards failed]
[2018-02-03T12:27:03,219][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,219][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_xpack_license_expiration], reason [all shards failed]
[2018-02-03T12:27:03,219][DEBUG][o.e.a.s.TransportSearchAction] [my_first_node] All shards failed for phase: [query]
[2018-02-03T12:27:03,219][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [my_first_node] failed to execute [search] input for watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_cluster_status], reason [all shards failed]
[2018-02-03T12:27:03,234][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_cluster_status]
[2018-02-03T12:27:03,250][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_xpack_license_expiration]
[2018-02-03T12:27:07,508][INFO ][o.e.c.m.MetaDataCreateIndexService] [my_first_node] [.monitoring-es-6-2018.02.03] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards [1]/[1], mappings [doc]
[2018-02-03T12:27:07,709][INFO ][o.e.c.r.a.AllocationService] [my_first_node] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.monitoring-es-6-2018.01.22][0]] ...]).
[2018-02-03T12:27:08,621][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_logstash_version_mismatch]
[2018-02-03T12:27:08,621][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_xpack_license_expiration]
[2018-02-03T12:27:08,700][WARN ][o.e.x.w.e.ExecutionService] [my_first_node] failed to execute watch [HGlhEm3ATCqBtxGsyMTsXw_elasticsearch_cluster_status]
[2018-02-03T12:28:08,907][INFO ][o.e.c.m.MetaDataCreateIndexService] [my_first_node] [.watcher-history-7-2018.02.03] creating index, cause [auto(bulk api)], templates [.watch-history-7], shards [1]/[1], mappings [doc]
[2018-02-03T12:28:08,991][INFO ][o.e.c.m.MetaDataMappingService] [my_first_node] [.watcher-history-7-2018.02.03/mpItdX9oRKy8A49wO9UaLQ] update_mapping [doc]
[2018-02-03T12:28:09,080][INFO ][o.e.c.m.MetaDataMappingService] [my_first_node] [.watcher-history-7-2018.02.03/mpItdX9oRKy8A49wO9UaLQ] update_mapping [doc]Preformatted text

As I said, please format your code using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Please edit your posts.

Did you install x-pack on Kibana as well? Did you change the configuration of kibana? Did you restart Kibana?

Yes, I installed X-Pack on both and I changed also the config on Kibana

Could you share what you changed?

elasticsearch.username: "kibana"
elasticsearch.password: "XXXXXXXXXXX"

xpack.graph.enabled: false
xpack.ml.enabled: false
xpack.monitoring.enabled: false
xpack.reporting.enabled: false
xpack.security.enabled: false

This is in Kibana, right?
I guess you changed that in elasticsearch as well?
You need also to disable alerting I think.

Or remove xpack entirely if you are not going to use it.

Yes, this is in Kibana. I already changed the configurations also in elasticsearch. I need x-pack... which alerting?

What do you need xpack for if you are disabling all services ?

Should i change false to right?
Or uninstall xpack?

I have no idea of what you want to do. I can't answer. Could you clarify ?

I want to use elasticsearch and kibana with x-pack. I ran the "Cluster Health" (Java API) without x-pack, it worked. Now I want to do the "Cluster Health" with x-pack. I have installed x-pack, I have changed all configurations in Kibana.yml, elasticsearch.yml, pom.xml, Maven, as well as in the documentation.

I only get error messages. In addition, the bar "Loggout" in Kibana is missing, I can not change or view settings.

To install x-pack.

On elasticsearch, run:

bin/elasticsearch-plugin install x-pack

On Kibana, run:

bin/kibana-plugin install x-pack

Restart elasticsearch. Restart Kibana. And Wait.

Then open your browser (and refresh). That should be all what you need by default.

I have installed x-pack, I have changed all configurations in Kibana.yml, elasticsearch.yml,

You don't need to touch settings.

pom.xml, Maven, as well as in the documentation.

This is another story. First, make your Elasticsearch+Kibana works before moving forward.

I have already installed it, generated passwords, created kibana user, bootstrap password etc. :slight_smile:

So why are you modifying settings you don't need to touch?

sry, i thought i have to change it...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.