While using SBFspot
and trying to get my historical data uploaded (I just donated! ), I had sqlite3
open to do SELECT * FROM Config;
(as instructed at SBFspot historical data - #7 by Depechie). It worked fine. Then suddenly, after a reboot, I got this:
Error: in prepare, database disk image is malformed (11)
And unfortunately, SBFspot’s log seems to confirm this:
<snip>
sbfspot-sbfspot-1 | Current Inverter Time: 07/09/2022 22:23:49
sbfspot-sbfspot-1 | Inverter Wake-Up Time: 07/09/2022 20:25:06
sbfspot-sbfspot-1 | Inverter Sleep Time : 07/09/2022 22:22:12
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: sqlite3_exec() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | INSERT OR IGNORE INTO Inverters VALUES(3010933557,'SN: 3010933557','Sunny Boy 5.0','04.00.55.R',0,0,0,0,0,0,'','',0)
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: exec_query() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | INSERT OR IGNORE INTO Inverters VALUES(3010933557,'SN: 3010933557','Sunny Boy 5.0','04.00.55.R',0,0,0,0,0,0,'','',0)
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: sqlite3_exec() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | UPDATE Inverters SET Name='SN: 3010933557',Type='Sunny Boy 5.0',SW_Version='04.00.55.R' WHERE Serial=3010933557
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: exec_query() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | UPDATE Inverters SET Name='SN: 3010933557',Type='Sunny Boy 5.0',SW_Version='04.00.55.R' WHERE Serial=3010933557
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: sqlite3_exec() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | UPDATE Inverters SET TimeStamp=1662582231,TotalPac=0,EToday=16666,ETotal=893400,OperatingTime=596.753,FeedInTime=562.189,Status='OK',GridRelay='N/A',Temperature=0 WHERE Serial=3010933557
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: exec_query() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | UPDATE Inverters SET TimeStamp=1662582231,TotalPac=0,EToday=16666,ETotal=893400,OperatingTime=596.753,FeedInTime=562.189,Status='OK',GridRelay='N/A',Temperature=0 WHERE Serial=3010933557
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: sqlite3_exec() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | INSERT INTO SpotData VALUES(1662582231,3010933557,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16666,893400,0,596.753,562.189,0,'OK','N/A',0)
sbfspot-sbfspot-1 | [2022-09-07 22:23:51.048] Error: [spot_data]exec_query() returned: 'database disk image is malformed' while executing
sbfspot-sbfspot-1 | INSERT INTO SpotData VALUES(1662582231,3010933557,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16666,893400,0,596.753,562.189,0,'OK','N/A',0)
sbfspot-sbfspot-1 | ********************
sbfspot-sbfspot-1 | * ArchiveDayData() *
sbfspot-sbfspot-1 | ********************
sbfspot-sbfspot-1 | startTime: 08/06/2022 00:00:00
sbfspot-sbfspot-1 | ********************
sbfspot-sbfspot-1 | * ArchiveDayData() *
sbfspot-sbfspot-1 | ********************
sbfspot-sbfspot-1 | startTime: 07/06/2022 00:00:00
sbfspot-sbfspot-1 | Wed Sep 7 22:23:51 2022: INFO: Done.
sbfspot-sbfspot-1 | Wed Sep 7 22:23:51 CEST 2022
sbfspot-sbfspot-1 | Sleeping 600 seconds.
sbfspot-sbfspot-1 exited with code 137
sbfspot-sbfspot-1 exited with code 0
How do I go about solving this?