Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank builtin images #314

Open
basking-in-the-sun2000 opened this issue Aug 26, 2021 · 10 comments
Open

blank builtin images #314

basking-in-the-sun2000 opened this issue Aug 26, 2021 · 10 comments

Comments

@basking-in-the-sun2000
Copy link

basking-in-the-sun2000 commented Aug 26, 2021

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

@bijwaard
Copy link

bijwaard commented Aug 30, 2021

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

@arnitolog
Copy link

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

@bijwaard
Copy link

bijwaard commented Aug 31, 2021

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

@MuhdMurad
Copy link

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

@bijwaard
Copy link

bijwaard commented Sep 1, 2021

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

@MuhdMurad
Copy link

Hi Dennis,

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

Best regards,
Murad

@bijwaard
Copy link

bijwaard commented Sep 1, 2021

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

@MuhdMurad
Copy link

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

@bijwaard
Copy link

bijwaard commented Sep 1, 2021

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

@MuhdMurad
Copy link

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

Best regards,
Murad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants