Can't install plugins if the snap is used

Bug #1819144 reported by Björn Tillenius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grafana Charm
Invalid
Wishlist
Unassigned

Bug Description

I have a graphana service deployed using the stable snap. I tried installing the histogram plugin by unzipping it in /var/snap/grafana/common/data/plugins and restarting grafana.

This made the plugin show up in the UI, but when I try to add a histogram to a dashboard, it errors out since it can't find http://10.0.8.186:3000/public/plugins/mtanda-histogram-panel/histogram_ctrl.js

I can't find any way of getting the right files there, since 'public' is currently in the snap itself, so it's hard-coded.

Tags: maas
tags: added: maas
Revision history for this message
Alvaro Uria (aluria) wrote :

Hello Björn, thank you for reporting this. Have you been able to make the plugin work by using a tarball or the deb pkg as sources?

The Histogram panel seems to have been updated until Grafana v4.0, so I'm not sure if it works on Grafana v5 or v6.

FYI, I have updated the Grafana snap to use Grafana v6.0.1 (see [1]) and I have tentatively pushed the built snap to edge (no paths changed or anything related to this bug, but it would be worth fixing anything on the future stable channel snap). I have also tested this bug from the tarball released (all running from a $HOME directory) and I was also able to reproduce, so the issue doesn't look affecting only the snap (see [2]).

Could you please provide the steps to make it work outside of the snap so I can try to fix paths and maybe where "public" static_root_path is configured? FWIW, the Dockerfile from the Grafana repo [3] provides a good example on how this snap should look (again, on the published edge version of v6.0.1, I haven't added "provisioning" envvars, yet).

Thank you,
-Alvaro.

1. https://github.com/CanonicalBootStack/snap-grafana/pull/1
2. https://community.grafana.com/t/panel-plugin-with-id-michaeldmoore-multistat-panel-could-not-be-found/14873
3. https://github.com/grafana/grafana/blob/v6.0.1/packaging/docker/Dockerfile

Changed in grafana-charm:
status: New → Incomplete
importance: Undecided → Wishlist
Revision history for this message
Björn Tillenius (bjornt) wrote :

Ah, indeed the histogram plugin probably won't work with 5.0 or 6.0. I'll close this for now, and will reopen it if I run into the same things with some other plugin.

Changed in grafana-charm:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.