[nb] zotero_tutorial.py: exception: database is locked #557
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Auto-filed by the notebook error filer (
nb-sig:3aab8bf51604— do not edit this marker; dedup and auto-close key on it).zotero_tutorial.pyexception: database is lockedThis issue is closed automatically when the error stops occurring.
Fixed in
9b58e2dfb2.conf.connect.zotero()opened the db with plainmode=ro, which still participates in SQLite's locking protocol — and the running Zotero app holds that lock almost permanently, so reads failed with 'database is locked'. Now opens withmode=ro&immutable=1(bypasses locking; documented torn-read trade-off, withimmutable=Falseescape hatch). Verified against the live db with Zotero running.