Question: do you have selinux enabled? It is possible that somehow you have the wrong selinux context set on the directory or don't have a selinux context set at all.
At Wed, 20 Jan 2021 13:33:33 +0000 Chris Green <c...@isbd.net> wrote: > > On Wed, Jan 20, 2021 at 08:23:23AM -0500, Derek Atkins wrote: > > Hi, > > > > The lock file is created in the same directory as the data file. > > Is that directory not writeable? That would cause the error. > > The directory is definitely writeable and there definitely isn't any > sort of lock file in the directory:- > > chris$ cd tmp/pcc/2020 > /home/chris/tmp/pcc/2020 > chris$ ls > building.gnucash building.gnucash.20210120121447.log general.gnucash > chris$ ls -al > total 504 > drwxrwxr-x 2 chris chris 4096 Jan 20 12:14 . > drwxrwxr-x 3 chris chris 4096 Jan 20 12:13 .. > -rw-r--r-- 1 chris chris 212992 Jan 20 12:14 building.gnucash > -rw-rw-r-- 1 chris chris 381 Jan 20 12:14 > building.gnucash.20210120121447.log > -rw-r--r-- 1 chris chris 290816 Jan 20 12:14 general.gnucash > chris$ gnucash general.gnucash > Found Finance::Quote version 1.49. > chris$ > > The above sequence pops up the can't create lock file 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. > > > Yes, I realise that, but it's not "right". :-) > > > > 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. > > > I'm not quite sure I follow that, I do have general.gnucash in two > different places. Are you saying that this may cause problems and > that I should rename my 'previous year' accounts to (for example) > general2020.gnucash as well as moving them to a suitably named > sub-directory? > -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services hel...@deepsoft.com -- Webhosting Services _______________________________________________ gnucash-user mailing list gnucash-user@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.