[GNC] Where does gnucash put the lock file on Linux?
Angus King
angusking53 at gmail.com
Mon Oct 6 21:41:37 EDT 2025
This is to provide further detail for Linux users from a post in January 2021 (for those using and SQL backend such as sqlite). The lock table is called 'gnclock'. To manually reset the lock you delete the records (rows) in that table.
--
Angus King
On Wed, Jan 20, 2021 at 05:20:16PM -0800, John Ralls wrote:
>/Do I remember correctly that you're using the SQL backend? That works a />/bit differently because there's no way to have a lock file if you're
connected />/to a DB server. Instead of a lock file it has a lock table inside the
database. />/If you copy the database (and with SQLite3 it looks just like a file) when />/there's a lock record in the lock table then GnuCash will put up the
"unable />/to obtain the lock" dialog box. />//You're absolutely right, I'm using sqlite, the above would exactly
explain what I'm seeing, thank you.
With sqlite it would, of course, be OK to use a lock file as it's not
a client/server system but I suppose it just shares the way things
work with mySql/postgresql.
--
Chris Green
More information about the gnucash-user
mailing list