Closed gmosx closed 3 years ago
Are you sure the grafana user has access to the database file?
If you are sure about the file permissions, then please download v1.0.3 of the plugin (manual installation necessary) and check that. This provides better error messages.
I installed v1.0.3
Indeed it doesn't have access to the database file.
I gave 777
permission to the file but I still get the same error.
What kind of permissions should I give to the database file? Should the parent directory also have specific permissions? Should I move the database file into a specific directory?
OK, I got this to work by giving very liberal permissions.
I am wondering what are the best practices here? Where should the database files be placed? What are the exact permissions required?
There are two main considerations:
I am not sure about read vs write permission actually. I would assume read permissions for the grafana user to the whole path and file itself should be enough.
Hm, for some reason the containing folder needs to have the write permission.
Not on my machine at least. With the following permissions, it worked fine for me
bash-5.0# ls -lah .
total 8K
drwxr-xr-x 2 non-graf non-graf 4.0K Mar 28 07:45 .
drwxr-xr-x 1 root root 4.0K Mar 28 07:44 ..
-rw-r--r-- 1 non-graf non-graf 0 Mar 28 07:45 empty.db
Maybe the issue is rather with the (often misunderstood/unknown) effect of the execute bit on folders? https://superuser.com/questions/168578/why-must-a-folder-be-executable/169418
Hello!
First of all, thank you for this useful plugin.
I installed it for the first time and tried to create an Sqlite3 Data Source. But, when clicking on the
Save & Test
button, I got:My environment is Linux Fedora 33, installed Grafana from yum repositories.
Here is the corresponding log:
Thanks in advance for any help.