What Grafana version and what operating system are you using?
v9.4.3
What are you trying to achieve?
Be able to use sqlite3 database as datasource for dashboard
How are you trying to achieve it?
Downloaded the sqlite plugin
Defined the datasource
Created the dashboard
What happened?
When initially defining the datasource, I would get this error:
error checking db: error checking for valid SQLite file: unable to open database file (14)
However when i try to open the database in a command line session and until a run a command such as .tables
Data source now shows as :
Data source is working
and the dashboard begins showing data.
What did you expect to happen?
I expected that I don’t have to do any separate session to fire up the sqlite3 database and run a command for my Grafana dashboard to work
Can you copy/paste the configuration(s) that you are having problems with?
I tried this grafana server configuration but to no avail:
[Service]
PrivateTmp=false
ProtectHome=false
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
for Grafana UI: see above
for logs (just one of many similar logs):
logger=plugin.frser-sqlite-datasource t=2024-02-19T16:46:20.274338561Z level=error msg=“Could not execute query” err=“unable to open database file (14)” query=“select upper(distinct(team)) from test_series where team like "XX%" or team like "XX%";\n\n”