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

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

Open
elfranne opened this issue Jul 17, 2024 · 1 comment
Open

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

elfranne opened this issue Jul 17, 2024 · 1 comment
Labels
type/bug Unexpected behavior or a feature is broken

Comments

@elfranne
Copy link

elfranne commented Jul 17, 2024

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
Copy link
Author

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

@ivanahuckova ivanahuckova added the type/bug Unexpected behavior or a feature is broken label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Unexpected behavior or a feature is broken
Projects
Status: Backlog
Development

No branches or pull requests

2 participants