Hello,
I am building a data source backend plugin from this documentation.
I can run the npm run dev
and the mage -v build:linux
without any error.
When I start Grafana with docker compose up
(with WSL) I can see my brand new plugin and add it to a new datasource. However in a dashboard, it says that the plugin is unavailable :
In the docker logs I’ve got this message :
amf-elasticiotoffice-datasource | logger=plugin.loader t=2023-12-07T14:38:55.730352164Z level=error msg="Could not start plugin" pluginId=amf-elasticiotoffice-datasource err="Unrecognized remote plugin message: \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/grafana/plugins/amf-elasticiotoffice-datasource/gpx_elasticiotoffice_linux_amd64\n Mode: -rwxrwxrwx\n Owner: 1000 [?] (current: 0 [root])\n Group: 1000 [?] (current: 0 [root])\n ELF architecture: EM_X86_64 (current architecture: amd64)\n"
I don’t know how to fix this.
What is the difference between EM_X86_64 and amd64 ?
What are the dynamic-link libraries that are missing ?
Which file needs more permissions and what about the “failed to negotiate…”
Where to find /var/lib/grafana/plugins/amf-elasticiotoffice-datasource/gpx_elasticiotoffice_linux_amd64
, I only have /dist/gpx_elasticiotoffice_linux_amd64
Postscript : Grafana runs in development mode