sqlite3.OperationError: database is locked

Hello ! How to unlock sqlite database file ?

Find the process that has the lock and stop it (there are process lists on the console page and the schedule page for each of those types of processes) or restart a web app if you're accessing the database through the web app.

In general, don't keep database connections open with uncommited changes in sqlite.