Sqlite3_prepare failed: no such table: cert.sqlite_master

GVM versions

gsa: 8.0.2
gvm: 8.0.2
openvas-scanner: 6.0.2
gvm-libs: 10.0.2

Environment

Operating system: Debian Stretch
**Installation method / source: source code

I am using GVMD with sqlite3 backend. Everything works fine until scap data sync is finished, I am getting the following error:

gvm-master | md manage: INFO:2020-06-08 15h46.00 utc:238: Updating user OVAL definitions.
gvm-master | md manage: INFO:2020-06-08 15h46.00 utc:238: Updating CVSS scores and CVE counts for CPEs
gvm-master | md manage: INFO:2020-06-08 15h46.51 utc:238: Updating CVSS scores for OVAL definitions
gvm-master | md manage: INFO:2020-06-08 15h46.52 utc:238: Updating placeholder CPEs
gvm-master | md manage: INFO:2020-06-08 15h46.59 utc:238: update_scap: Updating SCAP info succeeded
gvm-master | md manage:WARNING:2020-06-08 15h47.00 utc:238: sql_prepare_internal: sqlite3_prepare failed: no such table: cert.sqlite_master
gvm-master | md manage:WARNING:2020-06-08 15h47.00 utc:238: sqlv: sql_prepare_internal failed

Both scap.db, cert.db and gvmd.db files exist with appropriate permissions. I get the same kind of error if I try to scan a system. Everything goes fine until gvmd starts to write the results to the report…

Any pointers on how to fix this? I don´t want to switch to postgresql for now.

Thanks,
Inés

Could be related to: