Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random query errors using the latest version #182

Closed
stefano-cherchi opened this issue Sep 27, 2022 · 4 comments
Closed

Random query errors using the latest version #182

stefano-cherchi opened this issue Sep 27, 2022 · 4 comments
Labels
datasource/Redshift type/bug Something isn't working

Comments

@stefano-cherchi
Copy link

stefano-cherchi commented Sep 27, 2022

What happened:
EDIT: upon further investigation, the plugin version seems to have no role in the issue. This is the correct scenario.

We've been using a redshift data source (configured using version 1.0.5 of the official RedShift plugin) for months to feed data to dozens of dashboards on Grafana 9.0.5. It all worked flawlessly until last week. This Monday we started seeing some strange behaviour: all the panels using the redshift data source started returning random errors. No changes had been made anywhere in the deployment during the weekend. This is the same dashboard before and after a page refresh:

before:

image

after refreshing the page:

image

after opening the Inspect -> Query panel and clicking on "Refresh"

image

The query inspector always returns this error:

image

Some times, clicking on the "Refresh" button fixes the issue, some times it doesn't.

The behaviour seems to be totally random.

The same queries return the expected data if run directly against the Redshift database using a local client or the AWS console query editor with the same credentials.

We have updated both Grafana to version 9.1.6 and the plugin to version 1.2.0, to no avail.

Replacing the data source with one that uses the PostgreSQL plugin solves the issue 100% of the times.

What you expected to happen:

I expect all the panels to load consistently with no errors as before the plugin upgrade.

How to reproduce it (as minimally and precisely as possible):

  1. Open any panel using a redshift data source
  2. See the message "Query error: 500 Internal Server Error"
  3. Refresh the page or open the Inspect panel and click on Query -> Refresh
  4. The error might or might not disappear, randomly (mostly, it doesn't)

Screenshots

Anything else we need to know?:

Environment:

  • Grafana version: 9.0.5 and then 9.1.6
  • Plugin version: 1.0.5 and then 1.2.0
  • OS Grafana is installed on: Debian 5.10.140-1
  • User OS & Browser: MacOS with latest versions of both Chrome and Firefox, Windows with latest version of Chrome
  • Others:
@fridgepoet
Copy link
Member

Hi, what plugin version did you upgrade from?

@stefano-cherchi
Copy link
Author

Hi, what plugin version did you upgrade from?

Hi @fridgepoet , It turns out the issue started before any upgrade. We just upgraded both the plugin and Grafana itself in an attempt to fix the errors. Sorry for the mixup. I've updated the original post to reflect the actual scenario more accurately. The issue, though, is still there and makes absolutely no sense, with panels loading as expected or returning errors with no apparent reason. Using a postgres driver seems to be the only way to fix but I think we must go to the bottom of this issue.

@fridgepoet
Copy link
Member

Thanks for updating @stefano-cherchi. I've checked the “Amazon Redshift” importable dashboard on v1.0.5 of the plugin and Grafana v9.0.5 and am getting data.

Is there anything specific about these queries, you think? Or is there an example query and time range you think may be problematic?

@sunker
Copy link
Collaborator

sunker commented Oct 27, 2022

We've closed this issue since it needs more information and hasn't had any activity recently. We can re-open it after you you add more information. To avoid having your issue closed in the future, please read our CONTRIBUTING guidelines.

@sunker sunker closed this as completed Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Redshift type/bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants