! OwOMizu Errors
← All errors
medium runtime

Database error / Could not backup db

Description

The SQLite database (utils/data/db.sqlite) is locked, corrupted, or the schema version drifted after an update.

Cause

A previous run was killed mid-write, leaving -wal/-shm files behind. Or two bot instances are writing to the same db file, causing a lock conflict.

Fix

Stop the bot, delete utils/data/db.sqlite-wal and utils/data/db.sqlite-shm (safe to remove, they're transient). If it persists, back up then delete utils/data/db.sqlite; the bot recreates the schema on next launch (stats history will reset). Make sure only one bot instance is writing to the same db file.

Code change

Before
utils/data/db.sqlite-wal
utils/data/db.sqlite-shm
# stale lock files from a killed run
After
rm utils/data/db.sqlite-wal
rm utils/data/db.sqlite-shm
# bot starts clean on next launch