[GNC] Where does gnucash put the lock file on Linux?

Derek Atkins derek at ihtfp.com
Wed Jan 20 08:23:23 EST 2021


Hi,

The lock file is created in the same directory as the data file.
Is that directory not writeable?  That would cause the error.
If GnuCash cannot create (and lock) the lock file then it will throw the
error.
If you are SURE that there is not another process running, you can "Open
Anyways" and that will clear the error.

NB that gnucash may mix the metadata for two versions of the same-named
file located in different directories.  The GCM file does not contain the
file location information.

-derek

On Wed, January 20, 2021 7:35 am, Chris Green wrote:
> I seem to have an odd error with GnuCash saying another copy is
> running but only when the xxx.gnucash file is in a certain location.
>
> I needed to move my gnucash database, called general.gnucash to a new
> location as it's end of year.
>
> After copying it I can still open it in its original location but
> running 'gnucash general.gnucash' in the new location brings up the
> error box about another copy running.  There *isn't* another copy
> running, I've closed it down properly (and I've also tried restarting
> the system).
>
> So why can't GnuCash start with the file in the new location?
>
> --
> Chris Green
> _______________________________________________
> 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.
>


-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-user mailing list