Can't install plugins if the snap is used
Bug #1819144 reported by
Björn Tillenius
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/
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://
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.
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/CanonicalBo otStack/ snap-grafana/ pull/1 /community. grafana. com/t/panel- plugin- with-id- michaeldmoore- multistat- panel-could- not-be- found/14873 /github. com/grafana/ grafana/ blob/v6. 0.1/packaging/ docker/ Dockerfile
2. https:/
3. https:/