I built a panel plugin successfully. I could also see it at grafana.
However, it is unsigned.
I tried to signed it, in accord with the tutorials. So, after creating the plugin, I did:
npx @grafana/toolkit plugin:sign --rootUrls http://grafana.staged-by-discourse.com
thanks for your help. I even used different versions of @grafana/toolkit I am getting another error. The error message is: Error signing manifest: Token invalid.
What can be invalid token?
The Grafana API Key was created at my grafana local host and is valid for about 6 months.
More information:
System: Ubuntu 20.04.3 LTS
Running on WSL2.
App: sample app template from grafana compiled and build with yarn.
I tried also with npm.
I appreciate any help! Thank you vey much!
Cheers,
Turtles
I have the same issue as the image below with generating an API key on localhost Grafana.
I don’t think generating an API on Grafana cloud account will help it work on local Grafana. I’ve tried generating it on cloud even with --rootUrls http://127.0.0.1:3000 and the plugin doesn’t show up anymore in local Grafana (even in dev mode) once you sign it.
So is there no solution to this? If you host your own Grafana server you’re unable to use Private plugins?
@jn6091 When plugin signed it creates MANIFEST file with all included files and their properties. If any of the files modified, it will be skipped and plugin should be resigned.
If you enable the Dev mode, MANIFEST file should be deleted. It was recently updated in the documentation.
I just followed your steps and saw the error that plugin was signed for “http://127.0.0.1:3000” when I have Grafana configured for “http://grafana.staged-by-discourse.com”. Do you see similar error when trying to load plugin? If you do, you should sign it with the correct Server Name.
grafana | logger=plugin.loader t=2022-03-14T16:58:41.76+0000 lvl=warn msg="Could not find root URL that matches running application URL" plugin=volkovlabs-randomname-defaultplugin appUrl=http://grafana.staged-by-discourse.com/ rootUrls="unsupported value type"
grafana | logger=plugin.loader t=2022-03-14T16:58:41.76+0000 lvl=warn msg="Skipping loading plugin due to problem with signature" pluginID=volkovlabs-randomname-defaultplugin status=invalid
Indeed that was the issue. After signing it with http://grafana.staged-by-discourse.com instead of http://127.0.0.1:3000 it works now. Thank you very much!