Hi @cjackson,
Thank you for sending me your database file. For the sqlite3.OperationalError: Could not decode to UTF-8 column
error, I believe it is due to corrupted data. Could you please follow the steps below to see if it helps fix the error? I have tested the steps locally.
- make a copy of your database file
~/.kolibri/db.sqlite3
somewhere - in the terminal, run
sqlite3 db.sqlite3 .dump > dump_all.sql
- open the file
dump_all.sql
with an text editor - in the file
dump_all.sql
, search forINSERT INTO logger_attemptlog VALUES(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
. There should be two such lines in the file - delete these two lines
- go to the bottom of the file
dump_all.sql
, you will see a lineROLLBACK; -- due to errors
. replace this line withCOMMIT;
- save the edited file
- in your terminal, run the command
cat dump_all.sql | sqlite3 fixed.db
- run the command
cp fixed.db ~/.kolibri/db.sqlite3
- run the command
kolibri manage dbbackup
If you don’t see errors after running the last step, you should be able to run any kolibri commands you would like without getting the initial error. If you still see errors, please feel free to let me know. Thank you!