# Kibana : no handler found for uri

**URL:** https://discuss.elastic.co/t/kibana-no-handler-found-for-uri/341123
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [August 18, 2023, 6:27pm UTC](https://discuss.elastic.co/t/kibana-no-handler-found-for-uri/341123 "2023-08-18T18:27:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rp346](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rp346/32/53882_2.png) [@rp346](https://discuss.elastic.co/u/rp346)
#### Post date: [August 18, 2023, 6:27pm UTC](https://discuss.elastic.co/t/kibana-no-handler-found-for-uri/341123/1 "2023-08-18T18:27:52Z")

</div>

I tried to set xpack security for kibana by doing following

1. bin/kibana-encryption-keys generate
2. Copied the generated encryption keys to kibana.yml.

```auto
    xpack.encryptedSavedObjects.encryptionKey: ####
    xpack.reporting.encryptionKey: ####
    xpack.security.encryptionKey: ####

```

1. Restarted `ElasticSearch` and `Kibana`.

But when I try to access `/app/synthetics/monitors` i see following error in kibana

```auto
[2023-08-18T18:44:45.491+00:00][ERROR][plugins.synthetics] ResponseError: {"error":"no handler found for uri [/_security/user/_has_privileges] and method [POST]"}
    at KibanaTransport.request (/usr/share/kibana/node_modules/@elastic/transport/lib/Transport.js:479:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at KibanaTransport.request (/usr/share/kibana/node_modules/@kbn/core-elasticsearch-client-server-internal/src/create_transport.js:51:16)
    at Security.hasPrivileges (/usr/share/kibana/node_modules/@elastic/elasticsearch/lib/api/api/security.js:795:16)
    at hasEnablePermissions (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:183:25)
    at async Promise.all (index 1)
    at Object.getSyntheticsEnablement (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:154:54)
    at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/routes/synthetics_service/enablement.js:28:22)
    at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_route_wrapper.js:84:21)
    at Router.handle (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:146:30)
    at handler (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:112:50)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
    at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
    at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
    at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:371:32)
    at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:281:9)
[2023-08-18T18:44:45.492+00:00][ERROR][http] ResponseError: {"error":"no handler found for uri [/_security/user/_has_privileges] and method [POST]"}
    at KibanaTransport.request (/usr/share/kibana/node_modules/@elastic/transport/lib/Transport.js:479:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at KibanaTransport.request (/usr/share/kibana/node_modules/@kbn/core-elasticsearch-client-server-internal/src/create_transport.js:51:16)
    at Security.hasPrivileges (/usr/share/kibana/node_modules/@elastic/elasticsearch/lib/api/api/security.js:795:16)
    at hasEnablePermissions (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:183:25)
    at async Promise.all (index 1)
    at Object.getSyntheticsEnablement (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:154:54)
    at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/routes/synthetics_service/enablement.js:28:22)
    at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_route_wrapper.js:84:21)
    at Router.handle (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:146:30)
    at handler (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:112:50)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
    at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
    at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
    at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:371:32)
    at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:281:9)

```

What I am missing here ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 15, 2023, 6:28pm UTC](https://discuss.elastic.co/t/kibana-no-handler-found-for-uri/341123/2 "2023-09-15T18:28:51Z")

</div>

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