# Kibana cannot connect to the Elastic Package Registry

**URL:** <https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry/374239>\
**Category:** Kibana\
**Created:** [February 7, 2025, 7:24pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry/374239 "2025-02-07T19:24:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EkilErif](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ekilerif/32/141234_2.png) [@EkilErif](https://discuss.elastic.co/u/EkilErif)\
**Post date:** [February 7, 2025, 7:24pm UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry/374239/1 "2025-02-07T19:24:27Z")

</div>

I am very new to ELK and after configuring x-pack security to true I am getting the message:

Kibana cannot connect to the Elastic Package Registry

When I searched this community I found the following post:

> [@Kibana cannot connect to the Elastic Package Registry, which provides Elastic Agent integrations](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry-which-provides-elastic-agent-integrations/330580):
>
> There are a few posts noting this error message, without a solution. [kibana-epr] 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: journalctl -u kibana.service if you find the following message, there you go` 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 nee…

Is this still valid for 7.17? Reason being I cannot find 'elasticsearch-create-enrollment-token' either in the folder specified or any other /usr/share/elasticsearch folder.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ATecha](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ATecha](https://discuss.elastic.co/u/ATecha)\
**Post date:** [February 13, 2025, 2:15am UTC](https://discuss.elastic.co/t/kibana-cannot-connect-to-the-elastic-package-registry/374239/2 "2025-02-13T02:15:05Z")

</div>

Are you behind a firewall or proxy? That was my issue.

Also, I believe you need a paid license to use any x-pack features.
