grafana-flowcharting icon indicating copy to clipboard operation
grafana-flowcharting copied to clipboard

blank builtin images

Open basking-in-the-sun2000 opened this issue 2 years ago • 10 comments

The images that have builtin code rather than an image, are going blank with the new grafana. Not sure how to describe them, but those with a fill option.

I'm just getting a blank bounding rectangle (filled with whatever color I selected). For instance this is how it worked before

Screen-Shot-2021-08-21-at-17-28-15

After the current grafana Screen Shot 2021-08-26 at 18 16 19

I'm using 0.9.1 of the plugin, and happens with both safari and firefox. Thanks for the plugin, it was great before 8 and now let us do some neat stuff

basking-in-the-sun2000 avatar Aug 26 '21 23:08 basking-in-the-sun2000

Hi, I notice something similar in grafana v8.1.2, but not yet in v8.1.1. I looks like a grafana regression. v8.1.1 on one PC: image v8.1.2 on another PC (the V in the voltage sensor and the arrow in the current sensor are missing): image

The voltage sensor is a library shape with style: perimeter=ellipsePerimeter;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.instruments.voltmeter;strokeColor=#000000;fontColor=#000000; The current sensor is another library shape: mxgraph.electrical.instruments.ampermeter

Kind regards, Dennis

bijwaard avatar Aug 30 '21 09:08 bijwaard

I had the same issue but with Kubernetes shapes. It works fine with Grafana 8.1.1, but not with 8.1.2

arnitolog avatar Aug 31 '21 07:08 arnitolog

Hi, I had a look at the browser console just after grafana 8.1.2 loaded by dashboard and noticed a number of failed requests for defaultGraph.drawio, it answers "Plugin file access forbidden", I guess this is the recent change in 8.1.2. image

I noticed in the filesystem that the file is there with slightly different path (including static) and accessible to grafana: $ ls -lsa /var/lib/grafana/plugins/grafana-flowcharting/dist/static total 324 4 drwxr-xr-x 2 grafana grafana 4096 Dec 6 2020 . 4 drwxrwxrwx 7 grafana grafana 4096 Dec 6 2020 .. 8 -rw-r--r-- 1 grafana grafana 5217 Dec 8 2020 defaultGraph.csv 84 -rw-r--r-- 1 grafana grafana 83260 Dec 8 2020 defaultGraph.drawio 224 -rw-r--r-- 1 grafana grafana 229289 Dec 8 2020 shapes.txt

And the shapes are in *.xml files under libs/drawio/stencils. This looks similar to issue #313.

Kind regards, Dennis

bijwaard avatar Aug 31 '21 13:08 bijwaard

#313 - are using 8.1.2 version of grafana, its workign before just last week the issue happen.

MuhdMurad avatar Sep 01 '21 02:09 MuhdMurad

Hi, A relatively easy workaround for now would be to revert back to grafana 8.1.1 until this gets fixed: sudo apt install grafana=8.1.1. With this, the shapes become visible again. You can make this persistent with sudo apt-mark hold grafana, so that it is not upgraded again with the next sudo apt upgrade. Once grafana is fixed you can unhold the package with sudo apt-mark unhold grafana and do a regular upgrade. Kind regards, Dennis

bijwaard avatar Sep 01 '21 07:09 bijwaard

Hi Dennis,

Thanks for the update. i am using Grafana cloud free version. how can i revert back the version?

Best regards, Murad

MuhdMurad avatar Sep 01 '21 07:09 MuhdMurad

Hi Murad, I'm using the free version on embedded systems and PCs using the apt repository. When you installed the package separately, you can probably just download and re-install the earlier version. Kind regards, Dennis

bijwaard avatar Sep 01 '21 07:09 bijwaard

Hi Dennis,

Thank you for the input. will try that until they found the root cause and resolve it. By the way, if we downgraded the version, do you think all the previous dashboards, data source setting, etc, will be gone? just wondering before downgraded it.

Best regards, Murad

MuhdMurad avatar Sep 01 '21 08:09 MuhdMurad

Hi Murad, For minor downgrades this is probably safe as the structure of the grafana database in /var/lib/grafana/grafana.db remains largely the same. It never hurts to make a backup copy of the database before the downgrade, you can also re-use the database and other /var/lib/grafana folders on other machines to quickly restore the same dashboards on another machine (may need to have the same processor architecture) .... Kind regards, Dennis

bijwaard avatar Sep 01 '21 08:09 bijwaard

Thank you Dennis for the input and suggestion. Appreciate it. Hopefully the developer can resolve this issue soon.

Best regards, Murad

MuhdMurad avatar Sep 02 '21 04:09 MuhdMurad