Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

The plugin does not supported on Grafana 8 #341

Closed
shais-mmg opened this issue Jun 9, 2021 · 9 comments · Fixed by #344
Closed

The plugin does not supported on Grafana 8 #341

shais-mmg opened this issue Jun 9, 2021 · 9 comments · Fixed by #344

Comments

@shais-mmg
Copy link

Bug Report

After upgrading the Grafana 8 the plugin stopped working and it seems like it is not supported on Grafana 8.
It seems to work fine up to Grafana version 7.5.7

image

image

@JorritSalverda
Copy link
Contributor

JorritSalverda commented Jun 9, 2021

I have the same. Even with environment variables

GF_INSTALL_PLUGINS: 'doitintl-bigquery-datasource'
GF_ALLOW_LOADING_UNSIGNED_PLUGINS: 'doitintl-bigquery-datasource'

I get the following logs:

✔ Downloaded doitintl-bigquery-datasource v1.0.8 zip successfully
lvl=warn msg="Some plugin scanning errors were found" logger=plugins errors="plugin 'doitintl-bigquery-datasource' is unsigned"
lvl=info msg="inserting datasource from configuration " logger=provisioning.datasources name="Google BigQuery" uid=
lvl=eror msg="Could not find plugin definition for data source: doitintl-bigquery-datasource"

And in a dashboard using the BigQuery data source it shows the following warnings:

Failed to upgrade legacy queries Datasource named Google BigQuery was not found

Error updating options: Datasource named Google BigQuery was not found

Haven't found a way to fix it yet other then rolling back to 7.x.

@JorritSalverda
Copy link
Contributor

The plugin configurations page shows the following message.

unsigned-plugin

And links to page https://grafana.com/docs/grafana/latest/plugins/plugin-signatures/. So perhaps a new release with a signature needs to be created?

@JorritSalverda
Copy link
Contributor

JorritSalverda commented Jun 9, 2021

Turns out I used the wrong envvar for allowing unsigned plugins. Setting

GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: 'doitintl-bigquery-datasource'

It then logs

✔ Downloaded doitintl-bigquery-datasource v1.0.8 zip successfully
t=2021-06-09T13:45:17+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=doitintl-bigquery-datasource"
t=2021-06-09T13:45:23+0000 lvl=warn msg="Running an unsigned plugin" logger=plugins pluginID=doitintl-bigquery-datasource pluginDir=/var/lib/grafana/plugins/doitintl-bigquery-datasource/dist
t=2021-06-09T13:45:23+0000 lvl=info msg="Registering plugin" logger=plugins id=doitintl-bigquery-datasource

A bit weird that it logs such an old data source, even though https://grafana.com/grafana/plugins/doitintl-bigquery-datasource/ says it's at version 2.0.1.

However it does make the dashboards load fine for now. Would be nice though if it gets signed and this unsecure loading isn't needed.

@shais-mmg
Copy link
Author

The plugin version 2.0.1 has a dependency for Grafana 7:
image

This is the reason it's not working on version 2.0.1 and downloading version 1.0.8 (in this version the grafanaDependency is NULL)

@JorritSalverda
Copy link
Contributor

Given that the grafanaDependency property is evaluated using node-semver - see https://github.com/npm/node-semver#ranges - it's value should probably be changed to ">=7.0.0" to get this to work.

@JorritSalverda
Copy link
Contributor

With #344 merged i think this can be closed. When can we expect a 2.0.3 release?

@ofir5300
Copy link
Collaborator

Hi @JorritSalverda, It is hard to tell when to expect 2.0.3 (I had a major delays with Grafana approvers on v2.0.2...)

@briantopping
Copy link

Is it worth leaving this open until 2.0.3 is released so people can get notified? Apologies if that's not the way things work around here, I'm new....

@ofir5300
Copy link
Collaborator

@briantopping eventually this update was included in v2.0.2 release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants