ChunkLoadError (Influxdb Plugin Failed)

Hello everyone. Im experiencing an error about the Grrafana configuration on my server.

A couple days ago, I removed and installed again the Influxdb on my server, as I was having some problems regarding its version. I removed everything to make sure the new one i install wont crash with its configurations etc. I could’ve delete something about Grafana too, i assume. I’m getting this error:

INFLUX_TEMPORARY plugin failed 
ChunkLoadError: Loading chunk 9404 failed. (error: https://dbmon:3000/public/build/influxdbPlugin.140a7777089f9559c11c.js)

I checked /usr/share/grafana/public/app/plugins/datasource/ directory and we dont see influxdb there.
It seems influxdb datasource is disappeared.

I also tried to copy our other influxdb v10.0.0 influxdb datasource directory to our grafana v10.4.1 datasource directory. After this i could see influxdb in datasources but i’m still getting the error. When i try to add the datasource influxdb it does not show datasource settings, returning empty page. Displaying type unknown.

I have to add influxdb grafana datasource again. But when i check grafana web site it says influxdb datasource is shipped with grafana by default so i cannot download influxdb grafana datasource. How can we fix this problem?

Welcome @aliskus to the Grafana Community Forum.

Do you see InfluxDB on this page? (Connections >> Data sources)

If yes, can you open datasource config and click the Save & test button on your InfluxDB datasource config page to see if datasouce is configured correctly?


Are you using Grafana 10.4.1?

Did you try to copy InfluxDB-related files from ‘fresh’ Grafana v10.4.1 from Grafana website to your grafana installation folder?

Hi @grant2 ,

I cant see my influxdb datasources active. Also in the datasource directory on linuxfile system no influxdb directory. When i click one of deactive influx datasource empty page opens saying type: undefined.

Is it possible to uninstall and install influxdb datasource plugin again?





none of those plugin marked as influxdb have the influxdb icon? Are you using some old grafana version?

image

If my understanding is correct, this folder contains Typescript source codes of datasource plugins, while compiled versions used by Grafana are located in public/build folder, i.e. public/build/influxdbPlugin.140a7777089f9559c11c.js

how did you remove everything? l

Hello, im here with some updates.

[User@machine ~]$ \cp -R /home/user/influxdb /usr/share/grafana/public/app/plugins/datasource/

[user@machine ~]$ sudo systemctl restart grafana-server.service

I used these commands and they didnt work. Im sending screenshots.

image



I’ve copied it from 10.4.1 yet still getting errors. Further help is apreciated.

What do you see at https://dbmon:3000/plugins/influxdb?page=overview
and https://dbmon:3000/plugins/influxdb?page=version-history ?

Can you just use fresh grafana installation, copy conf and data from your current (corrupted?) grafana installation, run it and check?

Hello everyone.

I installed new 10.4.1 grafana on anaother server. And copied /usr/share/grafana/public/app/plugins/datasource/influxdb directory to the problem grafana /usr/share/grafana/public/app/plugins/datasource/ directory. Restarted server. But problem continues.

Here are the screenshots:


Thanks in advance.

Hey, to add some additional information:

Normally I can install datasources. Can we uninstall and install influxdb datasource again to grafana?

I checked logs. We get these errors in grafana.log whe we try to open dashboard.

logger=context userId=1 orgId=1 uname=admin t=2024-06-23T13:56:35.083243156+03:00 level=info msg=“Request Completed” method=GET path=/public/build/influxdbPlugin.140a7777089f9559c11c.js status=404 remote_addr=10.86.30.4 time_ms=6 duration=6.272687ms size=69991 referer=“https://xxx:3000/d/edi8sp69dl5hcb/compliance-dashboard-i?orgId=1” handler=public-assets status_source=server

Also: Should I copy /usr/share/grafana/public/ directory from fresh installation to problem grafana /usr/share/grafana/public/ directory?

Thanks.

Don’t copy, install Grafana from the scratch. Copy = problems with permissions/ownership,… It looks you are not aware of these problems, so it’s better
not to copy for you, but install it from the scratch.

1 Like

I have many other configurations regarding other uses, I dont want to install whole grafana again from scratch. How can I install influxdb datasource plugin from scratch?

That’s not possible officialy, because it’s builtin plugin. You can see that simple approach with copy doesn’t work.
Of course good admin has backups, so you should to restore working Grafana instance. Good admins are using also some kind of provisioning, so they are able to wipe Grafana and provision everything (users, dashboards, datasources,…) from the scratch. I guess you have none of these, so it will be painfull fix for you.

Is there a repair mode installation choice? That will repair corrupted parts of grafana?

Check your OS/package mananager doc, pls.
You are asking questions, but you are not providing any context.

you are doing what almost no one else does when installing a datasource. The way you are trying to do it is the wrong way and undocumented. so hard to help you hack along with an unofficial approach. the whole premise of this thread is based on a wrong approach copying folders etc