# Getting grafana templating init failed \[object object\]

**URL:** <https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931>\
**Category:** Dashboards\
**Tags:** datasource, iot, prometheus, templating\
**Created:** [July 21, 2017, 11:49am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931 "2017-07-21T11:49:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitpareek](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@ankitpareek](https://community.grafana.com/u/ankitpareek)\
**Post date:** [July 21, 2017, 11:49am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/1 "2017-07-21T11:49:34Z")

</div>

While adding a new variable in template whenever I choose “On dashboard load” option in Refresh section for more than two variable in a single dashboard then it gives the error **“Getting grafana templating init failed [object object]”**.  
I am using Grafana version 4.3.2 and KairosDb as data source.

Also after refreshing the dashboard one of the variables doesn’t show any values.

If I don’t choose “On dashboard load” for more than two variables then it works fine.

 ![](https://us1.discourse-cdn.com/grafana/original/2X/9/94b77481998bf5454f32cf83e819f3c9de75bbc3.PNG) ![](https://us1.discourse-cdn.com/grafana/original/2X/6/69c6f3e39d7f1571d1642927118596660e1dd981.PNG)

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [July 26, 2017, 10:31am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/2 "2017-07-26T10:31:08Z")

</div>

Can you open chrome dev tools and see if you can get a more detailed error in the dev tools console.

It is a probably bug in the KairosDB that it returns [object Object] rather than the actual error message.

---

<div class="post-metadata">

**Author:** ![ankitpareek](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@ankitpareek](https://community.grafana.com/u/ankitpareek)\
**Post date:** [July 27, 2017, 1:41pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/3 "2017-07-27T13:41:27Z")

</div>

KairosDB gives the values but after refreshing the dashboard it disappears.  
If I select “Never” instead of “On dashboard load” in the Refresh section then it works fine.  
Problem occurs only if i select “On dashboard load” for more than two variables otherwise it works.

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [July 27, 2017, 1:43pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/4 "2017-07-27T13:43:13Z")

</div>

yes, but did you see what the actual error is (afer selecting “On dashboard load”)?

---

<div class="post-metadata">

**Author:** ![ankitpareek](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@ankitpareek](https://community.grafana.com/u/ankitpareek)\
**Post date:** [July 27, 2017, 1:51pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/5 "2017-07-27T13:51:23Z")

</div>

that is the error I am getting console.

 ![error_grafana](https://us1.discourse-cdn.com/grafana/original/2X/d/de7f7d04dd792c574e42ca1f779c3bef2f245281.PNG)

Let me know if you want me to expand any object.

---

<div class="post-metadata">

**Author:** ![ankitpareek](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@ankitpareek](https://community.grafana.com/u/ankitpareek)\
**Post date:** [August 1, 2017, 9:33am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/6 "2017-08-01T09:33:00Z")

</div>

Hi Daniellee, Let me know if you need any other details about the error.

---

<div class="post-metadata">

**Author:** ![murryy79](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@murryy79](https://community.grafana.com/u/murryy79)\
**Post date:** [August 31, 2017, 6:58am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/7 "2017-08-31T06:58:13Z")

</div>

i have same error

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/c/cd0154e8dd0099c2deb7f4ac8232dbe2821945bf.png)

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [August 31, 2017, 7:28am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/8 "2017-08-31T07:28:42Z")

</div>

@ankitpareek sorry, forgot about this when I went on vacation. `[Object Object]` as the error message is a bug in the error reporting of the Kairos DB data source. Did you figure out the problem?

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [August 31, 2017, 7:33am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/9 "2017-08-31T07:33:01Z")

</div>

@murryy79 That’s not the same error. In your case, it is easy to see what the error is. Grafana cannot reach the server: “502 (Bad Gateway)”. Maybe it is a DNS or firewall problem?

---

<div class="post-metadata">

**Author:** ![murryy79](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@murryy79](https://community.grafana.com/u/murryy79)\
**Post date:** [August 31, 2017, 6:06pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/10 "2017-08-31T18:06:20Z")

</div>

Thanks @daniellee  
We found Prometheus VM was down. Further drilling found no space in filesystem

/dev/sdc1 4.8G 4.1G 442M 91% /var/vcap/store

Removed this directory to resolve  
/var/vcap/store/prometheus/orphaned

How do we prevent this from happening again ?

Thanks

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [August 31, 2017, 6:09pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/11 "2017-08-31T18:09:24Z")

</div>

@murryy79 I don’t know. Maybe worth searching through the Prometheus docs or asking on their [google group](https://groups.google.com/forum/#!forum/prometheus-users).

---

<div class="post-metadata">

**Author:** ![osmel1993](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@osmel1993](https://community.grafana.com/u/osmel1993)\
**Post date:** [November 24, 2019, 10:22pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/12 "2019-11-24T22:22:11Z")

</div>

Hi how can I solve this error, thanks

 ![Sin%20t%C3%ADtulo](https://us1.discourse-cdn.com/grafana/original/2X/6/69a0eb91e739545388e2f14280c9a85ce1b3289c.jpeg)

---

<div class="post-metadata">

**Author:** ![rangerdth](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rangerdth](https://community.grafana.com/u/rangerdth)\
**Post date:** [December 16, 2019, 7:04pm UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/13 "2019-12-16T19:04:10Z")

</div>

I saw this error then the IP/hostname of the prometheus server changed.

---

<div class="post-metadata">

**Author:** ![zlbkkk](https://avatars.discourse-cdn.com/v4/letter/z/45deac/32.png) [@zlbkkk](https://community.grafana.com/u/zlbkkk)\
**Post date:** [April 27, 2020, 9:01am UTC](https://community.grafana.com/t/getting-grafana-templating-init-failed-object-object/1931/14 "2020-04-27T09:01:32Z")

</div>

1、The grafana I used is grafana-6.4.0-1.x86\_64.rpm；  
2、The Prometheus I used is “prometheus-2.0.0.linux-amd64”；  
3、The node\_exporter I used is “node\_exporter-0.18.1.linux-amd64”；  
4、The Dashboards template I use is “Node Exporter v0.16–0.18” and its ID is: 10262

But what I see on the granfana interface is "Templating init failed Cannot read property ‘result’ of undefined"

 ![1](https://us1.discourse-cdn.com/grafana/original/2X/c/ce92b36d97c0a921e170dbedef1e34a7eaa94a65.png)
