On linux and other unix type OS it is quite simple to write a program that - opens a supected SQLite file for read - checks the file header - attempts to obtain the file locks that SQLite would use - output the pid of any process that is preventing the lock from being granted This would eliminate the guesswork about "who is locking the database"