ERROR: All shards failed for phase: [query]


(gkce gns) #1

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:


(David Pilato) #2

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?


(David Pilato) #3

Most likely you trial license expired?


(gkce gns) #4
[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]

(gkce gns) #5
[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

(David Pilato) #6

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?


(gkce gns) #7

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


(David Pilato) #8

Could you share what you changed?


(gkce gns) #9
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

(David Pilato) #10

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.


(gkce gns) #11

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


(David Pilato) #12

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


(gkce gns) #13

Should i change false to right?
Or uninstall xpack?


(David Pilato) #14

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


(gkce gns) #15

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.


(David Pilato) #16

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.


(gkce gns) #17

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


(David Pilato) #18

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


(gkce gns) #19

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


(system) #20

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