Error by renaming the dashboard folder (NetworkError and Folder API error)

  • What Grafana version and what operating system are you using?

Grafana V10.3.3 on Linux (AWS)

  • What are you trying to achieve?

Renaming a dashboard folder

  • How are you trying to achieve it?

Just click on the pencil near the name.

  • What happened?

It failed to rename it.
It showed NetworkError when attempting to fetch resource first, then it showed Folder API error.

  • What did you expect to happen?

It should just rename the folder.

  • Did you follow any online instructions? If so, what is the URL?

Try to look at /var/log/grafana.log to understand the root cause for the Folder API error.

Thanks for the suggestion.
After checking the grafana log file, it’s saying database is locked.


I guess, it’s probably because that it’s running as a docker container and I put /var/lib/grafana to a volume.
In this case, what’s the best practice to rename the folder?
Great thanks in advance

Something like, copying the database into the container and changing the names and then copying it back to the volume?

“Database is locked” is a problem that’s causing much more issues for you than you’re really seeing. Renaming a Folder is the least one of them.

Two choices here for you: Find out why you have more than one Grafana/Application accessing the same database file (not possible for more than one application to write to the same SQLite’s file db), or migrate from SQLite to a Postgres database to have the concurrency enabled.

what happens if you rename it using grafana api? do you still get the same issues?

Do you maybe have alert(s) tied to the folder you are modifying?

I will give a try with api.
No. This folder has no tied alerts.

Noticed that although I couldn’t rename the folder, but I could create a new folder and move the dashboards all to the new folder and delete the old folder.
I will go for this solution for now.
Once I have more time (free from current projects), I could try out with Postgres database