[GNC] Could Not Obtain Lock

davidcousens49 at gmail.com davidcousens49 at gmail.com
Mon Jun 27 06:08:40 EDT 2022


Might be time to upgrade to the latest version. This problem now does not exist
in V4.11 on Linux (Mint 20.3) and or Windows. You can close the app either from
the menu or by using the window close icon in the top RH of the window and the
lock is removed. A system restart with the app still open is still going to
leave the lock in place in which case you just select the Open Anyway on the
dialogue when it comes up. If you do upgrade check the wiki for instructions.

On Mon, 2022-06-27 at 10:22 +0200, rsbrux via gnucash-user wrote:
> I am still on GC v 2.6.19 under Ubuntu 18.04, and experience this problem
> frequently, even when I am *absolutely sure* that GnuCash was correctly closed
> after the last use.  At least in GC 2.6.19 it appears that GC does not allow
> for possible delays in mounting volumes in Ubuntu.  The problem has gotten
> worse since I offloaded the GC data file to my NAS.  If I wait to start GC for
> a few minutes after logging in, or start some other applications first, the
> problem does not occur.
> ------------------------------
> 
> Message: 2
> Date: Sun, 26 Jun 2022 19:53:04 +0000
> From: Gyle McCollam <gmccollam at live.com>
> To: Abe Sternberg <abe.h.sternberg at gmail.com>, Glenn Fowler
> 	<gfowler1 at outlook.com>
> Cc: GnuCash users group <gnucash-user at gnucash.org>
> Subject: Re: [GNC] Could Not Obtain Lock
> Message-ID:
> 	<
> BLAPR06MB68027ED731C14FF8D870BCCFCAB69 at BLAPR06MB6802.namprd06.prod.outlook.com
> >
> 	
> Content-Type: text/plain; charset="us-ascii"
> 
> Abe,
> I have had this issue as well.  It usually occurs when I forgot to save before
> closing.  It asks if I want to save, but no matter the reply, it doesn't save
> and doesn't close properly.  I was told it was fixed and i am waiting the 4.11
> update as well.  Hope this solves your issue when released.
> 
> 
> Thank You,
> 
> Gyle McCollam
> 
> Gyle McCollam
> 
> gmccollam at live.com<mailto:gmccollam at gyleshomes.com>           email
> 
> ________________________________
> From: gnucash-user <gnucash-user-bounces+gylemc=gmail.com at gnucash.org> on
> behalf of Abe Sternberg <abe.h.sternberg at gmail.com>
> Sent: Sunday, June 26, 2022 3:22 PM
> To: Glenn Fowler <gfowler1 at outlook.com>
> Cc: GnuCash users group <gnucash-user at gnucash.org>
> Subject: Re: [GNC] Could Not Obtain Lock
> 
> I am using Windows 11.  I try to close GnuCash properly, though there have
> been times when I may not have.  Also, I have had some Windows updates while
> GnuCash was left open.  I will look for the update and advise if the error
> continues.
> 
> Thanks,
> Abe
> 
> On Sun, Jun 26, 2022 at 2:30 PM Glenn Fowler <gfowler1 at outlook.com> wrote:
> 
> > Hi Abe,
> > 
> > Are you on Windows and how are you closing GnuCash? There was a bug 
> > that would cause this that is fixed in v4.11 being released today
> > 
> > On Sun, Jun 26, 2022 at 2:00 PM Abe Sternberg 
> > <abe.h.sternberg at gmail.com>
> > wrote:
> > 
> > > I get this message every time I open GnuCash. It doesn't seem to 
> > > cause any damage but is an annoyance.  Does anyone know what causes 
> > > this and how to correct it?
> > >  [image: image.png]
> > > 
> > > Abe
> > > _______________________________________________
> > > gnucash-user mailing list
> > > gnucash-user at gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > If you are using Nabble or Gmane, please see 
> > > https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> > > -----
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> > > 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Sun, 26 Jun 2022 16:39:36 -0400
> From: Michael or Penny Novack <stepbystepfarm at comcast.net>
> To: gnucash-user at gnucash.org
> Subject: Re: [GNC] Could Not Obtain Lock
> Message-ID: <c1b3f5b5-1e15-dd5a-5d09-b3a202011aa8 at comcast.net>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> On 6/26/2022 3:22 PM, Abe Sternberg wrote:
> > I am using Windows 11.  I try to close GnuCash properly, though there 
> > have been times when I may not have.  Also, I have had some Windows 
> > updates while GnuCash was left open.  I will look for the update and 
> > advise if the error continues.
> > 
> > Thanks,
> > Abe
> > 
> a) "file in use" << that's what "cannot obtain lock file" means >> if CORRECT
> if you have not closed gnucash properly. This is not unique to gnucash but
> normal for any application using the "lock file" method of preventing multiple
> access to data.
> 
>  ??? IF you are certain the file is not in use (by another instance of
> gnucash) you can override if/when the application provides an easy way to do
> that. Or you can go into the directory (file folder) where the data file lives
> and delete the lock file -- it will always be in the same directory.
> 
> b) Do NOT proceed with an operating system update while you have application
> open. Again, this is not specific to gnucash. You should have settings related
> to how updates happen that will allow you to do this. Safest if to have the
> option of doing the updates wit the shutdown process.
> 
> Michael D Novack
> 
> PS -- The "file lock" is a method to allow multiple sequential access while
> preventing multiple simultaneous access. When you ask gnucash (or any other
> application using this method) to open a data file, the program looks in the
> same directory for the corresponding lock file. If NOT found, it creates that
> file and proceeds. When gnucash (or any other application using this method)
> closes, the? last thing it does is delete the lock file. So if the program
> does not get to close properly, the lock file is left behind,
> 
> 
> 
> 
> ------------------------------
> 
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list