GnuCash could not obtain the lock for file....

Derek Atkins warlord at MIT.EDU
Mon Apr 13 10:01:28 EDT 2015


life0riley <life0s_50 at yahoo.com> writes:

> On 04/10/2015 07:26 PM, John Ralls wrote:
>>> On Apr 10, 2015, at 6:47 PM, life0riley <life0s_50 at yahoo.com> wrote:
>>>
>>> Is clicking "open anyway" the preferred method?
>>>
>>> GnuCash terminated abnormally once on me after I left it open for
>>> some time.  I confirmed there were no other instances running and
>>> simply went to the directory where the GnuCash data file is stored
>>> and deleted the lock file.  I was able to open GnuCash after that
>>> without issue.  At that time I was using GnuCash 2.6.1 in Xubuntu
>>> 14.04.
>> Yes, that's the reason for the dialog box.
>>
>> Regards,
>> John Ralls
>>
>
> I mistakenly assumed that clicking "open anyway" would open the data
> file as read only.

No, that's what the "Open Readonly" button is for.

> I reviewed the GnuCash Tutorial and Concepts Guide, section
> 2.6.3. Lock files (.LNK and .LCK), which states the following:
> "If *|GnuCash|* crashes while you have a data file open, the |.LCK|
> and |.LNK| files are not deleted. The next time you try to open
> *|GnuCash|*, you will get a warning message that the file is
> locked. The warning message appears because the |.LNK| and |.LCK|
> files are still in your directory. It is safe to choose Yes to open
> the file, but you should delete the |.LNK| and |.LCK| files (using a
> terminal window or your file manager). Once those files are deleted,
> you will not get the warning message again unless *|GnuCash|*
> crashes."
>
> Is it still necessary to delete the .LNK and .LCK files or will they
> be automatically deleted?

They get handled automatically.

> Thanks,
> life0riley

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list