DashboardQueryRunner failed

  • What Grafana version and what operating system are you using?

Debian 10
Grafana 8.1.3

Grafana installed as deb from repo, using sqlite and behind haproxy (tested without it as well, same issue)

  • What are you trying to achieve?

I recently upgraded existing grafana installation from 7.1.3 → 8.1.3. Majority of stuff worked out of the box but since then, noticed an issue on dashboards where a single text variable input is used.

  • What happened?

Any dashboard that holds only a single text variable input (which is then used as part of MySQL query) will fail to render (error on some browsers) if after inputting the value, one presses enter on the text box. Mouse click anywhere else on the dashboard after putting in the value will render the dashboard correctly. If there is also for example a custom variable besides the text variable, this won’t happen.

The error shown in Grafana UI with Firefox is:

DashBoardQueryRunner failed
NetworkError when attempting to fetch resource.

Unexpected error

With Chrome browser UI doesn’t produce the error, but variable field is emptied after enter and dashboard fails to render (as if the variable was empty)

This generates no errors to grafana logs so assuming it’s something that happens on the client side.

Tried to disable Grafana Live as well by setting the max_connection count to 0, but makes no difference.

This is what error Firefox actually records:

Screen Shot 2021-09-09 at 10.44.39

Only annotation query that’s present is the default Annotations & Alerts which can’t be removed. Disabling it changes the error so that only handleAnnotationQueryRunnerError TypeError: NetworkError when attempting to fetch resource. is shown.

  • What did you expect to happen?

Expected the variable inputs on dasboards to work same way as in 7.1.3. This wasn’t an issue on that version.

This definitely feels like a bug. I was able to able to reproduce on 8.1.2-beta1. Pressing enter threw same error. Pressing tab or clicking outside the box succeeded.

Can you make an issue in our repo?

Thank you. Yeah i’ll make an issue to the repo.

E: DashBoardQueryRunner failed · Issue #39311 · grafana/grafana · GitHub

1 Like

This topic was automatically closed after 365 days. New replies are no longer allowed.