When using sqlite has anyone come across this type of error?
[pd :open:WARN/0: FTsqlite_adt:12/17/2020 10:44:46] Error returned from sqlite: (0) Recovered 724846 frames from WAL file /cis/cis6.2/integrator/sqlLiteDbs/ADT/EpicADT.db-wal
I’ve gone through searching the web and came across a few of these entries
“This is because the previous process to access the database did not
call sqlite3_close() prior to exiting, and so the WAL file was not
cleaned up properly.”
We have a script that is inserting or updating ADT to a sqlite table
# assign db name
sqlite SqDbHandle $dbFile
# set write ahead logging
SqDbHandle eval {PRAGMA journal_mode=WAL; PRAGMA synchronous=NORMAL;}
#SqDbHandle close
if {[catch {SqDbHandle close} err]} {
echo “Error: Error closing the database: $err”
}
Then we have another tcl script that is used on other various interfaces that is only doing a “read” of the sqlite ADT database which is using the same sqlite commands and close statement as above. Looking for any type of suggestions to try and narrow down why these WAL recovery errors are being thrown.
Jeff