Skip to content

[BUG] Error in Library Panel, after version update #408

@allcomnet

Description

@allcomnet

Describe the bug

I have a clock template and decided to create a Library Panel for it, making it easier to make future changes to all the dashboards at once, without having to go into them all to make adjustments. This helps a lot!

However, I noticed that in the latest plugin updates, something strange is happening. After updating the plugin, the Library Panel stops working!

It displays the message "Loading library panel" and the panel doesn't load. See screenshot below!

Image

And all dashboards that use this Library Panel now display this error!

I noticed that when I tried to create a new dashboard, it worked perfectly. The problem was actually with the Library Panel that uses this plugin, as my other Library Panels continued to work normally!

After running several tests, I discovered the following behavior:

When I reinsert the clock's Library Panel into the dashboard or into a new dashboard, the clock displays correctly. See screenshot:

Image

After inserting the Clock Library Panel, I clicked to save the dashboard, refreshed the page, and the problem returned. See screenshot!

Image

When I try to edit the library panel when it displays the message "Loading library panel," it doesn't load the information and stays in this loading loop. See the screenshot:

Image

So I had the idea of ​​editing the Clock Library Panel as soon as I import it to the dashboard, even before saving the dashboard changes, because as soon as I import it, it works, as I showed in the screenshots above.

Clicking to edit like this loads the data from the Library Panel.

Image`

Image

After entering the Library Panel's edit mode, I click "Save Library Panel" and from that moment on, the Clock's Library Panel works again!

Image

After saving the Library Panel, I saved the dashboard and refreshed the page, and the Clock Library Panel was working again!

Image

I don't remember how, but there was a moment when I was able to see the JSON for this library that's in the loading loop.

I noticed that the XML file contained the old version information from before the plugin was updated. I don't know if that's the reason for this. I believe it loses the plugin reference and gets stuck in this loop.

So I believe there's something missing from the plugin update that causes it to update all possible "Library Panels" that use the clock-panel plugin.

Version Details:

  • Grafana version : v12.2.0*
  • Plugin version : 2.1.9*

*But it also happened in previous versions of both Grafana and the plugin!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

🚀 Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions