# No Data and Error InfluxDB Error: Bad Gateway

**URL:** <https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711>\
**Category:** InfluxDB\
**Tags:** influxdb\
**Created:** [May 14, 2022, 9:15pm UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711 "2022-05-14T21:15:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![showmeyourskil](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@showmeyourskil](https://community.grafana.com/u/showmeyourskil)\
**Post date:** [May 14, 2022, 9:15pm UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/1 "2022-05-14T21:15:17Z")

</div>

Hey everyone,

I am having problems after setting up Grafana and Influx and need support.

When loading the graph I get the following message: Error: Bad Gateway. Influx and Grafana are running on one server and is therefore configured in the datasources as  
[http://localhost:8086](http://localhost:8086). In the logs I get the following message:

```auto
[2022-05-14 23:11:03 +0200] warning/InfluxdbWriter: TLS handshake with host 'grafana.server.com' failed.
[2022-05-14 23:11:03 +0200] warning/InfluxdbWriter: Flush failed, cannot connect to InfluxDB: Error: handshake: wrong version number

```

Can you help me with this problem?

Best regards!

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [May 15, 2022, 1:31pm UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/2 "2022-05-15T13:31:41Z")

</div>

Have you created and populated influxdb bucket?

---

<div class="post-metadata">

**Author:** ![showmeyourskil](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@showmeyourskil](https://community.grafana.com/u/showmeyourskil)\
**Post date:** [May 15, 2022, 8:15pm UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/3 "2022-05-15T20:15:43Z")

</div>

Hello, thank you for your feedback. i was just able to solve the problem myself. The culprit was a certificate.

However, it still does not write data to Grafana. On my dashboards it only says ,No Data". Do you have any idea what I can do?

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/1/b/1b9400610ba5a0bf83c6332a8cafcef163e3ffcb.png)

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [May 15, 2022, 10:23pm UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/4 "2022-05-15T22:23:11Z")

</div>

> [@yosiasz](#):
>
> Have you created and populated influxdb bucket?

👆🏾 this question still is pending. If you have data populated lets see the influx query? Also what does the date filter say?

---

<div class="post-metadata">

**Author:** ![showmeyourskil](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@showmeyourskil](https://community.grafana.com/u/showmeyourskil)\
**Post date:** [May 16, 2022, 4:56am UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/5 "2022-05-16T04:56:56Z")

</div>

I use Grafana for Icinga. There I have installed a module which should write data in Influx.

In Grafana Inspector, the query is displayed to me. I can make it available to you with pleasure.

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [May 16, 2022, 5:08am UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/6 "2022-05-16T05:08:32Z")

</div>

I dont think we are understanding each other. 👀

---

<div class="post-metadata">

**Author:** ![showmeyourskil](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@showmeyourskil](https://community.grafana.com/u/showmeyourskil)\
**Post date:** [May 16, 2022, 5:21am UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/7 "2022-05-16T05:21:52Z")

</div>

oops. can you tell me where i can check it? Unfortunately, I haven’t been working with influx and grafana for that long.🙂

---

<div class="post-metadata">

**Author:** ![showmeyourskil](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@showmeyourskil](https://community.grafana.com/u/showmeyourskil)\
**Post date:** [May 16, 2022, 10:23am UTC](https://community.grafana.com/t/no-data-and-error-influxdb-error-bad-gateway/65711/8 "2022-05-16T10:23:45Z")

</div>

After I set the proxy timeout from 5seconds to 30seconds the graph was described again!
