ROR plugin problem and kibana

Hi all,
I tried to set up security by adding tenants through kibana but i was not able to reconnect anymore i have this error message :
{“statusCode”:401,“error”:“Unauthorized”,“message”:“[forbidden: forbidden_response: [forbidden_response] Reason: forbidden]: forbidden”}

kibana log show this message:
[error][plugins][ReadonlyREST][lazyUtils] Caught an error in executeWithInterval FetchError: request to https://elasticsearch:9200>
at ClientRequest. (/usr/share/kibana/plugins/readonlyrestkbn/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:494:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
type: ‘system’,
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’
}

Thanks for help

Hi,

It seems that Kibana cannot connect to ES. Are you sure the https://elasticsearch:9200 is reachable from the Kibana host?

yes it’s connected

Are you able to tell us how to reproduce it? Do you have the services in docker containers?
The error I see “ECONNREFUSED” indicates that KBN cannot connect to ES. There may be many different causes of such issues.

it happens when i try to add tenants in readonlyrest.yml directly from kibana interface

ok, to be able to help you with your problem we will need:

  1. info about Kibana, Elasticsearch, both ROR plugin versions and ROR license type (free/pro/enterprise)
  2. Kibana, ES & ROR configs
  3. Kibana and ES logs
  4. screenshots (or a video) of actions you take to achieve the unexpected state

Could you please provide all of them?