grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
63.79k stars 11.94k forks source link

Plugins: ElasticSearch Plugin fails to load (ChunkLoadError) #78927

Open nself opened 9 months ago

nself commented 9 months ago

What happened?

Upon creating a new dashboard or visiting an existing dashboard and attempting to view or set an ElasticSearch datasource (ElasticSearch v7.10+) as a panel source, Grafana reports the following error:

ChunkLoadError: Loading chunk 9897 failed. (missing: https://grafana.domain.obscured/grafana/public/build/elasticsearchPlugin.5bb6e2e766d541747a9d.js)

This occurs when for any Elastic datasource. Visiting one such datasource configuration page, then returning to attempt to make the panel seems to resolve this loading error, but the error can be consistently reproduced in a new session.

I suspect that this issue is related to issue #21733, resolved by PR #21677.

What did you expect to happen?

ElasticSearch datasource to load into panel.

Did this work before?

Unknown when this issue started occurring. Other dashboards using ES datasources have been created for years, without issue in the past. Grafana v 9.2.0 has been in use for some time now.

How do we reproduce it?

  1. View any Elasticsearch datasource first thing after starting a new session

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: 9.2.0 OS: RHEL 7 (Grafana server), MacOS (browser/client) Browser: Firefox, Chrome

Grafana platform?

A package manager (APT, YUM, BREW, etc.)

Datasource(s)?

ElasticSearch 5.0.0

tonypowa commented 8 months ago

hi @nself

thank you for reporting this issue

Are there any other relevant console logs from your browser when the error occurs?

Is your Grafana setup behind a reverse proxy, load balancer, or any other network component that could affect resource loading?

Are any ad blockers or browser extensions possibly interfering with Grafana's script loading?

Thank you

matyax commented 8 months ago

From the data source perspective, there's nothing I can think of that would cause this. Usually chunk load errors are due to a cached Grafana version trying to load a code splitting chunk that no longer exists due to a version update, and a simple browser hard refresh fixes it.

nself commented 7 months ago

Thank you both for the feedback. Intending to return to this issue with more context and a response, just trying to find time to do so. Please do not close yet.