Closed YuriTAngelico closed 9 months ago
I tryed to add this line to allow unasigned plugins to work:
Then this happens in plugins page:
Then when I can create the data source but a I get an error:
From logs I'm seeing this:
logger=settings t=2023-10-25T14:45:18.9693573-03:00 level=info msg="App mode production" logger=sqlstore t=2023-10-25T14:45:18.9693573-03:00 level=info msg="Connecting to DB" dbtype=sqlite3 logger=sqlstore t=2023-10-25T14:45:18.9693573-03:00 level=warn msg="SQLite database file has broader permissions than it should" path="C:\Program Files\GrafanaLabs\grafana\data\grafana.db" mode=-rw-rw-rw- expected=-rw-r----- logger=migrator t=2023-10-25T14:45:18.9693573-03:00 level=info msg="Starting DB migrations" logger=migrator t=2023-10-25T14:45:18.9794622-03:00 level=info msg="migrations completed" performed=0 skipped=608 duration=0s logger=licensing t=2023-10-25T14:45:18.9794622-03:00 level=info msg="Validated license token" appURL=http://localhost:3000/ source=disk status=NotFound logger=secrets t=2023-10-25T14:45:18.9794622-03:00 level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1 logger=plugins.validator.module t=2023-10-25T14:45:19.1527653-03:00 level=warn msg="Plugin missing module.js" pluginId=input warning="Missing module.js, If you loaded this plugin from git, make sure to compile it." logger=plugins.registration t=2023-10-25T14:45:19.153276-03:00 level=info msg="Plugin registered" pluginId=input logger=plugins.signature.validation t=2023-10-25T14:45:19.5298275-03:00 level=warn msg="Skipping loading plugin due to problem with signature" pluginId=alexanderzobnin-zabbix-datasource status=unsigned logger=plugins.validation t=2023-10-25T14:45:19.5298275-03:00 level=error msg="Plugin validation failed" pluginId=alexanderzobnin-zabbix-datasource error="plugin 'alexanderzobnin-zabbix-datasource' has no signature" logger=plugins.signature.validation t=2023-10-25T14:45:19.5298275-03:00 level=warn msg="Skipping loading plugin due to problem with signature" pluginId=alexanderzobnin-zabbix-triggers-panel status=unsigned logger=plugins.validation t=2023-10-25T14:45:19.5298275-03:00 level=error msg="Plugin validation failed" pluginId=alexanderzobnin-zabbix-triggers-panel error="plugin 'alexanderzobnin-zabbix-triggers-panel' has no signature" logger=plugins.registration t=2023-10-25T14:45:19.5298275-03:00 level=info msg="Plugin registered" pluginId=alexanderzobnin-zabbix-app logger=query_data t=2023-10-25T14:45:19.5298275-03:00 level=info msg="Query Service initialization"
There is some error related to the plugin I guess.
Another log found that I think can be the problem but no idea how to solve it.
logger=context userId=1 orgId=1 uname=admin t=2023-10-25T14:55:06.6289057-03:00 level=error msg="Could not find plugin definition for data source" datasource_type=alexanderzobnin-zabbix-datasource
I'd like you advise you to completely remove the plugins folder from your Grafana installation and redo all the plug-in install and enabling.
I just did a fresh install on a Virtualbox VM with the default commands bellow. After that, just enabled the plug-in and everything works.
tee /etc/yum.repos.d/grafana.repo <<EOL
[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
EOL
dnf -y install grafana
systemctl daemon-reload
systemctl enable --now grafana-server.service
grafana-cli plugins update-all
grafana-cli plugins list-remote | grep zabbix
grafana-cli plugins install alexanderzobnin-zabbix-app
systemctl restart grafana-server.service
Seems to be a windows issue ,works in other OSs
@YuriTAngelico Can you confirm if this was working for you prior to the version you reported (v10.2.0 (895fbafb7a)
)
I guess it was windows issue. Later I tested in Linux and other windows and it was ok. Thanks for the help!
I had the same problem. What worked for me was to use datasource provisioning:
https://grafana.com/docs/plugins/alexanderzobnin-zabbix-app/latest/configuration/provisioning/
System OS: Windows Server 2019 Grafana: Grafana v10.2.0 (895fbafb7a)
This is the problem.
I followed this install steps: https://grafana.com/grafana/plugins/alexanderzobnin-zabbix-app/?tab=overview
I entered in: C:\Program Files\GrafanaLabs\grafana\bin> Then ran: .\grafana-cli.exe plugins install alexanderzobnin-zabbix-app
And the plugin was installed:
But when I try to add a new data source the plugin do not appear.
It is enabled.
What can I do?
Thanks in advance!