[GNC] Unexpected behaviour of locking mechanis

mc mc8 at privmgt.com
Sat Apr 20 08:58:59 EDT 2019


Config:
gnucash 3.5 clean install.
(X)ubuntu Linux 18.04
gnucash files saved as sqlite.

Am new to gnucash and testing it.

I keep several versions of a gnucash file,
saved with names like <file>-<date>-<id>.gnucash

After cleanly exiting gnucash by a normal Quit,,
I may try to open an earlier saved version.
I frequently get the message:

GnuCash could not obtain a lock for .../<filename>.gnucash
the database may be in use by another user, in which case you should not 
open the database.
What would you like to do?
open read only / create new file / open anyway / quit

I have checked that gnucash is not running,
and there is no lock file to be found.
I open it anyway, and it is without problems,
other than my tabs have disappeared and there is only the default 
"Accounts" tab.

In fact there is no .LCK file even when gnucash has a file opened.

So:
a.  has gnucash changed the locking mechanism in v3
or do sqlite files not use a locking mechanism?

b.  is there a possible issue with this locking mechanism?

thanks
mc


More information about the gnucash-user mailing list