[KLUG Members] GnuCash Lock Issue

Adam Tauno Williams adam at morrison-ind.com
Mon Jan 30 13:41:29 EST 2006


> > I get this error message when opening my GnuCash file:
> >       GnuCash could not obtain the lock for [file]. That database may be
> > in use by another user, in which case 
> >       you should not open the database.
> >       What would you like to do?
> > Clearly not a problem for me, as I'm the only user on this computer. But
> > it would be nice to know why this happens (no other copies of GnuCash
> > open) and how to deal with it. Is this a bug? I believe I saved the file
> > and exited GnuCash properly the last time.
> lsof | grep <file>	What has it open?

Nope, it isn't an fcntl(...) lock,  GnuCash creates a {filename}.LCK
file that indicates the file is locked.  For whatever reason this did
not get removed.  Just locate the .....xac.LCK file and remove it and
GnuCash will go merrily on its way.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20060130/b491ac83/attachment.bin


More information about the Members mailing list