The pod restarts (due to the Operator), picks up the config, and attempts to install the plugin. The following appears in the /var/lib/grafana/plugins directory:
/var/lib/grafana/plugins $ ls -la
total 256
drwxrwsr-x 3 10004500 10004500 4096 Dec 9 15:54 .
drwxrwsr-x 7 root 10004500 4096 Dec 9 15:54 ..
-rw-r--r-- 1 10004500 10004500 1368 Dec 9 15:54 CHANGELOG.md
-rw-r--r-- 1 10004500 10004500 631 Dec 9 15:54 LICENSE
-rw-r--r-- 1 10004500 10004500 1892 Dec 9 15:54 MANIFEST.txt
-rw-r--r-- 1 10004500 10004500 5602 Dec 9 15:54 README.md
drwxr-sr-x 2 10004500 10004500 4096 Dec 9 15:54 fifemon-graphql-datasource
-rw-r--r-- 1 10004500 10004500 191 Dec 9 15:54 index.html
-rw-r--r-- 1 10004500 10004500 115023 Dec 9 15:54 module.js
-rw-r--r-- 1 10004500 10004500 101473 Dec 9 15:54 module.js.map
-rw-r--r-- 1 10004500 10004500 1064 Dec 9 15:54 plugin.json
The plugin directory contains:
/var/lib/grafana/plugins $ ls -la fifemon-graphql-datasource
total 16
drwxr-sr-x 2 10004500 10004500 4096 Dec 9 15:56 .
drwxrwsr-x 3 10004500 10004500 4096 Dec 9 15:56 ..
-rw-r--r-- 1 10004500 10004500 2447 Dec 9 15:56 annotations.editor.html
-rw-r--r-- 1 10004500 10004500 2723 Dec 9 15:56 logo.svg
However, the container fails to start with the following error:
Error: ✗ failed to convert to plugin DTO: could not find plugin.json or dist/plugin.json for in /var/lib/grafana/plugins/fifemon-graphql-datasource
Does anyone have a solution for this?
Information about version: Grafana Operator - 5.15.1 provided by Grafana Labs
That doesn’t reflect folder /var/lib/grafana/plugins/fifemon-graphql-datasource. So you have something wrong. You didn’t disclose NEXUSURL or full reproducible example of your deployment, so it is hard to say what you are doing wrong.
What do you mean? So the zip should contain the fifemon-graphql-datasource folder? And that folder should contain the files showed in the folder?
Right now, the zip just contain the files listed on the pictures
Clear that rubbish, so plugin folder is empty.
Upgrade to the latest stable Grafana version.
Maybe your zip file is a problem. Simulate unzip to the folder in cli.
…
Grafana Operator - 5.15.1 provided by Grafana Labs
This is the latest available from Openshift marketplace. I did a clear for the plugins folder and same situation happened.
/var/lib/grafana/plugins $ ls -la
total 256
drwxrwsr-x 3 10004500 10004500 4096 Dec 10 07:36 .
drwxrwsr-x 7 root 10004500 4096 Dec 10 07:36 ..
-rw-rw-r-- 1 10004500 10004500 1368 Dec 10 07:36 CHANGELOG.md
-rw-rw-r-- 1 10004500 10004500 631 Dec 10 07:36 LICENSE
-rw-rw-r-- 1 10004500 10004500 1892 Dec 10 07:36 MANIFEST.txt
-rw-rw-r-- 1 10004500 10004500 5602 Dec 10 07:36 README.md
drwxr-sr-x 2 10004500 10004500 4096 Dec 10 07:36 fifemon-graphql-datasource
-rw-rw-r-- 1 10004500 10004500 191 Dec 10 07:36 index.html
-rw-rw-r-- 1 10004500 10004500 115023 Dec 10 07:36 module.js
-rw-rw-r-- 1 10004500 10004500 101473 Dec 10 07:36 module.js.map
-rw-rw-r-- 1 10004500 10004500 1064 Dec 10 07:36 plugin.json
/var/lib/grafana/plugins $ ls -la fifemon-graphql-datasource/
total 16
drwxr-sr-x 2 10004500 10004500 4096 Dec 10 07:36 .
drwxrwsr-x 3 10004500 10004500 4096 Dec 10 07:36 ..
-rw-r--r-- 1 10004500 10004500 2447 Dec 10 07:36 annotations.editor.html
-rw-r--r-- 1 10004500 10004500 2723 Dec 10 07:36 logo.svg