[GNC] Cannot Obtain Lock error?

David H hellvee at gmail.com
Sat Nov 7 22:57:29 EST 2020


Perhaps another thing to consider is are you using any sort of syncing
software that could possibly be copying this LCK back from a backup
location after Gnucash has deleted it ?

Cheers David H.

On Sun, 8 Nov 2020 at 11:43, Greg Feneis <mfeneis at gmail.com> wrote:

> IIUC, when a user opens a .gnucash file with GnuCash, EG foo.gnucash is
> opened, GnuCash creates an additional file in the same folder, as a signal
> that this file is open and being modified.  This is the lock file. The lock
> file will have the same file name plus LCK extension. EG foo.LCK for when
> foo.gnucash is opened.
>
> Before GnuCash opens the file, it looks for a file that starts with the
> file name you asked it to open and ends with .LCK.  If it finds this file,
> it gives the warning about difficulty obtaining a lock.  In this case,
> GnuCash thinks the file you're trying to open is already open and being
> edited.
>
> Knowing this, a potential work around for Windows users (perhaps others?)
> until the software is corrected:  When the user is finished using GnuCash,
> save and close per usual.  If the file saved correctly and GnuCash closed
> correctly, the file that ends .LCK should have also been deleted (lock
> released).  Confirm that it was deleted by opening the folder location
> where the .gnucash file is stored and look for files that end with .LCK.
> If a .LCK file is found, delete it.
>
> With no .LCK file present, the next time GnuCash tries to open the .gnucash
> file, the user won't get the obtaining lock message.
>
> Kind regards,
>
> Greg Feneis
>
>
>
>
> On Sat, Nov 7, 2020 at 2:10 PM Jack Slater <theilliniguy at gmail.com> wrote:
>
> > 1 - I really appreciate this software.
> > 2 - I realize that in my haste I may not initially include all
> > pertinent details with my questions.
> > 3 - I do appreciate all those that try to help.
> > 4 - Users don't appreciate comments with this tone:
> > https://www.merriam-webster.com/dictionary/condescending
> >
> > On Sat, Nov 7, 2020 at 10:04 AM Michael or Penny Novack <
> > stepbystepfarm at comcast.net> wrote:
> >
> > > On 11/7/2020 9:32 AM, Chris Green wrote:
> > >
> > > > Yes, I know (and mainly agree with) all that, I am a fully fledged
> > > > (well, ancient) chartered software engineer with lots of letters both
> > > > before and after my name if necessary.
> > > >
> > > > I was just trying to aim my comment at non-computer people and,
> > > > anyway, it is beginning to drift away from the original issue.
> > > >
> > > I was just trying to clarify -- non-computer people should not try to
> > > use an alpha version even if they really really need that new feature.
> > > It would be asking for trouble. I, or you, would automatically know
> what
> > > we would have to do to make it safer. They do not.
> > >
> > > Michael D Novack
> > >
> > >
> > > --
> > > There is no possibility of social justice on a dead planet except the
> > > equality of the grave.
> > >
> > > _______________________________________________
> > > 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.
> >
> _______________________________________________
> 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