# Kibana not connected to epr.elastic.co Package Registry

**URL:** https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028
**Category:** Kibana
**Created:** [July 19, 2022, 1:17pm UTC](https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028 "2022-07-19T13:17:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![shuuny-matrix](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@shuuny-matrix](https://discuss.elastic.co/u/shuuny-matrix)
#### Post date: [July 19, 2022, 1:17pm UTC](https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028/1 "2022-07-19T13:17:28Z")

</div>

I have installed Elasticsearch and Kibana in my Ubuntu System in a corporate environment behind firewall and proxies. We have two crt files to use internet in browser. My elasticsearch is running fine. But when I run Kibana from /bin/kibaba --allow root, Kibana runs in base mode but it throws the errot like this-

`[2022-07-19T16:02:40.701+03:00][ERROR][plugins.fleet] Failed to fetch latest version of endpoint from registry: Error connecting to package registry: request to https://epr.elastic.co/search?package=endpoint&experimental=true&kibana.version=8.3.2 failed, reason: unable to get local issuer certificate`

Most likely, Kibana is not connected to the internet connection. But when I run curl using command

`curl -vvI https://epr.elastic.co/search?package=endpoint&experimental=true&kibana.version=8.3.2`  
I think I get the connection, I found some issues similar to this using  
` NODE_EXTRA_CERTS= /etc/kibana/root_ca_chain.pem`  
but I am confused what does this file mean? I supplied my organisations "xxx.crt" file but it doesn't seem to work. Can someone help me on this?

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [July 23, 2022, 5:23pm UTC](https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028/2 "2022-07-23T17:23:41Z")

</div>

You need to change the certificates in the kibana.yml file, not by using NODE\_EXTRA\_CERTS.

---

<div class="post-metadata">

### Author: ![shuuny-matrix](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@shuuny-matrix](https://discuss.elastic.co/u/shuuny-matrix)
#### Post date: [July 25, 2022, 7:58pm UTC](https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028/3 "2022-07-25T19:58:18Z")

</div>

I think I have added pretty much all certicificates in kibana.yml file. What should be added to kibana.yml file?

The issue is similar to this one:  
[https://discuss.elastic.co/t/fleet-initialization-behind-a-corporate-proxy-fails-with-unable-to-get-local-issuer-certificate-ignoring-proxy-settings/291647](https://discuss.elastic.co/t/fleet-initialization-behind-a-corporate-proxy-fails-with-unable-to-get-local-issuer-certificate-ignoring-proxy-settings/291647)

---

<div class="post-metadata">

### Author: ![shuuny-matrix](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@shuuny-matrix](https://discuss.elastic.co/u/shuuny-matrix)
#### Post date: [July 26, 2022, 3:19pm UTC](https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028/4 "2022-07-26T15:19:41Z")

</div>

UDATE: I tried using air grapped environement using this link:  
[https://www.elastic.co/guide/en/fleet/current/air-gapped.html](https://www.elastic.co/guide/en/fleet/current/air-gapped.html)

However, still I cant get access to Elastic Package Registry and shows the following error:

```auto
[2022-07-26T18:00:21.794+03:00][INFO][plugins.ml] Task ML:saved-objects-sync-task: scheduled with interval 1h
[2022-07-26T18:00:22.242+03:00][ERROR][plugins.fleet] Failed to fetch latest version of endpoint from registry: Error connecting to package registry: request to http://package-registry.corp.net:8080/search?package=endpoint&experimental=true&kibana.version=8.3.2 failed, reason: getaddrinfo ENOTFOUND package-registry.corp.net
[2022-07-26T18:00:22.282+03:00][INFO][plugins.fleet] Fleet setup completed
[2022-07-26T18:00:22.288+03:00][INFO][plugins.securitySolution] Dependent plugin setup complete - Starting ManifestTask
[2022-07-26T18:00:24.069+03:00][INFO][status] Kibana is now available (was degraded)
[2022-07-26T18:00:24.108+03:00][INFO][plugins.ml] Task ML:saved-objects-sync-task: No ML saved objects in need of synchronization
[2022-07-26T18:04:32.946+03:00][INFO][plugins.security.routes] Logging in with provider "basic" (basic)
[2022-07-26T18:05:11.996+03:00][ERROR][plugins.fleet] Error connecting to package registry: request to http://package-registry.corp.net:8080/categories?experimental=true&include_policy_templates=true&kibana.version=8.3.2 failed, reason: getaddrinfo ENOTFOUND package-registry.corp.net
[2022-07-26T18:05:11.999+03:00][ERROR][plugins.fleet] Error connecting to package registry: request to http://package-registry.corp.net:8080/search?experimental=true&kibana.version=8.3.2 failed, reason: getaddrinfo ENOTFOUND package-registry.corp.net
[2022-07-26T18:12:38.648+03:00][INFO][plugins.fleet] Beginning fleet setup
[2022-07-26T18:12:39.955+03:00][ERROR][plugins.fleet] Failed to fetch latest version of endpoint from registry: Error connecting to package registry: request to http://package-registry.corp.net:8080/search?package=endpoint&experimental=true&kibana.version=8.3.2 failed, reason: getaddrinfo ENOTFOUND package-registry.corp.net
[2022-07-26T18:12:40.004+03:00][INFO][plugins.fleet] Fleet setup completed
[2022-07-26T18:14:53.881+03:00][INFO][plugins.fleet] Beginning fleet setup
[2022-07-26T18:14:55.183+03:00][ERROR][plugins.fleet] Failed to fetch latest version of endpoint from registry: Error connecting to package registry: request to http://package-registry.corp.net:8080/search?package=endpoint&experimental=true&kibana.version=8.3.2 failed, reason: getaddrinfo ENOTFOUND package-registry.corp.net
[2022-07-26T18:14:55.229+03:00][INFO][plugins.fleet] Fleet setup completed>

```

---

<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: [August 23, 2022, 3:20pm UTC](https://discuss.elastic.co/t/kibana-not-connected-to-epr-elastic-co-package-registry/310028/5 "2022-08-23T15:20:08Z")

</div>

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