Hi,
I was using Grafana 7 and decided to update my Raspberry packages, ending up in installing Grafana 9.
The grafana-server didn’t start, though, because I got always the same error:
ago 08 11:22:21 raspberrypi grafana-server[22297]: Failed to start grafana. error: failed to connect to database: mkdir /var/lib/grafana: file exists
ago 08 11:22:21 raspberrypi grafana-server[22297]: failed to connect to database: mkdir /var/lib/grafana: file exists
I copied the old grafana.db file elsewhere, removed the grafana folder, restarted the server and it all worked. Then, I copied the grafana.db file back and I retrieved all my configuration.
So far, so good.
The problem is, I wanted to symlink the grafana folder to my NAS, to avoid writing too much on my SD. But if I symlink the grafana folder,
sudo ln -s /home/pi/NAS/data/grafana /var/lib/grafana/
I get everytime the “file exists” error which I cannot seem to avoid.
Is there any trick you can suggest me?
Thanks!
Luca