grafana / github-datasource

The GitHub data source lets you visualize GitHub data in Grafana dashboards.
https://grafana.com/docs/plugins/grafana-github-datasource/latest/
Apache License 2.0
249 stars 54 forks source link

Plugin fails with "Could not start plugin backend" #336

Open elfranne opened 3 months ago

elfranne commented 3 months ago

Trying to add the Github datasource and I am getting some errors, on the web gui after install i am getting a red box with Plugin failed to start

from /var/log/grafana/grafana.log:

logger=plugin.store t=2024-07-17T13:49:11.782592373Z level=info msg="Loading plugins..."
logger=plugins.registration t=2024-07-17T13:49:11.809603808Z level=error msg="Could not register plugin" pluginId=xychart error="plugin xychart is already registered"
logger=plugins.initialization t=2024-07-17T13:49:11.809850237Z level=error msg="Could not initialize plugin" pluginId=xychart error="plugin xychart is already registered"
logger=plugin.grafana-github-datasource t=2024-07-17T13:49:11.907325075Z level=error msg="plugin init error" error="listen unix /tmp/plugin1759906345: socket: address family not supported by prot
ocol"
logger=plugin.grafana-github-datasource t=2024-07-17T13:49:11.908637164Z level=info msg="plugin process exited" plugin=/var/lib/grafana/plugins/grafana-github-datasource/gpx_github_linux_amd64 id
=1835041
logger=plugins.backend.start t=2024-07-17T13:49:11.908956226Z level=error msg="Could not start plugin backend" pluginId=grafana-github-datasource error="Unrecognized remote plugin message: \nFail
ed to read any lines from plugin's stdout\nThis usually means\n  the plugin was not compiled for this architecture,\n  the plugin is missing dynamic-link libraries necessary to run,\n  the plugin
 is not executable by this process due to file permissions, or\n  the plugin failed to negotiate the initial go-plugin protocol handshake\n\nAdditional notes about plugin:\n  Path: /var/lib/grafa
na/plugins/grafana-github-datasource/gpx_github_linux_amd64\n  Mode: -rwxr-x---\n  Owner: 117 [grafana] (current: 117 [grafana])\n  Group: 124 [grafana] (current: 124 [grafana])\n  ELF architectu
re: EM_X86_64 (current architecture: amd64)\n"
logger=plugins.initialization t=2024-07-17T13:49:11.909179174Z level=error msg="Could not initialize plugin" pluginId=grafana-github-datasource error="Unrecognized remote plugin message: \nFailed
 to read any lines from plugin's stdout\nThis usually means\n  the plugin was not compiled for this architecture,\n  the plugin is missing dynamic-link libraries necessary to run,\n  the plugin i
s not executable by this process due to file permissions, or\n  the plugin failed to negotiate the initial go-plugin protocol handshake\n\nAdditional notes about plugin:\n  Path: /var/lib/grafana
/plugins/grafana-github-datasource/gpx_github_linux_amd64\n  Mode: -rwxr-x---\n  Owner: 117 [grafana] (current: 117 [grafana])\n  Group: 124 [grafana] (current: 124 [grafana])\n  ELF architecture
: EM_X86_64 (current architecture: amd64)\n"
logger=plugins.registration t=2024-07-17T13:49:11.919944854Z level=info msg="Plugin registered" pluginId=grafana-simple-json-datasource
logger=plugin.store t=2024-07-17T13:49:11.919976593Z level=info msg="Plugins loaded" count=55 duration=137.384981ms

permissions:

ls -lah  /var/lib/grafana/plugins/grafana-github-datasource
total 26M
drwxr-x--- 4 grafana grafana 4.0K Jul 17 13:47 .
drwxr-x--- 4 grafana grafana   77 Jul 17 13:47 ..
-rw-r----- 1 grafana grafana 4.9K Jul 17 13:47 CHANGELOG.md
drwxr-x--- 2 grafana grafana   28 Jul 17 13:47 dashboards
-rwxr-x--- 1 grafana grafana 8.2K Jul 17 13:47 go_plugin_build_manifest
-rwxr-x--- 1 grafana grafana  26M Jul 17 13:47 gpx_github_linux_amd64
drwxr-x--- 2 grafana grafana   24 Jul 17 13:47 img
-rw-r----- 1 grafana grafana  12K Jul 17 13:47 LICENSE
-rw-r----- 1 grafana grafana 1.7K Jul 17 13:47 MANIFEST.txt
-rw-r----- 1 grafana grafana  43K Jul 17 13:47 module.js
-rw-r----- 1 grafana grafana 100K Jul 17 13:47 module.js.map
-rw-r----- 1 grafana grafana 1.4K Jul 17 13:47 plugin.json
-rw-r----- 1 grafana grafana 5.8K Jul 17 13:47 README.md

Not sure plugin configuration is relevant because it fails to load,

configuration of the module is done with provision yaml ```yaml - name: GitHub (github-enterprise.domain.com) type: grafana-github-datasource typeName: GitHub orgId: 2 typeLogoUrl: public/app/plugins/datasource/github/img/github_logo.svg access: proxy jsonData: owner: elfranne repository: puppet githubUrl: https://github-enterprise.domain.com secureJsonData: accessToken: ghp_[redacted] editable: true ```

When opening data source i get greeted with this warning:

Unsigned plugins were found during plugin initialization. Grafana Labs cannot guarantee the integrity of these plugins. We recommend only using signed plugins.

The following plugins are disabled and not shown in the list below:

    grafana-github-datasource Missing signature 

plugin version: 1.7.2 Grafana version: 11.1.0 (commit: 5b85c4c2fcf5d32d4f68aaef345c53096359b2f1, branch: HEAD) OS: Ubuntu 22.04 LTS 64bits Grafana installed with Puppet and community maintained module

This is the first plugin that I install. Installation with grafana-cli and the web ui results in the same issue.

Am I missing something ?

elfranne commented 3 months ago

Not sure this is a plugin issue, trying to install https://github.com/grafana/grafana-infinity-datasource gives a similar issue...