# Kibana cannot connect to the Elastic Package Registry, which provides Elastic Agent integrations

**URL:** <https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry-which-provides-elastic-agent-integrations/330580>\
**Category:** Kibana\
**Created:** [April 23, 2023, 1:21pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry-which-provides-elastic-agent-integrations/330580 "2023-04-23T13:21:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehdi-lamrani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehdi-lamrani/32/108993_2.png) [@mehdi-lamrani](https://discuss.elastic.co/u/mehdi-lamrani)\
**Post date:** [April 23, 2023, 1:21pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry-which-provides-elastic-agent-integrations/330580/1 "2023-04-23T13:21:01Z")

</div>

There are a few posts noting this error message, without a solution.

![kibana-epr](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5e859a12ee43b318af39fc757c15da8b1879d46.png)

In case somebody stumbles upon it : This message may be very misleading, **in case you did not activate xpack security**

First, check your service logs:

```auto
 journalctl -u kibana.service

```

if you find the following message, there you go`

```auto
Kibana security must be enabled to use Fleet

```

configure x-pack to true in elasticsearc.yml, restart both elasticsearch and kibana  
you will need then to secure the access  
You will need the following commands on terminal

```auto
/usr/share/bin/elasticsearch-create-enrollment-token --scope kibana
/usr/share/kibana/bin/kibana-verification-code
/usr/share/elasticsearch/bin/ elasticsearch-reset-password -u elastic -i

```

hope this helps someone  
you're welcome

---

<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:** [May 21, 2023, 1:21pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry-which-provides-elastic-agent-integrations/330580/2 "2023-05-21T13:21:53Z")

</div>

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