here is what the logs says, i don't understand at all:
Bad Request :: {"path":"_xpack/security/user/_has_privileges","body":"{"index":[{"names":[".monitoring--2-"],"privileges":["read"]}]}","statusCode":400,"response":"No handler found for uri [_xpack/security/user/_has_privileges] and method [POST]"}
at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:295:15)
at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:254:7)
at HttpConnector. (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
at IncomingMessage.bound (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
if you have an idea it would be really helpfull!!!!
thank you!
By default when you install x-pack, it expects you already set up your security "layers" between the components. If you haven't set up the security between the components then they won't be able to communicate with each other because they will simply reject each others' request communicate.
So in this case, try disabling the security in your cluster.
Did you set security to false in both Elasticsearch and also in Kibana? If you disable security in elasticsearch.yml you need to also disable it in Kibana's kibana.yml file
Nothing seems very weird in either configuration. As a side note, Kibana will dynamically determine if it needs to use security by talking to Elasticsearch., but it shouldn't matte if you are explicit.
Which version of Kibana / Elasticsearch are you running? Also, which license level are you using?
i'm actually using kibana and elasticsearch version 6.0.0, and i'm using a free license,
Ah! I missed it in the screenshot. Sorry.
Ugh, so I have bad but also good news. You caught a bug in alpha2! The Monitoring UI is not checking that API only when security is in used. This is already fixed, but it obviously doesn't save you here.
Fortunately there is a workaround: you can leave Security enabled in Elasticsearch, but turn on anonymous access via a superuser role.
xpack.security.authc.anonymous.roles: superuser
Naturally this would not be a solution for a production setup, but you should never be running an alpha build in a production scenario.
thank you i will try this!
i didn't paid attention that i was in a beta version, do you know how i can do to downgrade my version without loosing my data?
You will need to reinstall completely as Elasticsearch 6.0 uses a newer version of Lucene for storage that Elasticsearch 5.x can not read. If you want to reindex your data from Elasticsearch 6.0, you should be able to install a separate instance of Elasticsearch side by side and use the reindex from remote API.
It's complaining about a field named cluster_uuid. This is most likely coming from X-Pack monitoring indices and it most commonly happens because the templates were deleted / overwritten.
It's hard to say what version you are seeing this issue under now, but the easiest thing to do is to open up Dev Tools within Kibana and then Console. In there, run this command:
DELETE /.monitoring-*
Alternatively you can do this from cURL (or your favorite command line tool):
curl -XDELETE localhost:9200/.monitoring-*
This will delete any X-Pack monitoring-generated indices. They will be recreated, but there should be no funny business with their templates being deleted in the middle. If you reindexed your data from the 6.0 cluster and simply brought over indices from that cluster, then it's critical to always pre-create mappings before creating indices. If you ended up copying over .monitoring-* indices, it's safe to just delete them and to allow it to start fresh.
As a completely unrelated suggestion, you should look into time-based indices for your own data so that they are easier to curate.
We have a few places that discuss it, including the new "rollover" feature:
hi!
thanks for your answer,
when i moved from 6.0 to 5.4.3 i had delete all my indices and recreated them.
i tried : DELETE /.monitoring-*
when i do this, it work for maybe 30 seconds and it does the samething after, i also tried to delete my index and recreate it, and it doesn't work.
@pickypg -- Does there happen to be a release date for the next XPack build or can I get a copy of the build [6.0.0-alpha2] with the bug fix? I am running [xpack.security.enabled: false] because I don't want to go through the headache of configuring all of the TLS and User permissions stuff on my test cluster every time I delete/start over with stress testing.
If there's a way to override the boostrap security checks for a test cluster (not single node) I'm all ears, and then I can use the workaround you mentioned.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.