fr-ser / grafana-sqlite-datasource

Grafana Plugin to enable SQLite as a Datasource
Apache License 2.0
123 stars 17 forks source link

Could not execute query - unable to open database file: out of memory (14) #103

Closed pseudozach closed 1 year ago

pseudozach commented 1 year ago

Describe the bug I'm able to successfully import a 2MB+ sqlite3 db file into grafana. But when I try to run a basic query, I get this error:

logger=plugin.frser-sqlite-datasource t=2022-11-16T06:34:44.612548514Z level=error msg="Could not execute query" err="unable to open database file: out of memory (14)" query="select * from apipayments;"

To Reproduce Steps to reproduce the behavior:

  1. run grafana with docker, bind a local file to the docker with -v
  2. install this plugin
  3. setup a panel using the sqlite3 file
  4. See error

Screenshots Screen Shot 2022-11-15 at 10 47 21 PM

Versions (please complete the following information):

Additional context VM has 64GB RAM so there's plenty of memory available.

fr-ser commented 1 year ago

Interesting behavior indeed. Do you see the same for older versions of Grafana? And do you have a full debug level log to check?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.