# Kibana dashboards loading problem

**URL:** <https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490>\
**Category:** APM\
**Created:** [March 15, 2019, 8:57am UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490 "2019-03-15T08:57:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![harsha](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@harsha](https://discuss.elastic.co/u/harsha)\
**Post date:** [March 15, 2019, 8:57am UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/1 "2019-03-15T08:57:10Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** :6.6.1

**Elasticsearch version** :  
6.6.1  
**APM Server version** :6.6.1

**APM Agent language and version** :6.6.1

**Browser version** :

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:download page

\*\*Fresh install or upgraded from other version?\*\*fresh install

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.  
no nothing  
**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
PS C:\Program Files\APM-Server\> ./apm-server setup  
Loaded index template  
Loading dashboards (Kibana must be running and reachable)  
Exiting: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: fail to get the K  
ibana version: HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get [http://localhost:5601/ap](http://localhost:5601/ap)  
i/status: dial tcp [::1]:5601: connectex: No connection could be made because the target machine actively refused it.. R

**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)**:  
PS C:\Program Files\APM-Server\> ./apm-server setup  
Loaded index template  
Loading dashboards (Kibana must be running and reachable)  
Exiting: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: fail to get the K  
ibana version: HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get [http://localhost:5601/ap](http://localhost:5601/ap)  
i/status: dial tcp [::1]:5601: connectex: No connection could be made because the target machine actively refused it.. R

**Provide logs and/or server output (if relevant)**:

---

<div class="post-metadata">

**Author:** ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)\
**Post date:** [March 15, 2019, 4:33pm UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/2 "2019-03-15T16:33:28Z")

</div>

Hello @harsha, this error:

```auto
 Error creating Kibana client: Error creating Kibana client: fail to get the Kibana version: HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get http://localhost:5601/api/status: dial tcp [::1]:5601: connectex: No connection could be made because the target machine actively refused it.

```

indicates that kibana is not running or reachable on `localhost` from apm-server. To point apm-server to a remote kibana instance, set `setup.kibana.host`, eg to `"kibana.hostname:5601"`. If both services should be running on the same host, ensure that kibana is started and listening.

In 6.6.1, you are able to load dashboards from within kibana using the `Load Kibana Objects` button on the APM setup page, reachable from the `Setup Instructions` button in the upper right of the APM UI.

---

<div class="post-metadata">

**Author:** ![harsha](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@harsha](https://discuss.elastic.co/u/harsha)\
**Post date:** [March 20, 2019, 11:24am UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/3 "2019-03-20T11:24:37Z")

</div>

Hi gil,

thanks for the reply can u be more precise, when u said To point apm-server to a remote kibana instance, set `setup.kibana.host` , eg to `"kibana.hostname:5601" should i chanege the setup.hibana.host in apm yml right?

---

<div class="post-metadata">

**Author:** ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)\
**Post date:** [March 20, 2019, 5:35pm UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/4 "2019-03-20T17:35:06Z")

</div>

Yes, that's one way, see [here](https://github.com/elastic/apm-server/blob/aa638e629f715a05be4c38388ee05496f57785b1/apm-server.yml#L295-L301) is a full example.

Since you're likely only going to do this once, you should consider running this command once instead:

```auto
apm-server setup -E setup.kibana.host=kibana.hostname:5601 -e

```

And leaving dashboard loading off by default, so there is no dependency between apm-server and kibana for dashboard loading under normal operation.

---

<div class="post-metadata">

**Author:** ![harsha](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@harsha](https://discuss.elastic.co/u/harsha)\
**Post date:** [March 22, 2019, 11:10am UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/5 "2019-03-22T11:10:08Z")

</div>

tq gil:grinning:

---

<div class="post-metadata">

**Author:** ![harsha](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@harsha](https://discuss.elastic.co/u/harsha)\
**Post date:** [March 22, 2019, 1:03pm UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/6 "2019-03-22T13:03:49Z")

</div>

Gil a doubt regarding the apm-agent-attach.jar can you jus give a brief explanation regarding this, actually the doubt is that i am not able to connect it with the jVM wat could possibly be the error im reffering to [Automatic setup with `apm-agent-attach.jar`](https://www.elastic.co/guide/en/apm/agent/java/current/setup-attach-cli.html).  
Can you please help me with this.

---

<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:** [April 12, 2019, 9:03am UTC](https://discuss.elastic.co/t/kibana-dashboards-loading-problem/172490/7 "2019-04-12T09:03:51Z")

</div>

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